
MCO 305 Design Guide
__ Software Reference __
118
MG.33.L4.02 – VLT
®
is a registered Danfoss trademark
IN
Summary
Reads status of digital input
Syntax
res = IN n
Parameter
n = input number
1 – 10 or 1 – 12 (option inputs)
18, 19, 27, 29, 32, 33
Return Value
res = input status
0 = Low-level or undefined
1 = High-level
Description
The status of a digital input can be read with the IN command. Depending on the
signal level, a 0 or 1 will be given.
The selection of the mode for input 11,12 is done by par. 33-60 IOMODE.
The definition of a high or low level, as well as the input circuit, can be taken from
the “Operating Instructions”, as well as from the FC 300 manual.
The inputs 5 and 6 are also used as marker inputs for the master and slave
encoders.
Command Group
I/O
Cross Index
INB, OUT, OUTB
Parameters: 33-60
Terminal X59/1 and X59/2 Mode
, IOMODE,
33-50...59,61,62
Terminal X57/n Digital Inputs
, I_FUNCTION_n
Syntax Example
in4 = IN 4
/* store condition input 4 in variable in4 */
IF (IN 2) THEN
/* if high level on terminal 2, set output 01 */
OUT 1 1
ELSE
OUT 1 0
ENDIF
Program Sample
IN_01.M
INAD
Summary
Reads analog input
Syntax
res = INAD n
Parameter
n = number of the analog input: 53,54
Return Value
res = analog value
Terminal 53/54:
-1000 – 1000 = -10 V – 10 V
Terminal 53/54:
0 – 10 V
res = 0 – 100
Description
The INAD command reads the value of the analog inputs.
Command Group
I/O
Syntax Example
an1 = INAD 53
PRINT "Analog input 53 " ,an1
Summary of Contents for MCO 305
Page 4: ......