Danfoss MCO 305 Design Manual page 177

Programmable motion controller
Hide thumbs Also See for MCO 305:
Table of Contents

Advertisement

MCO 305 Design Guide
Input/Output Commands
Commands for setting and re-setting the outputs, reading the inputs (Group I/O)
Command
Description
IN
reads input bit-by-bit (individually)
INAD
reads analog input
INB
reads input by bytes (units of 8)
INKEY
reads key codes of FC 300
OUT
sets digital outputs bit-by-bit (single)
OUTAN
sets FC 300 reference
OUTB
sets digital outputs by bytes (units of 8) OUTB n v
OUTDA
sets FC 300 analog outputs
System State Functions
Commands for querying system status information such as drive position and velocity, system clock, error
status, etc.. Commands for configuring and using arrays for recording test results. (Group SYS)
Command
Description
APOS
reads actual position
APOSDIFF
overflow handling of incremental
encoders in applications
AVEL
queries actual velocity of an axis
AXEND
reads info on status of program
execution
CPOS
reads set position
CPOSDIFF
overflow handling of incremental
encoders in applications
ENCPOSOFFS
syncs the incremental position
counter with the absolute counter in
the encoder
ENCTGREAD
reads a RS485 telegram from the
encoder
ENCTGWRITE
sends a RS485 telegram to the
encoder
ERRNO
reads error number
IPOS
queries last index or marker position
of the slave
__ How to Program __
Syntax
res = APOS
res =
APOSDIFF oldpos
res = AVEL
res = AXEND
res = CPOS
res =
CPOSDIFF oldpos
res = ENCPOSOFFS
offset
res = ENCTGREAD
array
res = ENCTGWRITE
length array
res = ERRNO
res = IPOS
®
MG.33.L5.02 – VLT
is a registered Danfoss trademark
Syntax
Parameter
res = IN n
n = input number
res = INAD n
n = number of analog input
res = INB n
n = input number
INKEY p
p = 0 (wait for key code)
p > 0 (wait for max. p ms)
p < 0 (no wait for key code)
OUT n s
n = output number
s = condition ON / OFF
OUTAN v
v = bus reference
n = output byte
v = value
OUTDA n v
n = output number
v = value
Parameter
oldpos =
APOS at a previous time
oldpos =
CPOS at a previous time
offset = returns the difference
between absolute and
incremental position
array = user array where the
received payload data should
be put.
length = number of bytes (in the
user array) to be sent
array = user array containing
the payload data to send to
the encoder.
177

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents