beautypg.com

B&B Electronics MODSCAN32 - Manual User Manual

Page 23

background image

23

FORCE MULTIPLE COILS (FUNCTION CODE 15)


Function 15 allows the user to modify the contents of a group of consecutively addressed coils.
The following example forces 10 coils starting at address 20, (13 HEX). The two data fields,
CD = 1100 1101 and 00 = 0000 0000, indicate that coils 27, 26, 23, 22 and 20 are to be forced on.

ADDR

FUN
C

H.O.
ADDR

L.O.
ADDR

QUANTITY

BYTE
CNT

DATA
COIL
STATUS

DATA
COIL
STATUS

ERROR
CHECK
FIELD

11

0F

00

13

00

0A

02

CD

00

F4


The normal response to a FORCE MULTIPLE COILS request is to echo the slave address, function code,
starting address, and quantity of coils set.

ADDR

FUNC

H.O.
ADDR

L.O.
ADDR

QUANTITY

ERROR
CHECK
FIELD

11

0F

00

13

00

0A

C3