Assignassign input as index bitstatement, Definedefine namepseudo-statement, Assign – Lenze PMSS1000 Simple Servo User Manual
Page 51: Assign input as index bit statement, Define, Define name pseudo-statement

Indexer-Programmer-Manual.pdf REV 1.3
ASSIGN Assign
Input
As
Index
Bit
Statement
Purpose
Assign keyword causes specific input act as particular bit of system variable INDEX .
After such assignments changes in input state will cause changes in particular bit
input is assign to.
Syntax
ASSIGN IINPUT AS BIT
Input name
input name (IN_A1..IN_A2 etc.)
Bit#
INDEX variable bit number from 0 to 31
Remarks
See Also
Example:
ASSIGN INPUT 5 AS BIT 0 ;index bit 0 state ;matches ;state of input 5
DEFINE Define
name
Pseudo-statement
Purpose
DEFINE is used to define symbolic names for variables and constants for
programming convenience. It is a pseudo-statement i.e. it is not executable.
DEFINE can be used also to substitute symbolic string.
Syntax
DEFINE
name
any symbolic string
string
any symbolic string
Remarks:
DEFINE must be located before any executable statement
See Also
Example:
DEFINE Five 5 DEFINE Three 3DEFINE Result V1
DEFINE SUMM Five + Three
ProgramStart:
Result = Five + Three
;Is same as V1 = 5+3
Result = SUMM
;same result as above
End
51