SMC Networks 1560 Host Issued Read Commands Mstr Type, Enable 40500 Active, 40510, 00010

Models: 1560

1 44
Download 44 pages 55.53 Kb
Page 20
Image 20

Chapter 4 — Programming Considerations

 

 

 

 

Please note that not all A-B Scanport devices

 

 

 

 

 

 

 

 

 

 

 

support Datalinks. In particular, the SMC Dialogue

 

 

 

 

 

 

Plus does not. To operate with the SMC Dialogue

 

 

 

 

 

 

Plus do not enable

Datalink Messaging.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Modicon Programming Example - MSTR Type 6

 

 

 

 

 

 

 

 

 

enable -

 

40500

- active

 

Contents of registers in control block

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

abort -

 

 

- error

 

40500

= 6 global read data instruction

 

 

 

 

 

 

40510

 

40501

= 0 Error code

 

 

 

 

 

 

40502

= 10 length of the global data

 

 

 

 

 

- success

 

40503

= 0 number of words available

 

 

 

 

 

 

 

 

 

 

MSTR

40504

= 37 slave address to retrieve data from

 

 

 

 

00010

 

 

40510

= Destination address for global data

 

 

 

 

 

 

 

from slave 37

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

In the example we configured the Allen-Bradley device to use Datalink output words. The MSTR 6 instruction (Read Global Data), when programmed in a Host PLC, will retrieve the Global Data from the 1560-MBP and place it in the Host PLC register space beginning at address 40510.

4.2.2 Host Issued Read Commands - MSTR Type 2

If the PLC Programmer does not want to use Global Data or if there is a desire to read more data out of the 1560-MBP, the MSTR Type 2 Read Command can be used. The MSTR Type 2 Read command has access to all available parameter values (40101 to 40xxx), in addition to the Control and Status registers (40001 to 40100).

40001

40011

40021

40101

4xxxx

Write Data – Control, Reference & Data Link IN

Read Data – Feedback & Data Link OUT

Miscellaneous data space

Used for MBP status data (See Section 4.3)

Parameter Register Space

This register space contains the parameter table from the SCANport device. This paramaters are stored in their numerical order (example):

40101 = Parameter #1

40102 = Parameter #2

The full length of this space is a function of the SCANport device connected. Max size is 2000 parameters.

MSTR Type 2 Accessible Data Registers: The memory map for the registers which a PLC programmer can access from the 1560-MBP using the MSTR Type 2 command.

20

Page 20
Image 20
SMC Networks 1560 user manual Host Issued Read Commands Mstr Type, Enable 40500 Active, 40510, 00010