Alicat Scientific EtherNet/IP Operating Manual Download Page 19

19

Rockwell PLC Setup

This section shows how to setup an Alicat mass flow controller using a Rockwell 

ControlLogix PLC. These instructions will work for other types of Alicat device with 

simple alterations. In this example it is assumed that the EtherNet/IP scanner has 

already been configured and assigned an IP on the 192.168.2.0 subnet. 

Alicat provides an Electronic Data Sheet (EDS) as well as Logix XML files with Add-On 

Instructions (AOIs) which can be imported into Rockwell’s Logix designer in order to 

assist connecting to your device and mapping IO data. These can be downloaded from 

the Alicat website at 

alicat.com/eip

Determining Assembly 101 Input Size

As mentioned in section 1.3 above, the size and contents of input assembly 101 vary 

depending on the configuration of your Alicat device. In order to create a connection 

you will need to define the correct input size in the connection parameters. If this is 

not done, you will receive an “Invalid Input Size” communications fault from the PLC.

This value can be determined from the internal webserver. (See page 17), or by explicit 

messaging using EIP Tools or RSNetWorx. The assembly size attribute is attribute 4. An 

explicit message, 0x0E: Get Attribute Single sent to path class 4, instance 103, attribute 

4 will return the assembly size in hex format. 

The following example shows how to use RSNetWorx to determine the assembly size. 

Launch RSNetworx from the computer you are using to manage your PLC. Add the 

Alicat to your network tree (your scanner should add itself automatically). Then right 

click on the Alicat device in your network tree and select “Class Instance Editor…”

Execute a Get Single Attribute call as shown below. Note that the instance value needs 

to be in hex format (instance 101 is 16#65). The returned value is a 2 byte unsigned integer.

Summary of Contents for EtherNet/IP

Page 1: ...EtherNet IP OperatingBulletin The Fastest Flow Controller Company in the World ...

Page 2: ... according to specification Contamination may cause the instrument to measure flow improperly Recalibration ensures the instrument is clean and free of debris Recalibration maintains your LIFETIME WARRANTY Sending your unit for recalibration is easy and inexpensive Recalibrations are usually shipped within five days of receipt so it s fast too Please keep the original box to return your Alicat ins...

Page 3: ...OSER Personalized Mixed Gas Compositions Network Configuration_____________________________________12 IP Address Configuration Configuring a Network Card for DHCP Operation Assigning an IP Using Rockwell Automation s BootP DHCP Tool Assigning an IP using TFTPD64 Assigning a Static IP UsingThe EmbeddedWebserver______________________________16 The Home Page The Data I O Page The Network Config Page ...

Page 4: ...uipped with two RJ45 ports located on top of the device These can be used to daisy chain devices or establish a ring topology network Both ports can be used interchangeably to connect the device to a network When an active link is established on a port the yellow link LED on that port will light up The green data IO LED will flash when data is being transmitted over that link Additionally there ar...

Page 5: ...e through CIP explicit messages or cyclic I O The EDS for your Alicat device can be downloaded directly from the CIP file object Class 0x37 Instance 200 or from alicat com eip Explicit Messaging I O The following objects and attributes are supported All objects support the Get_Attribute_ Single and Set_Attribute_Single service in addition to any other specified services Identity Object Class 1 Ins...

Page 6: ...ests UINT Set 6 Close Format Rejects UINT Set 7 Close Other Rejects UINT Set 8 Connection Timeouts UINT Set Connection Manager Services Code Name Description 0x4E Forward_Close Closes a connection 0x52 Unconnected_Send Unconnected message request 0x54 Forward_Open Opens a connection 0x5A Get_Connection_Owner Returns data about a connection 0x5B Large_Forward_Open Opens a connection Assembly 100 Se...

Page 7: ... the web server Thevaluereturnedforapressurereadingcanbeabsolutepressure gauge pressure ordifferentialpressure dependingonyourdevice sconfiguration If you wish to customize the format and the displayed readings of your device please speak to an Alicat applications engineer Device status conditions in the device are specified below Values in parenthesis are displayed on the display panel of the dev...

Page 8: ...oint 6 Mass Total Mass Flow Meter Reading Number Statistic 1 Pressure 2 Flow Temperature 3 Volumetric Flow 4 Mass Flow 5 Mass Total Pressure Gauge Reading Number Statistic 1 Pressure Pressure Controller Reading Number Statistic 1 Pressure 2 Pressure Setpoint Mass total will only appear on devices configured with a totalizer ...

Page 9: ...ands are processed when the values in instance 102 change Passing repeated identical command IDs and arguments to instance 102 will not change the value so these commands will be ignored To send sequential identical commands zeros should passed to instance 102 attribute 3 between commands If you are using Alicat s provided add on instruction sets see page 13 then this procedure is handled automati...

Page 10: ...el Menus can still be navigated and settings viewed with display locked 8 Set PID Proportional Gain 0 to 65535 P Gain PID settings only valid for controllers 9 Set PID Differential Gain 0 to 65535 D Gain PID settings only valid for controllers 10 Set PID Integral Gain 0 to 65535 I Gain Integral value only valid when using PD2I algorithm See user manual for details 11 Set PID Loop Variable 0 Mass F...

Page 11: ...x UINT Mixture Gas 1 UINT Mixture Gas 2 Index UINT Mixture Gas 2 UINT Mixture Gas 3 Index UINT Mixture Gas 3 UINT Mixture Gas 4 Index UINT Mixture Gas 4 UINT Mixture Gas 5 Index UINT Mixture Gas 5 UINT All 20 bytes must be passed to the assembly and all gas indexes must be valid gas index numbers See product manual for a list of indices A combination of mixtures can be created by using an existing...

Page 12: ...yte offset 16 1 Any valid gas index Fifth Gas Percent byte offset 18 0 0 values ignored Network Configuration Alicat devices have two 10 100Mbps Ethernet ports with an embedded switch Either port can be used in a star topology network configuration For linear or ring topologies one port can be used as the input and one port as the output to daisy chain devices together Device Level Ring DLR is als...

Page 13: ... you will be prompted to enter your network settings At a minimum you will need to define a Subnet mask which will be the same mask you defined in previous section In our example the mask value of 255 255 255 0 was used Once your network settings are entered click OK to return to the main window In this window double click the MAC address of the Alicat you wish to assign an IP On the next screen e...

Page 14: ...wly launched settings window click the DHCP tab The settings pictured in this screenshot configure the DHCP server on an adapter with a static IP of 192 168 2 10 Once TFTPD is configured as a DHCP server connect your Alicat directly to the same network as the PC and adapter running TFTPD and supply power to the Alicat After a few moments an address should be allocated to the device by the DHCP ser...

Page 15: ...n the station field at the top left and click on the tab labelled 0xF5 TCP IP From here click Get_Attribute_ All to populate the fields with the device s current settings To disable DHCP click the Stored Value radio button within the attribute 3 pane and click Set_Attribute To assign a new IP address to the Alicat enter your desired IP address subnet mask and gateway in the interface configuration...

Page 16: ... a browser window from a PC on the same network as your Alicat device and enter the IP address of the device you wish to connect to in the address bar On connecting to the embedded webserver the home page will load by default The Home Page The home page gives some networking and troubleshooting information The information here is largely for troubleshooting purposes but the firmware version can be...

Page 17: ...ng a PLC or other program to read the device s parameters the size and structure of assembly 101 can be determined from this screen Parameters of type REAL and UDINT are 4 byte parameters Parameters of type UINT are 2 bytes By summing the byte size of all the parameters listed in assembly 101 the data assembly size can be manually calculated ...

Page 18: ...te and click update The Device Config Page This page can be used to read and write specific low level configuration settings of your Alicat The Alicat serial communications primer alicat com documents Alicat Serial Primer pdf describes the function of common user configurable registers Writing settings to the device can invalidate your calibration disable communication or even permanently damage y...

Page 19: ...n order to create a connection you will need to define the correct input size in the connection parameters If this is not done you will receive an Invalid Input Size communications fault from the PLC This value can be determined from the internal webserver See page 17 or by explicit messaging using EIP Tools or RSNetWorx The assembly size attribute is attribute 4 An explicit message 0x0E Get Attri...

Page 20: ...he other is to import the Alicat EDS file and make an Alicat EtherNet IP Adapter Creating a Module from the EDS In order to create an Alicat IO device module you must first import the device EDS file The EDS is available on the Alicat website at alicat com eip Once you have the EDS it can be imported into RSLogix under Tools EDS Hardware Installation Tool ...

Page 21: ...21 Click Next Then browse to the location where you saved the EDS file Click Next a few times until the import is completed ...

Page 22: ...22 To create an Alicat module right click on your Ethernet network in the I O Configuration tree and select New Module Select the Alicat EtherNet IP Adapter and press the Create button ...

Page 23: ...odule and give it the static IP address you assigned to the device To change the Input size click the Change button under Module Definition In this example since we are connecting to an MFC the input size is 26 bytes ...

Page 24: ...cified in the EDS file If this bug affects your software version then you can add the Alicat as a generic Ethernet communications module using the instructions in the next section Creating a Generic Ethernet Module To create an Ethernet module right click on your Ethernet network in the I O Configuration tree in the controller organization window of RSLogix and select New Module ...

Page 25: ...ze of zero is acceptable Using SINT as the format will create a controller tag as an array of bytes for the Input and Output data Repeat the above for each device you wish to connect to Formatting I O Data After creating your module in RSLogix Controller Tags will be automatically created with the name Module I and Module O for input and output data respectively These will both default to arrays o...

Page 26: ...icat EIP UpdateInput l5x file Select Alicat EIP UpdateInput l5x to import the instruction After importing there will now be an AOI called AlicatUpdateInput a UDT called AlicatIoData and an Add On Defined data type located in the controller organization window ...

Page 27: ...tatus Overlay Name Type Description Status 0 T_OVER BOOL Temperature Overflow Status 1 T_UNDER BOOL Temperature Underflow Status 2 V_OVER BOOL Volumetric Overflow Status 3 V_UNDER BOOL Volumetric Underflow Status 4 M_OVER BOOL Volumetric Overflow Status 5 M_UNDER BOOL Volumetric Underflow Status 6 P_OVER BOOL Pressure Overflow Status 7 TOT_OVER BOOL Totalizer Overflow Status 8 HLD BOOL PID Loop in...

Page 28: ...ues are shown in parenthes AlicatIoData Config Flag Device Config Flags Pressure Controller 16 11 2 10001 PRESS SP Mass Flow Meter 16 0F 2 1111 PRESS TEMP VFLOW MFLOW Mass Flow Controller 16 1F 2 11111 PRESS TEMP VFLOW MFLOW SP If the incorrect bit mask is set then device variables will be assigned to the incorrect position in the array temperature being stored as flow for example In order to use ...

Page 29: ...n I O memory scan Then the AlicatUpdateInput instruction runs copying this buffer data into the IOdata tag and appropriately formatting it Once this code is downloaded to the PLC and the PLC is switched to run mode you should see well formatted I O data populated in the Monitor Tags window of the tag manager Changing the Setpoint Changing the setpoint of your Alicat is accomplished by copying a 4 ...

Page 30: ...ite This instruction requires four controller tags to operate Two MESSAGE tags that define the device path and explicit message configuration A 4 byte array used as a buffer to store the command and response as it is passed to the IO stream A UDT of type AlicatCommand which prepares the command to be copied to the buffer and is tied to logic that manages the explicit messaging A fifth Boolean tag ...

Page 31: ...31 On the Communication tab set the path to the device you wish to communicate with ensuring it is the same for both messages ...

Page 32: ...TART element is set to 1 If it is set to 1 the AlicatCmd CmdID and CmdArg elements are stored in the AlicatCmdData buffer then passed to the Request message tag to send the command Then instance 103 is read by the Response message tag and the result is copied back to the command buffer Finally the AlicatCmd START bit is unlatched If any error codes are returned to the command buffer the ER bit wil...

Reviews: