Download Print this page

Danfoss MCO 305 Design Manual page 118

Hide thumbs Also See for MCO 305:

Advertisement

MCO 305 Design Guide
IN
Summary
Syntax
Parameter
Return Value
Description
Command Group
Cross Index
Syntax Example
Program Sample
INAD
Summary
Syntax
Parameter
Return Value
Description
Command Group
Syntax Example
118
__ Software Reference __
Reads status of digital input
res = IN n
n = input number
1 – 10 or 1 – 12 (option inputs)
18, 19, 27, 29, 32, 33
res = input status
0 = Low-level or undefined
1 = High-level
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.
I/O
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
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
IN_01.M
Reads analog input
res = INAD n
n = number of the analog input: 53,54
res = analog value
Terminal 53/54:
Terminal 53/54:
The INAD command reads the value of the analog inputs.
I/O
an1 = INAD 53
PRINT "Analog input 53 " ,an1
®
MG.33.L4.02 – VLT
is a registered Danfoss trademark
-1000 – 1000 = -10 V – 10 V
0 – 10 V
res = 0 – 100

Advertisement

loading