Intelligent Motion Systems 17 Network Card User Manual


 
48
MNEMONIC FUNCTION TYPE
IN Read Inputs 1-4 As 1 Value I/O Variable
DESCRIPTION
This keyword will read the binary state of inputs 1-4 and print them as a decimal value. When used thus Input 1 is the Least
Significant Bit (LSB), Input 4 is the Most Significant Bit (MSB). It may be used in conjunction with the R1-R4 (User Registers),
PR (Print), BR (Branch) and Cl (Call Subroutine) instructions.
USAGE
PR IN
BR IN=<0-15>
CL IN=<0-15>
EXAMPLE:
PR IN ‘Print the state of Inputs 1-4 to the Terminal Screen
BR 128, IN=8 ‘Conditional branch to program line 128 if the binary state of Inputs 1-4 = 8 (1000)
CL 432, IN=13 ‘Call subroutine at line 432 if the binary state of Inputs 1-4 = 13 (1101)
RELATED COMMANDS: I1-5, O1-O5, PR, S1-S4
MNEMONIC FUNCTION TYPE
IP Initialize Parameters Instruction
DESCRIPTION
The IP instruction will return all of the MDrive Motion Control parameters to their stored values.
USAGE
IP
EXAMPLE:
IP
RELATED COMMANDS: CP, S
MNEMONIC FUNCTION TYPE
JE Joystick Enable Flag Setup Flag
DESCRIPTION
The will enable joystick mode for the Analog Input. States are 0=Disabled, 1=Enabled.
USAGE DEFAULT
JE= <0/1> 0 (Disabled)
EXAMPLE:
JE=0 ‘Disable Joystick
JE=1 ‘Ensable Joystick
RELATED COMMANDS: I5