User Manual

MCP Series
Brushed DC Motor Controllers
MCP Series User Manual
123
SIGNALMINACTION (32)
Variable array holds the action that will trigger if the minimum is reached for each signal.
Action triggered by Signal Minimum
Motor1 safestop 0x0001
Motor2 safestop 0x0100
Both Motors safestop 0x0101
Motor1 off 0x0002
Motor2 off 0x0200
Both Motors off 0x0202
Motor1 reverse 0x0004
Motor2 reverse 0x0400
Both Motors reverse 0x0404
Motor1 Forward Limit 0x0008
Motor2 Forward Limit 0x0800
Both Motors Forward Limit 0x0808
Motor1 Reverse Limit 0x0010
Motor2 Reverse Limit 0x1000
Both Motors Reverse Limit 0x1010
Motor1 load Loadhome value 0x0020
Motor2 load loadhome value 0x2000
Both Motors load loadhome 0x2020
Run Script 0x0040
Stop Script 0x4000
Reset Script 0x0080
Trigger ESTOP 0x8000
;initialize Signal P0 minimum action
SIGNALMINACTION(0) = 0x8000 ;trigger E-Stop if signal goes low
main
goto main
SIGNALMAXACTION (32)
Variable array holds the maximum action for each signal. See SIGNALMINACTION for actions list.
;initialize P0 maximum action
SIGNALMAXACTION(0) = 0x0040 ;run script if P0 goes high
main
goto main
SIGNALLOADHOME (32)
Variable array holds the loadhome value for each signal. This value is loaded to the encoder
position value when a Loadhome action occurs. This only applies to encremental encoder
signals.
main
puts 0,[“P0 Load Home Value:”,dec SIGNALLOADHOME(0),13]
pause 100
goto main