
MCO 305 Design Guide
__ Software Reference __
MG.33.L4.02 – VLT
®
is a registered Danfoss trademark
91
Command
Description
Syntax
Parameter
#INCLUDE
compiler directive: embedding further data
#INCLUDE file
file = name of the file to be
included
Input/Output Commands
Commands for setting and re-setting the outputs, reading the inputs, reading movement information,
reading system data, and entering and outputting user information. (Group I/O)
Command
Description
Syntax
Parameter
APOS
reads actual position
res = APOS
–
AVEL
queries actual velocity of an axis
res = AVEL
–
AXEND
reads info on status of program
execution
res = AXEND
–
CPOS
reads set position
res = CPOS
–
ERRNO
reads error number
res = ERRNO
–
IN
reads input bit-by-bit (individually)
res = IN n
n = input number
INB
reads input by bytes (units of 8)
res = INB n
n = input number
INAD
reads analog input
res = INAD n
n = number of analog input
INKEY
reads key codes of FC 300
INKEY p
p = 0 (wait for key code)
p > 0 (wait for max. p ms)
p < 0 (no wait for key code)
IPOS
queries last index or marker position of
the slave
res = IPOS
–
MAPOS
queries actual position of the master
res = MAPOS
–
MAVEL
queries actual velocity of the master
res = MAVEL
–
MIPOS
queries last index or marker position of
the master
res = MIPOS
–
OUT
sets digital outputs bit-by-bit (single)
OUT n s
n = output number
s = condition ON / OFF
OUTAN
sets FC 300 reference
OUTAN v
v = bus reference
OUTB
sets digital outputs by bytes (units of 8) OUTB n v
n = output byte
v = value
OUTDA
sets FC 300 analog outputs
OUTDA n v
n = output number
v = value
PID
completes PID calculation
u(n) = PID e(n)
e(n) = actual deviation
output (display) texts and variables
PRINT i or PRINT i; i = information
PRINT DEV
stops information output
PRINT DEV nn
printlist
nn = no for the device
0 = standard
-1 = no output after that
printlist = argument
STAT
reads axis status
res = STAT
–
SYNCERR
queries actual synchronization error of
the slave
res = SYNCERR
–
Содержание MCO 305
Страница 4: ......