CODESYS V2 Ethernet Symbolic (Gen1.3)
7 min
review the following information for setting up and configuring the codesys v2 ethernet symbolic driver litmus edge compatible series compatibility parameter compatible items driver type ethernet validated devices/series abb pm564 replaces gen 1 driver(s) n/a 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 configure your codesys v2 device for ethernet access and note its network parameters (ip address and port) ensure the codesys device is accessible on the network from your litmus edge instance (optional) export a symbol file from your codesys device to enable symbolic tag browsing in your codesys programming environment, create a symbol configuration file export the symbol file in sym or sdb format save this file for upload to litmus edge step 2 set up the plc device in litmus edge devicehub configure the following parameters when you connect a device docid\ pal6abpzbrimdu9lvgj30 with this driver update default values to the specific setup of your device parameter value type codesys driver codesys v2 ethernet symbolic motorola byte order enable if your codesys device uses motorola (big endian) byte order disable for intel (little endian) byte order network address the ip address of your codesys device (for example, 10 17 0 97) path /data/registers sym (optional path to uploaded sym or sdb file) port 1201 protocol select the protocol variant that matches your codesys device configuration type 0 note if you are using a sym or sdb file for symbolic addressing, upload it to the path specified in the path field before starting the device if no file is provided, the driver will connect and browse using device information directly step 3 configure the list of registers when you add a tag docid\ tuy hh0gi8djvot70wroh to the connected device, refer to the following register table and tag parameters refer to the following additional resources organize device and tag data by using metadata docid\ mu 6j6zhi0cvchdad0w8n tag formula variables docid\ io7xgyrdvv vmpnfxoaci register table note this driver uses symbolic addressing based on the variable names defined in your codesys program (for example, plc prg test1, plc prg dword) when a sym or sdb file is provided, it supplies the mapping between symbolic names and memory addresses without a symbol file, symbolic names are resolved directly from the device name value types access types address format min address max address description r bool, byte, sint, usint, word, int, uint, dword, dint, udint, real, string r/w symbolic name (e g , plc prg variablename) 0 0 read/write symbolic variables tag parameters name select a register name from the drop down list the available options depend on the names in the register table value type select a data type from the drop down list the available options are bool boolean value byte 8 bit unsigned integer sint 8 bit signed integer usint 8 bit unsigned integer word 16 bit unsigned integer int 16 bit signed integer uint 16 bit unsigned integer dword 32 bit unsigned integer dint 32 bit signed integer udint 32 bit unsigned integer real 32 bit floating point string character string polling interval enter a value in milliseconds this determines how often the tag should poll the register for data minimum value is 1000 ms tag name enter a name for the tag description (optional) enter a description for the tag address enter the symbolic address of the variable as defined in your codesys program use the format plc prg variablename (for example plc prg test1 , plc prg d string ) if a sym or sdb file has been uploaded, symbolic names must match those defined in that file if no file is provided, names are resolved directly from the device 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 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)