![Danfoss VLT5000 SyncPos Скачать руководство пользователя страница 118](http://html.mh-extra.com/html/danfoss/vlt5000-syncpos/vlt5000-syncpos_operating-instructions-manual_4121908118.webp)
117
MG.10.J8.02 – VLT is a registered Danfoss trade mark
Programmable SyncPos motion controller
Software Reference
■
■
■
■
■
I N
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.
Summary
reads status of digital input
Syntax
res = IN n
Parameter
n = input number
SyncPos option: 1 … 8
VLT control card: 16, 17, 18, 19, 27, 29, 32, 33
Return value
res = input status
0 = Low-level or undefined
1 = High-level
NB!
The definition of a high or low level, as well
as the input circuit, can be taken from the
chapter Input/output terminals, as well as the
VLT5000 manual.
Command group
I / O
Cross Index
INB, OUT, OUTB
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
E LS E
OUT 1 0
E N D I F
Program sample
I N_01.M
■
■
■
■
■
INAD
The INAD command reads the value of the analog
inputs.
Summary
reads analog input
Syntax
res = INAD n
Parameter
n = number of the analog input: 53, 54 and 60
Return value
res = analog value
NB!
The resolution of the analog inputs was
increased with the introduction of software
version SyncPos VLT 3.12.
For these versions the following return values are
true:
terminal 53/54
–1000 … 1000 = –10 V … 10 V
terminal 60:
0 … 2000 = 0 … 20 mA
For the software version SyncPos VLT2.03 following
return value are valid:
terminal 53/54
0 … 10 V
res = 0 … 100
terminal 60:
0 … 20 mA
res = 0 … 200
You will find the number of the software version in
parameter 624 on the VLT display.
Command group
I / O
Syntax-Example
an1 = INAD 53
PRINT “Analog input 53 “ ,an1