ElmoMC Multi-Axis Motion Controller-Maestro User Manual
Page 60
Function
m_dout
– s
et all Maestro digital outputs (internal digital output)
Call Format
m_dout
Parameters
None
Example
int outputData
outputData = 255
m_dout = outputData
for more details see: \SamplesTutorial\
CallBackFunctions\InputCallBack
Function
m_dout[]
– s
et specific digital output (internal digital output)
Call Format
m_dout[output_num]
Parameters
output_num=0..7
Example
m_dout[2]=1
for more details see: \SamplesTutorial\ CallBackFunctions\
InputCallBack
Function
m_ain[]
–
get specific analog input (internal analog input)
Call Format
m_ain[ainput_num]
Parameters
ainput_num=0…3
Example
int input1data
intput1 = m_ain[1]
for more details see ..\SamplesTutorial\MaestroAnalogInput
Function
m_ain[].offset
–
set offset for specific analog input (internal analog input)
Call Format
m_ain[ainput_num].offset
Parameters
ainput_num=0…3
Example
int input1data
m_ain[1].offset = 10
for more details see: \SamplesTutorial\MaestroAnalogInput
Function
m_din.polarity, m_din.plr – used to define polarity of Maestro digital
input
Call Format
variable = m_din.polarity
- get polarity value
m_din.polarity = expression - set polarity value
Limitation
0 – 0xFF
Note: all of the polarity value bits defines the polarity for the
corresponding digital input channel: polarity 0x01 – for m_din[0]
(channel 0), polarity 0x02 – for m_din[1] (channel 1), polarity 0x04 – for
m_din[2] (channel 2), ect. For all 8 digital input channels the polarity
value is – 0xFF (binary value: 1111 1111).
Example
m_din.plr = 0xFF
for more details see: \SamplesTutorial\
CallBackFunctions\InputCallBack
Maestro
Software Manual
General and Motion Instructions
MAN-MASSW (Ver. Q)
4-41