SMC Networks ProSoft 1560 User Manual

Page 21

Advertising
background image

21

Contents

Chapter 4 — Programming Considerations

enable -

- active

40050

40060

MSTR
00020

- error

- success

abort -

Contents of registers in the control block

40050 = 2 Read Instruction
40051 = 0 Error Code
40052 = 13 Length of the read
40053 = 21 slave register to read (40021)
40054 = 37 Node address to retrieve data from
40055 = 1 Slave Input Path for routing
40060-40092 = data returned from the 1560-
MBP

Modicon Programming Example - MSTR Type 2

The MSTR instruction shown above reads the status registers (40021- 40033) from
the 1560-MBP at Node Address 6, and stores the values in the processor starting at
register 40060. Note that the instruction reserves 20 words for the data block, but we
have chosen to only fill 13 when configuring the command.

Note that the Slave Input Path value must be

entered in order for the command to execute

successfully. Valid values are from 1 to 8. Any

other values will cause the command to fail

Advertising