Hello everyone, I have been relying on this website for valuable advice for quite some time now. However, I have encountered a challenge that I need help with. I am working with a Red Lion DA30 controller using Crimson 3.2, attempting to establish communication with an Alicat MFC (Mass Flow Controller v7) that utilizes RS-232 Raw ASCII protocol. While I am familiar with Crimson, I have limited experience with Port commands and programming for communication purposes.
My current task involves sending a command to the Alicat MFC device. From the manufacturer's manual, the command structure is as follows: "Poll the device: [unit ID]
Welcome to the PLCTalk forum community! If you've come across tech note TNIA10 as your starting point, you're on the right track. To begin, consider starting with a basic task: creating a button that triggers the PortPrint instruction. Since it's a serial RS-232 connection, you'll use PortPrint instead of PortPrintEx. To determine which physical port to use on the DA30, refer to Crimson 3.2 and the default DA30 project. The "RS-232 Comms Port" is labeled as Port 2 in the lower left corner. Create a button with a simple line of code like PortPrint(2,"A\r") and test it by connecting to your PC's serial port using the appropriate settings. Next, configure the RS-232 port to execute a program when data is received. This involves entering the ProgramName() in the OnUpdate field in the Driver Settings for the RS-232 port. By following these steps, you'll be able to effectively utilize your RS-232 connection.
Are you looking for the part number of the Alicat MFC or a visual reference of the terminals? Do you need a diagram of the RS232 connection, including TX, RX, and GND? Are you unsure about the RS232 Port settings on the Alicat MFC, such as Baud and Stop Bits (commonly 8N1)? Have you encountered issues with software due to hardware errors, like incorrect wiring placements on RJ11 connectors used on Graphite HMIs? If so, a search on the Alicat website reveals the availability of their own Serial Tools software and drivers for seamless communication with Alicat mass flow and pressure instruments. These tools can be found on their website about halfway down the page. Don't waste hours troubleshooting like I did - make sure to verify all connections and settings before jumping to software-related issues. Make use of Alicat's resources to ensure smooth operation of your devices.
Ken Roach welcomes you to the PLCTalk forum community! If you've already checked out tech note TNIA10 as a starting point, that's great. To get started, focus on creating a simple button that performs a single action when clicked, such as using the PortPrint instruction for serial RS-232 communication on a DA30. Ensure you are using the correct physical port, which is typically Port 2 in Crimson 3.2 for the DA30. Try setting up a button with a basic line of code like PortPrint(2,"A\r") and test it by connecting to your PC's serial port. Then, configure the RS-232 port to execute a program when data is received by adding the ProgramName() in the OnUpdate field in the Driver Settings. Ken, it's great to hear that TNIA10 has been helpful for you. The subtle reminder of the RS-232 Comms Port in the lower left corner of Crimson is a handy feature. You can proceed with confidence and give it a shot! Thanks for sharing your insights!
In a discussion, BryanG asked for specific information regarding the Alicat MFC, such as the part number, a picture of the terminals, and details on the RS232 connection settings. He also mentioned spending time troubleshooting software issues only to realize there were hardware errors. He pointed out potential mistakes in RS232 connector types and wire placements on Graphite HMIs. A suggestion was made to use Alicat's Serial Tools for assistance. Additionally, Bryan shared insights on the Alicat's 6 pin Industrial Connector and its connection to an RJ11 cable. The pinout details for the DA30 RJ11 were also provided. Confirming the correct wiring, Bryan noted that the Baud Rates matched and were accessible through the MFC's touch screen.
The connection setup seems incorrect. RS232 utilizes TX and RX for transmit and receive signals, rather than the traditional (+) and (-) markings found in RS485. To ensure proper configuration, refer to the DA30 manual provided below. If using RS232, confirm that the Alicat is set to this protocol. Connect Alicat Pin 2 TX to DA30 Pin 2 RX, Alicat Pin 3 RX to DA30 Pin 5 TX, and Alicat Pin 5 GND to DA30 Pin 3 or 4 COM. If RS485 is being used instead, please contact me for revised pin assignments.
In response to BryanG's comment, it appears that there may have been confusion between RS232 and RS485 wiring. It is important to note that RS232 does not utilize (+) and (-), but rather TX and RX for transmit and receive functions. If you are working with RS232, ensure that the Alicat device is set to RS232 mode and follow the correct pin connections. Pin 2 on the Alicat should connect to Pin 2 RX on the DA30, Pin 3 to Pin 5 TX, and Pin 5 to Pin 3 or 4 COM. If using RS485, the pin numbers may need to be adjusted. Grateful for the clarification, the wiring will be double-checked to ensure accuracy.
Answer: Answer: To establish communication, you can utilize RS-232 Raw ASCII protocol and send commands following the structure specified in the manufacturer's manual.
Answer: Answer: The command structure for polling the device is "[unit ID]
Answer: Answer: You can read data from the port using programming commands and protocols specified in the manufacturer's manual or relevant documentation.
Answer: Answer: You can review Tech Notes from Red Lion, reference sample code, and seek advice from forums or experts in the field to troubleshoot and overcome communication issues.