Download Print this page

Danfoss MCO 305 Design Manual page 119

Hide thumbs Also See for MCO 305:

Advertisement

MCO 305 Design Guide
INB
Summary
Syntax
Parameter
Return Value
Description
Command Group
Cross Index
Syntax Example
Example
Program Sample
INDEX
Summary
Syntax
Description
Command Group
Cross Index
Syntax Example
Program Sample
__ Software Reference __
Reads one byte from digital inputs
res = INB n
n = input byte:
0 = input 1 (LSB)
1 = input 33 (LSB)
2 = input 9
res = value of the input byte (0 - 255)
The least significant bit corresponds to the condition of input 1/33.
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.
I/O
IN, OUT, OUTB
in = INB 0
/* store the condition of the first 8 inputs */
IN1 = low, IN2 = high, IN3 = high,
all other inputs are low
res = 2^1 + 2^2 = 6
INB_01.M, INB_02.M, OUTB_01.M
Move to index position of the encoder
INDEX
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).
INI
HOME, POSA, DEF ORIGIN, NOWAIT
INDEX
/* move to index */
INDEX_01.M
®
MG.33.L4.02 – VLT
is a registered Danfoss trademark
- 8 (MSB)
- 18 (MSB)
- 10 (12)
119

Advertisement

loading