QuickStart Guide
...
Industrial Systems Connection ...
Beckhoff
Beckhoff TwinCAT3 Ethernet (Gen1)
6min
review the following information for setting up and configuring the beckhoff twincat3 ethernet (gen1) driver litmus edge compatible series compatibility parameter compatible items driver type ethernet validated devices/series beckhoff twincat 3 when configuring tags for this driver, you must enter the case sensitive register name exactly as it is defined in the plc see the free tags section below to learn more to set up and configure this device in litmus edge, you will need to do the following step 1 set up and configure the plc device step 2 set up the plc device in litmus edge devicehub step 3 configure the list of registers step 1 set up and configure the plc device if the device is configured for ethernet access, find its network parameters otherwise, follow the steps below notes make sure the litmus edge ip address is configured in twincat the beckhoff plc is also a pc with its own os, and an ip address can be set up like a pc to configure your device note down the following information and refer to it as needed device twincat 3 beckhoff plc communication i/f ethernet launch a new project in tcxaeshell click routes to add the target that is going to connect to the plc click add configure the following parameters please note that only clients in the routes list can connect to the simulator route name (target) enter a name for the route amsnetid enter the amsnetid for the route if the plc is running as a soft connection, and litmus edge and the panel pc are on the same network, the amsnetid and address info values should be the same with 1 1 at the end transport type review and confirm the transport type for the route address info enter the ip address of the corresponding target system in the network if the plc is running as a soft connection, and litmus edge and the panel pc are on the same network, the amsnetid and address info values should be the same with 1 1 at the end target route select static click the restart twincat icon then, click the login icon to start the simulator step 2 set up the plc device in litmus edge devicehub configure the following parameters when you connect a device docid 3eyafppweuvmblcey17sq with this driver update default values to the specific setup of your device parameter value type beckhoff driver beckhoff twincat3 ethernet (gen1) network address the device address you defined in step 1 network port 48898 enter the network port for the beckhoff device defined in step 1 ads port 851 ams id ams id for the beckhoff device enter the following \[beckhoff device ams id] 1 1 for example, if your beckhoff ams id is 37 136 43 210, enter 37 136 43 210 1 1 local ams id local ams id for the litmus edge device enter the following \[litmus edge ip address] 1 1 for example, if your litmus edge ip address is 192 168 0 152, enter 192 168 0 152 1 1 step 3 configure the list of registers when you add tags docid 8se7z3pmrfwl1nmzcwalx to the connected device, refer to the following tag parameters and available value types refer to the following additional resources device and tag metadata use case docid 583p fbuozem6whgrdgkq tag formula variables docid\ ifbwcou90qtfodk hrysr free tags this driver doesn't have a list of available register names in the devicehub add tag form to add tags, you must enter the case sensitive register name exactly as it is defined in the plc a connected status for the device won't display until a tag with a correct register name is created available value types bool sint byte int word dint dword lint lword real lreal ltime string wstring date time dateandtime timeofday tag parameters name enter the case sensitive register name exactly as it is defined in the plc value type select a data type from the drop down list the available options depend on the register name selected polling interval enter a value in seconds this determines how often the tag should poll the register for data tag name enter a name for the tag description (optional) enter a description for the tag count enter the number of register values to read a count higher than 1 will generate an array of values from the address value configured and respective subsequent address values tag formula enter a formula for the tag to process the generated data two variables are permitted value (current tag value) and timestamp (current tag unix time in milliseconds) the following math functions are available sin cos sqrt tan power power( x ) performs the operation 10^x log log( x ) is the natural logarithm (the logarithm is in base e ) exp exp( x ) performs the operation e^x only publish on change of value select the checkbox to customize nats messages to be published only when the value parameter changes from a previous value to a new one change of value only applies to boolean, numeric (such as int or float), and simple string data types it does not apply to complex types, such as json or array poll once topics will not be affected by change of value settings these topics will still only see a single message meta data metadata summarizes basic information about data this feature allows you to define key value pair data for the device output payload later on it can then be used to find, use, and reuse particular instances of data note if you use special characters in meta data key names, the special characters are replaced with underscore characters in the payload this can cause two key names to be combined into one for example, configuring the key names a b and a&\&b will cause only one key name to be created (a b)