Intelligent Motion Systems 17 Network Card User Manual


 
47
MNEMONIC FUNCTION TYPE
IC Increment Variable Program Instruction
DESCRIPTION
The IC instruction will increment the specified variable by one.
USAGE
IC <var>
EXAMPLE:
IC R4 ‘Increment User Register 4
RELATED COMMANDS: IC
MNEMONIC FUNCTION TYPE
I5 Read Analog Input I/O Variable
DESCRIPTION
This variable will read the value of the voltage seen on the Analog Input. Can be used with PR (Print), BR (Branch) and Cl (Call
Subroutine) instructions. The value read will between 0 and 1028.
USAGE
PR I5
BR <addr/label>, I5=<0 - 1028>
CL <addr/label>, I5=<0 - 1028>
EXAMPLE:
PR I5 ‘Print the value of the Analog Input to the Terminal Screen
BR K1, I5=512 ‘Branch to Program labled K1 if Analog Input = 512
CL 432, I5=0 ‘Call subroutine at line 432 if Analog Input = 0
RELATED COMMANDS: BR, CL, PR
MNEMONIC FUNCTION TYPE
I6 Read Encoder Index Mark I/O Variable
DESCRIPTION
This variable will read the on/off state of the Encoder Index Mark. Can be used with PR (Print), BR (Branch) and Cl (Call Subrou-
tine) instructions. The value read will be 0 (off mark) or 1 (on mark).
USAGE
PR I6
BR <addr/label>, I6=<0/1>
CL <addr/label>, I6=<0/1>
EXAMPLE:
PR I6 ‘Print the on/off state of the encoder index mark
BR K1, I6 ‘Branch to Program labled K1 if encoder index mark is TRUE
CL 432, I6=0 ‘Call subroutine at line 432 if I6=0
RELATED COMMANDS: BR, CL, PR