IMS 17 Operating Instructions Manual page 50

Motion control
Table of Contents

Advertisement

MNEMONIC
IN
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
IP
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
JE
DESCRIPTION
The will enable joystick mode for the Analog Input. States are 0=Disabled, 1=Enabled.
USAGE
JE= <0/1>
EXAMPLE:
JE=0
'Disable Joystick
JE=1
'Ensable Joystick
RELATED COMMANDS: I5
FUNCTION
Read Inputs 1-4 As 1 Value
FUNCTION
Initialize Parameters
FUNCTION
Joystick Enable Flag
DEFAULT
0 (Disabled)
TYPE
I/O Variable
TYPE
Instruction
TYPE
Setup Flag
48

Advertisement

Table of Contents
loading

This manual is also suitable for:

Excellence in motion mdrive17

Table of Contents