Beckhoff TwinCAT - Instance & item setup
Parameters
When using the Beckhoff TwinCAT ADS Connector both the instance and item have specific parameters. These parameters are required as they are needed to establish connection and to identify which variables to interact with.
Instance
The instance needs the following parameters to connect to the ADS device
Parameter | Description |
---|---|
Address | The IP address of the ADS device |
ADS Port | Identifier for the type of connection of the ADS Device |
Target AMS NetID | The network ID of the ADS device, typically the IP address with ".1.1" appended |
Local AMS NetID | The local network ID, not required |
Items
The item parameters are needed to set up the variables in the ADS device
Parameter | Description |
---|---|
Variable Name | The name used to get to the variable in the ADS device e.g. "MAIN.device_speed" |
Type | Data type used for determining the size of the variables |
Types
The following types can be selected for setting up the Variables
Type | Description |
---|---|
BOOL | A boolean value either 0 (false) or 1(true) |
WORD | A 16 bit unsigned integer |
DWORD | A 32 bit unsigned integer |
SINT | An 8 bit signed integer |
INT | A 16 bit signed integer |
UINT | A 16 bit unsigned integer |
DINT | A 32 bit signed integer |
UDINT | A 32 bit unsigned integer |
REAL | A 32 bit floating point representation of rational numbers |
LREAL | A 64 bit floating point representation of rational numbers |
STRING | Any string of characters |