6 i/o functions, 1 maestro i/o functions – ElmoMC Multi-Axis Motion Controller-Maestro User Manual
Page 59
Function
plss_sw_sel(busID,vendorID,productCode,revisionNum,serialNum) -
used to switch the a specific LSS Slave to configuration mode.
busID
CAN bus ID - possible value: 0, 1
vendorID
Vendor ID of selected device (for Elmo - 154)
productCode
Product Code of selected device
revisionNum
Revision Number of selected device
serialNum
Serial Number of selected device
Return Value
“OK” or error code
4.6
I/O Functions
Maestro supports two types of I/O: internal and external. "Internal" I/O's refers to devices
that are connected directly to the Maestro through its I/O ports (labeled DIGITAL I/O and
ANALOG INPUT). "External" I/O's refers to I/O devices that are connected to the
Maestro through the CAN network using the CANopen DS 401 protocol. External
SimplIQ
devices can be controlled with
SimplIQ
commands through the network.
To get interrupts from a
SimplIQ
device, the user program must contain a callback function
and the
SimplIQ
device must be initialized with an ADI command (value 1).
Syntax :
4.6.1
Maestro I/O Functions
Function
m_din
–
get all Maestro digital inputs values (internal digital input)
Call Format
m_din
Parameters
None
Example
int inputData
intputData = m_din
for more details see: \SamplesTutorial\
CallBackFunctions\InputCallBack
Function
m_din[]
–
get specific digital input value (internal digital input)
Call Format
m_din[dinput_num]
Parameters
dinput_num=0…7
Example
int input1data
intput1 = m_din[1]
for more details see: \SamplesTutorial\
CallBackFunctions\InputCallBack
Maestro
Software Manual
General and Motion Instructions
MAN-MASSW (Ver. Q)
4-40