Ethernet/IP Example
This example explains how to access the variable ANA_IN_00 which is UINT format and in the global definition of a Control logic PLC.
Show picture
Configuration file
- The CPU is in slot 1 and the EtherNET/IP coupler is in slot 2.
- The cable on the coupler is plugged into the physical port 1.
- The IP address of the EtherNet/IP coupler is 192.168.0.31.
- The IP address of the PcVue host PC is 192.168.0.10.
This requires the following settings in the EthernetIP.ini configuration file:
Copy
[TaskParameters]
AttributeNumber = 4
LocalIpAddress = 192.168.0.10
nbEquipments = 1
nbPollingGroups = 1
[PollingGroup1]
Name = Fast
RefreshRateInSec = 1
[Equipment1]
Name = EqtTest
IpAddress1 = 192.168.0.31
Port1 = 1
Slot1 = 1
TimeOutInSec = 2
Variable definition
To access the variable ANA_IN_00, which is UINT format, you must use a register variable. The variable is configured with the following string in its extended attribute 4 (as specified in the .ini file AttributeNumber = 4).
Show picture

