2 maestro program – ElmoMC Multi-Axis Motion Controller-Maestro User Manual

Page 220

Advertising
background image

11.7.2.2

Maestro Program

Get Tag syntax is

[Adapter Tag Name]

[Adapter Tag Name][index]

For example:

int i, j, n

i = tINT

j = iTag4[0]

n = iTag34[i, j]

where an index is needed if the tag is an array.

Set the Tag syntax to

[Adapter Tag Name] = [const value, expression]

[Adapter Tag Name][index] = [const value, expression]

where an index is needed if the tag is an array.

For example:

int i, j, n

tINT = 5

iTag4[0] = j

iTag34[i, j] = n

An Adapter Tag can be used in logical operations if, switch, while, etc. for example:

if(tINT == 10 )

end if

while(iTag[0] )

end while

Maestro

Software Manual

Ethernet/IP Communication

MAN-MASSW (Ver. Q)

11-18

Advertising