beautypg.com

Example 2 – Micromod MOD: 1800P - MOD 30ML Identity Module (Version 2) System, I/O and Communications Functions User Manual

Page 267

background image

Logic Functions - Book 1

APPENDIX B - MODBUS MASTER CONFIGURATION

B-23

B.4.2 Example

2

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 Floating Point values from 20 Holding Registers in slave address 2 starting with register
number 1001 and store as Floating Point 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 0
I8 (triggered by discrete LSP EX2,R )
I9 Long State 2 (slave addr = 2 )
I10 Count 1001 (starting reg num = 1001 )
I11 Floating Point 0 (stored data from reg num 41001-2)
I12 Floating Point 0 (stored data from reg num 41003-4)
I13 Floating Point 0 (stored data from reg num 41005-6)
I14 Floating Point 0 (stored data from reg num 41007-8)
I15 Floating Point 0 (stored data from reg num 41009-10)
I16 Floating Point 0 (stored data from reg num 41011-12)
I17 Floating Point 0 (stored data from reg num 41013-14)
I18 Floating Point 0 (stored data from reg num 41015-16)
I19 Floating Point 0 (stored data from reg num 41017-18)
I20 Floating Point 0 (stored data from reg num 41019-20)

EX3

Write 9 different data types to slave address 3 starting with register number 1001.

Input Data Type Value
I1 ASCII WRR,MM,PORT1
I2 Count 9 ( num write attributes = 9 )
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 1001 (starting reg num = 1001 )
I11 Discrete true (written to reg num 41001)
I12 Short State 3 (written to reg num 41002)
I13 Long State 150 (written to reg num 41003)