Reading from the 1560-mbp, Global data - mstr type 6, 1 global data - mstr type 6 – SMC Networks ProSoft 1560 User Manual

Page 19: Chapter 4 — programming considerations

Advertising
background image

19

Contents

4.2

Reading from the 1560-MBP

Reading data from the 1560-MBP is independent of the Global
Data Control mode selection. There are two methods for
obtaining data from the 1560-MBP units as outlined in the

following section.

4.2.1 Global Data - MSTR Type 6

The 1560-MBP publishes Global Out Data which can be accepted by any
other node on the Modbus Plus port. The structure of the Global Data sent
out in is as follows:

Global Data from each 1560-MBP unit: Note the minimum
length of 2 words can be increased up to 10 words by
selectively enabling Datalinks using the dip switches

This instruction would write one value into parameter 19 of the device attached to
1560-MBP node address 37. In the 1560-MBP register map this would be register
40119.

enable -

abort -

Modicon Programming Example - MSTR Type 1

- active

40001

40010

MSTR
00002

- error

- success

Contents of registers in control block

40001 = 1 Write instruction
40002 = 0 Error code
40003 = 1 Length of the write
40004 = 119 slave register to Write (40119)
40005 = 37 MBP Node address to write to
40006 = 1 Slave Input Path for routing

40010 = Source of the data to the
device attached to the 1560-MBP

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.

Chapter 4 — Programming Considerations

Status Word

Feedback

Adaptor I/O-A1
Adaptor I/O-A2
Adaptor I/O-B1
Adaptor I/O-B2
Adaptor I/O-C1
Adaptor I/O-C2
Adaptor I/O-D1
Adaptor I/O-D2

0
1
2
3
4
5
6
7
8
9

(1)

(2)

(3)

Optional Global Data
(1) Datalink A only - 4 words
(2) Datalink A & B only - 6 words
(3) Datalink A, B, C & D - 10 words

Global Out Data

Advertising