
MCO 305 Design Guide
__ Software Reference __
MG.33.L4.02 – VLT
®
is a registered Danfoss trademark
119
INB
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)
- 18 (MSB)
2 = input 9
- 10 (12)
Return Value
res = value of the input byte (0 - 255)
The least significant bit corresponds to the condition of input 1/33.
Description
The condition of the digital inputs can be read as a byte via the INB command.
The values reflect the condition of the individual inputs.
The definition of the high and low level, as well as the input circuit, can be taken
from the FC 300 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
INB_01.M, INB_02.M, OUTB_01.M
INDEX
Summary
Move to index position of the encoder
Syntax
INDEX
Description
Movement to the index position of the encoder will be started via the INDEX
command. The Index search takes places with the
Velocity for Home Motion
defined in par. 33-03. The
Velocity for Home Motion
sign determines the rotational
direction in which the Index signal will be searched.
NB!:
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.
NB!:
The command INDEX can not be used with absolute encoders (see par. 32-00
Incremental Signal Type
).
Command Group
INI
Cross Index
HOME, POSA, DEF ORIGIN, NOWAIT
Syntax Example
INDEX
/* move to index */
Program Sample
INDEX_01.M
Summary of Contents for MCO 305
Page 4: ......