Data Sheet

Magnetic Guide Sensor Connection and Operation
70 Advanced Digital Motor Controller User Manual V1.8, August 28, 2017
Accessing Multiple Sensor Information Simultaneously
It is possible to have all magnetic sensors enabled at the same time by having their re-
spective pulse input set to MagSensor MultiPWM
When more than one pulse input is configured that way, the sensor data is accessible
using the ?MGD, ?MGT, ?MGM and ?MGY queries as follows, where x is the pulse input
number (1, 2, 3 etc.).
Reading Tape Detect
?MGD x or GetValue(_MGD, x)
Returns the Tape Detect state of Sensor at Pulse input x
Example:
?MGD 2 : Returns the Tape Detect state of Sensor 2
Reading Marker Detect
?MGM 2*(x-1)+1 or GetValue(_MGM, 2*(x-1)+1)
Returns the state of the Left Marker Detect state of Sensor at Pulse input x
?MGM 2*(x-1)+2 or GetValue(_MGM, 2*(x-1)+2)
Returns the state of the Right Marker Detect state of Sensor at Pulse input x
Examples:
?MGM 1 : Returns the Left Marker Detect state of Sensor at input 1
?MGM 2 : Returns the Right Marker Detect state of Sensor at input 1
?MGM 3 : Returns the Left Marker Detect state of Sensor at input 2
?MGM 4 : Returns the Right Marker Detect state of Sensor at input 2
Reading Track Positions
?MGT 3*(x-1)+1 or GetValue(_MGT, 3*(x-1)+1)
Returns the Left Track Position of Sensor at input x
?MGT 3*(x-1)+2 or GetValue(_MGT, 3*(x-1)+2)
Returns the Right Track Position of Sensor at input x