Reference Manual

PMAC/PMAC2 Software Reference Manual
PMAC Command and Variable Summary 9
PLC Program Commands
Conditions
IF ({condition}) – Evaluates condition to determine which branch to enter
WHILE ({condition}) – Conditional loop start; if true, holds up operation of PLC in
the WHILE loop
AND ({condition}) – Forms compound condition w/ IF or WHILE
OR ({condition}) – Forms compound condition w/ IF or WHILE
ELSE – Starts false branch of IF
ENDIF – Closes out the actions dependent on an IF statement; used after, not before,
an ELSE statement.
ENDWHILE – Closes out the actions dependent on a WHILE statement
Actions
{variable}={expression} – Expression value given to variable
MACROSLVREAD – Copy Type 1 MACRO slave variable to PMAC variable
MACROSLVWRITE – Copy PMAC variable value to Type 1 MACRO slave variable
COMMAND "{command}" – Issue command as if from host
COMMAND^{letter} – Issue control character command
SEND"{message}" – Send message to active host interface (serial or parallel)
SENDS"{message}" – Send message to serial interface
SENDP "{message}" – Send message to parallel (bus) interface
DISPLAY [{constant}] "{message}" – Display message on LCD display, starting at
specified character
DISPLAY {constant}, {constant}.{constant}, {variable} – Send variable
value to LCD using specified location and format.
ENABLE PLC{constant}[,{constant}...] – Enable operation of specified
PLC program[s]
DISABLE PLC{constant}[,{constant}...] – Disable operation of specified
PLC program[s]
PAUSE PLC{constant}[,{constant}...] – Suspend operation of specified
interpreted PLC program[s] at present point
RESUME PLC{constant}[,{constant}...] – Continue operation of specified
interpreted PLC program[s] at paused point
ENABLE PLCC{constant}[,{constant}...] – Enable operation of specified
compiled PLC program[s]
DISABLE PLCC{constant}[,{constant}...] – Disable operation of specified
compiled PLC program[s]