
Publication 2098-PM001E-EN-P — July 2002
2-48 Referencing the Motion Library
Analog Output Attributes
long AnalogOutputSetVoltage(long channel, float voltage);
Sets the voltage output value for the auxiliary analog channel
specified by the channel argument.
Valid channel arguments are:
• 1 = Auxiliary analog output channel 1
• 2 = Auxiliary analog output channel 2
Returns 0 if successful, or -1 on an error.
Digital Input Status
long InputGetAll(void);
Returns the state of all digital inputs.
The return value is bitmapped as follows:
Bit Input Description
0 – 15 IN1 – IN16 Digital inputs 1-16
16 IX Auxiliary encoder index
17 BX Auxiliary encoder channel B
18 AX Auxiliary encoder channel A
19 – 21 S1 – S3 Motor hall inputs 1-3
22 IM Motor encoder index
23 BM Motor encoder channel B
24 AM Motor encoder channel A
25 TS Motor thermostat input
26 NEG_OT Motor negative overtravel input
27 POS_OT Motor positive overtravel input
28 – 31 — Reserved
Comentarios a estos manuales