beautypg.com

2 client (rockwell) messaging support – ElmoMC Multi-Axis Motion Controller-Maestro User Manual

Page 212

background image

int i, j, n

dev1.tINT = 5

dev1.iTag4[0] = j

dev1.iTag34[i, j] = n

Device’s Tag can be used in logical operations if, switch, while, etc., for example:

if( dev1.tINT == 10 )

end

if

while( dev1.iTag[0] )

end

while

11.5.2 Client (Rockwell) Messaging Support

The Maestro device implements a messaging server. Class 1 connections normally target an
Assembly object to exchange data between the scanner (Rockwell device) and the adapter
(Maestro device).

The Maestro provides access to an Assembly data attribute via Generic CIP object
Read/Write messaging (see explicit messaging in Figure 11-1). In this case connection path
specifies (on scanner part) by using Assembly object instance and attribute 3.

The Maestro device implements a messaging server. It allows two messaging types:

1. GIP data table Read/Write

This Messaging type describes below in Chapter 8Class 3 (connected) messaging
server”.

2. CIP Generic

• Set Attribute Single

Service Code = 0x10
Class = 0x04(Assembly object)
Instance = target Assembly object instance
Attribute = 3 (Data)

• Get Attribute Single

Service Code = 0x0E
Class = 0x04(Assembly object)
Instance = target Assembly object instance
Attribute = 3 (Data)

Maestro

Software Manual

Ethernet/IP Communication

MAN-MASSW (Ver. Q)

11-10