beautypg.com

B&B Electronics MODSCAN32 - Manual User Manual

Page 21

background image

21

FORCE SINGLE COIL (FUNCTION CODE 05)


This message forces a single coil either On of OFF. Any coil that exists within the controller can be forced
to either state, (ON or OFF). Coils are numbered from zero (i.e. coil 1 is address 0000, coil 2 is address
0001, etc.). The data value 65,280, (FF00 HEX) will set the coil ON and the value zero will turn it off. All
other values are illegal and will not effect the coil. The use of slave address 00, (Broadcast mode), will
force all attached slaves to modify the desired coil.

The example below requests slave number 17 to turn coil number 0173 ON.

ADDR

FUNC

DATA
COIL
HO

DATA
COIL
LO

DATA #
ON/OFF

DATA

ERROR
CHECK
FIELD

11

05

00

AC

FF

00

3F


The normal response to the command request is to retransmit the message as received, after the coil state
has been altered.

ADDR

FUNC

DATA
COIL
HO

DATA
COIL
LO

DATA #
ON/OFF

DATA

ERROR
CHECK
FIELD

11

05

00

AC

FF

00

3F