IDEC Serial
8 min
review the following information for setting up and configuring the idec serial driver note this driver is experimental some features may not work as expected litmus edge compatible series compatibility parameter compatible items driver type serial validated devices/series idec micro3 note to browse tags, you must export the tag list from the windldr programming software as a txt file, then upload the file to the /ftp data/devicehub/ folder 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 ensure the plc device is configured for serial communication note the serial port configuration parameters including baud rate, data bits, stop bits, and parity settings identify the local serial port (for example, /dev/ttys0 ) on your litmus edge gateway that will connect to the plc ensure proper physical connectivity between the plc's serial port and the gateway's serial port step 2 set up the plc device in litmus edge devicehub configure the following parameters when you connect a device with this driver update default values to the specific setup of your device parameter value type idec driver idec serial station id cpu's station id exported plc tag text file name of the exported txt tag file from windldr which was uploaded to /ftp data/devicehub/ device file serial device file for the connected port baud rate baud rate that matches the setting on the controller data bits number of data bits that matches the setting on the controller stop bits number of stop bits that matches the setting on the controller parity parity setting that matches the setting on the controller 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 register table name value types address format min address max address access type description i bit, word oo 0 37 r/o input bits/words q bit, word oo 0 37 r/w output bits/words m bit, word ooo 0 317 r/w internal relay bits/words r bit, word dd 0 63 r/w shift register bits/words d word dddd 0 9999 r/w data registers c bit, word dd 0 31 r/o counter cp word dd 0 31 r/w counter presets t bit, word dd 0 31 r/o timer tp word dd 0 31 r/w timer presets w word d 0 6 r/w calendar/clock tag parameters parameter value name select a register name from the drop down list available options depend on the names in the register table value type select a data type from the drop down list 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 address enter a tag address the value must be in the decimal format within the allowed min/max range omit the leading zeros see the register table at the bottom of the dialog box for bit tags, append the bit address without the bit separator the lowercase letters in the address format indicate how many digits you should enter in the bit address count enter the number of register values to read a count higher than one will generate an array of values from the address value configured and respective subsequent address values tag formula enter a formula to process tag data see tag formula below only publish on change of value select the checkbox to publish nats messages only when the value parameter changes to a new value 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 are not 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) 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 function description sin sine cos cosine sqrt square root tan tangent power(x) performs the operation 10^x log(x) natural logarithm ( base e ) exp(x) performs the operation e^x