
Programmable SyncPos motion controller
MG.10.J8.02 – VLT is a registered Danfoss trade mark
118
Software Reference
■
■
■
■
■
IN B
The condition of the digital inputs can be read as
byte via the INB command.
The values reflect the condition of the individual
inputs.
Summary
reads one byte from digital inputs
Syntax
res = INB n
Parameter
n =
input byte
0 = input 1 (LSB) … 8 (MSB)
1 = input 33 (LSB) … 16 (MSB)
Return value
res = value of the input byte (0 ... 255)
The least significant bit corresponds to the condition
of input 1/33.
NB!
The definition of the high and low level, as
well as the input circuit, can be taken from
the chapter Input/output terminal or the VLT5000
manual.
Command group
I / O
Cross Index
IN, OUT, OUTB
Syntax-Example
in = INB 0
/* store the condition of the first 8 inputs */
Example
IN1 = low, IN2 = high, IN3 = high,
all other inputs are low
res = 2^1 + 2^2 = 6
Program sample
IN B_01.M, I NB_02.M,
OUTB_01.M
■
■
■
■
■
IN DEX
Movement to the index position of the encoder will
be started via the INDEX command. The Index
search takes places from the
Home velocit
Home velocit
Home velocit
Home velocit
Home velocit y
yy
yy
defined
in parameter HOME_VEL (7). The HOME_VEL sign
determines the rotational direction in which the
Index signal will be searched.
Summary
Move to index position of the encoder
Syntax
I N D EX
Peculiarities
The utilized encoder must have an index channel.
NB!
Only encoders with a low active index pulse
can be used.
If an index pulse is not found within a complete
revolution, then an alarm signal occurs.
The INDEX command will also be carried out to
the end in NOWAIT ON, before further program
processing can be begun.
Command group
I N I
Cross Index
HOME, POSA, DEF ORIGI N
Syntax-Example
I N D EX
/* move to index */
Program sample
I N D EX_01.M