beautypg.com

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

Page 261

background image

Logic Functions - Book 1

APPENDIX B - MODBUS MASTER CONFIGURATION

B-17

B.3.6

Write One or More Coils

The configuration of a Modbus Master EX block used to write one or more Coils (Discretes) in
memory area 00001 to 09999 is defined as:

INPUT1

WRC,MM,PORTz

Local ASCII

CFG ONLY

Not writeable through message handler.

INPUT2

NUMBER WRITE ATTRIBUTES

Local Count

CFG ONLY

Not writeable through message handler.

This value is the number of attribute values that should be written. The values
to be written are stored at this block’s INPUT11 through INPUTn. Valid values
are 1 through 2000.

INPUT3

STATUS INFO

Local Long State

Not writeable through message handler.

See Message STATUS INFO values and descriptions above.

INPUT4

MESSAGE QUALITY

Local Discrete

Not writeable through message handler.

GOOD (0) if a valid response message was received.
BAD (1) if a valid response message was not received.

INPUT5

MESSAGE ACTIVE

Local Discrete

Not writeable through message handler.

Specifies whether the message transaction has been completed. The value
will be set to 1 (TRUE) when the message is triggered and remains set until
the transaction is complete or until failure is determined.

INPUT6

RESERVED

Local Long State

Not writeable through message handler.

IF REFRESH STATE = 0
Previous send input value. Used in detecting low->high trip transaction.

ELSE IF REFRESH STATE = 255
This value is not used.

ELSE IF REFRESH STATE = 1 through 254
This value will get set equal to the REFRESH STATE value and decrement
by 1 each time this block executes. When it gets to 0 the read message is
sent to the slave. This value will remain at 0 until a response message is
received or the message times out. It will then repeat the cycle again.