Examples, Example 1 – Micromod MOD: 1800P - MOD 30ML Identity Module (Version 2) System, I/O and Communications Functions User Manual
Page 265
Logic Functions - Book 1
APPENDIX B - MODBUS MASTER CONFIGURATION
B-21
B.4 EXAMPLES
B.4.1 Example
1
NOTE: The entry for input 1 must be all UPPER CASE (ASCII is case sensetive).
EX1
Input Data Type Value
I1 ASCII CFG,MM,PORT1
I2 Count 0
I3 Count 0
I4 Count 0
I5 Count 0
I6 Long State 20 ( response timeout = 1 second )
I7 Long State 1 ( number of retries = 1 )
I8 Long State 0 ( inter msg delay = zero )
I9 Long State 1 ( out of range value = minimum )
I10 Long State 0 ( use single write mfc )
EX2
Read 10 Holding Registers from slave address 1 starting with register number 1 and store as
Count data in the MODCELL Multiloop Processor database.
Input Data Type Value
I1 ASCII RHR,MM,PORT1
I2 Count 10 ( num read attributes = 10 )
I3 Long State 0
I4 Discrete False
I5 Discrete False
I6 Long State 0
I7 Long State 20 ( if group scan interval is 100
msec this msg is sent every 2 seconds)
I8 (not used)
I9 Long State 1 ( slave addr = 1 )
I10 Count 1 ( starting reg num = 1 )
I11 Count 0 ( stored data from reg num 40001 )
I12 Count 0 ( stored data from reg num 40002 )
I13 Count 0 ( stored data from reg num 40003 )
I14 Count 0 ( stored data from reg num 40004 )
I15 Count 0 ( stored data from reg num 40005 )
I16 Count 0 ( stored data from reg num 40006 )
I17 Count 0 ( stored data from reg num 40007 )
I18 Count 0 ( stored data from reg num 40008 )
I19 Count 0 ( stored data from reg num 40009 )
I20 Count 0 ( stored data from reg num 40010 )
EX3
Write 8 Discrete Values to slave address 3 starting with coil 1.
Input Data Type Value
I1 ASCII WRC,MM,PORT1
I2 Count 8 ( num write attributes = 8 )
I3 Long State 0
I4 Discrete False
I5 Discrete False
I6 Long State 0
I7 Long State 0
I8 ( triggered by discrete LSP EX3,R)
I9 Long State 3 ( slave addr = 3 )
I10 Count 1 ( starting coil num = 1 )