Ethernet/IP - Instance & item setup
How to setup a Ethernet/IP instance and item in SIA
The Ethernet/IP connector connects SIA to Allen-Bradley and Omron controllers which are capable of communicating over Ethernet/IP or using PCCC with a gateway.
Parameters
When using the Ethernet/IP Connector both the instance and item have specific parameters. These parameters are required as they are needed to establish connection and to identify which addresses to read from.
Instance
The instance needs the following parameters to establish a connection to the PLC and devices:
Parameter | Description |
---|---|
Address (instance default) | The IP address of the Ethernet/IP controller. |
Path | The extended CIP path to where CPU controllers is placed. Used to navigate the Ethernet/IP traffic to the correct destination in the rack or hop to another network. NOTE: Micro800 controllers does not require a path NOTE: Required by ControlLogix and CompactLogix. Default: 1,0 NOTE: Required by Omron NJ/NX. Default: 18,IP-Address |
Controller Type | Select the variation of the Ethernet/IP controller. Select between the following controllers: Allen-Bradley
Omron
|
Item
The item parameters that is needed to read the tags from the controller:
Parameter | Description |
---|---|
Address | Name or address of the tag in the controller. Check address syntax for more information. |
Type | Data type used for determining the length of the tag in bytes and formatting it properly after a reading. Check data types for more information on each data type. |
Data types
The following table shows the different data types you can format the data as.
Data type | Return value |
---|---|
BOOL (bit) | 0 or 1 |
Small integer | -128 to 128 |
Unsigned small integer | 0 to 255 |
Byte | 0 to 255 |
Integer | -32.767 to 32.767 |
Unsigned integer | 0 to 65.535 |
Word | 0 to 65.535 |
Double integer | -2.147.483.647 to 2.147.483.647 |
Unsigned double integer | 0 to 4.294.967.295 |
Double word | 0 to 4.294.967.295 |
Real | -3.4e38 to 3.4e38 |
String | "Hello world!" (text inside tag) |
Address syntax
Ethernet/IP
Controllers using Ethernet/IP can be accessed using naming syntax.
Area | Addressing Syntax |
---|---|
Global variable | Bottle_Counter |
Program variable | Program:BottleManager.Bottle_Counter Syntax: Program.<ProgramName>.VariableName |
Array index | Botte_Counter[4] Syntax: VariableName[index] |
Bit |
Bottle_Counter.2 Program:BottleManager.Bottle_Counter.2 Program:BottleManager.Bottle_Counter[4].2 |
PCCC
The series from Allen-Bradley using PCCC such as PLC5, MicroLogix and SLCS500 can be addressed using Ethernet/IP. This though requires a bridge.
Syntax | |
---|---|
Format | <Data Type><File>:<Element> |
Format with bit | <Data Type><File>:<Element>/<Bit> <Data Type><File>:<Element>.<Bit> |
Filetype | Example |
---|---|
Bit | B3:2/6 B3:2.6 Bit 6 in element 3 |
BCD | D9:0 |
Float | F8:0 |
Input | I:20.2 I:20/2 |
Output | O:10.2 O:10/2 |
Integer | N7:0 N7:0/4 Bit 4 in element 0 |
Long Int | L9:0 |
String | ST9:0 |