SMC Networks user manual Reading from the 1560-MBP, Global Data Mstr Type

Models: 1560

1 44
Download 44 pages 55.53 Kb
Page 19
Image 19

Chapter 4 — Programming Considerations

Modicon Programming Example - MSTR Type 1

enable -

 

- active

Contents of registers in control block

40001

40001

= 1 Write instruction

 

 

abort -

 

- error

40002

= 0

Error code

 

40010

40003

= 1

Length of the write

 

 

 

 

 

40004 = 119 slave register to Write (40119)

 

 

- success

40005

= 37 MBP Node address to write to

 

MSTR

 

40006 = 1

Slave Input Path for routing

 

00002

 

40010

= Source of the data to the

 

 

 

 

 

 

 

 

 

 

device attached to the 1560-MBP

 

 

 

 

 

 

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.

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.

4.2Reading 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:

0

1

2

3

4

5

6

7

8

9

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

Global Out Data

(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 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

19

Page 19
Image 19
SMC Networks user manual Reading from the 1560-MBP, Global Data Mstr Type, Modicon Programming Example Mstr Type