SMC Networks 1560 Modicon Programming Example Mstr, Enable 40400 Active, Abort Error 40410, 00032

Models: 1560

1 44
Download 44 pages 55.53 Kb
Page 17
Image 17

Chapter 4 — Programming Considerations

 

 

 

1560-MBP

 

Global Data

 

 

 

 

 

Modbus Plus

 

Table

 

 

Description

 

 

 

 

Address

 

Index

 

 

 

 

 

13,29,45,61

 

24

 

 

 

Control Word

 

 

 

 

 

 

 

25

 

 

 

Reference Word

 

 

 

14,30,46,62

 

26

 

 

 

Control Word

 

 

 

 

 

 

 

27

 

 

 

Reference Word

 

 

 

15,31,47,63

 

28

 

 

 

Control Word

 

 

 

 

 

 

 

29

 

 

 

Reference Word

 

 

 

16,32,48,64

 

30

 

 

 

Control Word

 

 

 

 

 

 

 

31

 

 

 

Reference Word

 

Modicon Programming Example - MSTR 5

 

 

 

 

 

 

 

enable -

 

40400

 

- active

 

Contents of registers in control block

 

 

 

 

 

 

 

40400

= 5 Global write data instruction

abort -

 

 

 

- error

 

 

 

 

 

 

40410

 

 

40401

= 0 Error code

 

 

 

 

 

 

 

40402

= 32 Global Data block length

 

 

 

 

 

 

 

 

 

 

 

 

 

- success

 

 

 

(Max 32 words)

 

 

 

 

 

 

 

 

 

 

 

MSTR

 

 

40403

= 0 N/A

 

 

 

00032

 

 

 

 

40404

= 0 N/A

 

 

 

 

 

 

 

40410

= Source of the Global Out Data

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

This instruction “publishes” Global Data on the Modbus Plus network from the Host PLC. Up to 32 words can be transmitted from the Host, allowing up to 16 1560-MBP units to be controlled. When the 1560-MBP reads the Global Data it first examines the source node address to assure it matches the dip switch configured Host Node Address, and then retrieves the two words that relate to its node from the packet.

Controller

Node

Description

Address

40410

33

Control Word

 

40411

Reference Word

 

40412

34

Control Word

 

40413

Reference Word

 

 

40420

37

Control Word

 

40421

Reference Word

 

 

40440

48

Control Word

40441

Reference Word

 

17

Page 17
Image 17
SMC Networks 1560 user manual Modicon Programming Example Mstr, Enable 40400 Active, Abort Error 40410, Success, 00032