User Manual

Table Of Contents
Commands Reference
232 Advanced Digital Motor Controller User Manual V2.0, July 8, 2019
Syntax Scripting: result = getvalue(_MGT, cc)
result = getvalue(_MGTRACK, cc)
Reply:
MGM = nn Type: Signed 16-bit
Where:
cc = (When only one sensor enabled)
1 : Left Track
2 : Right Track
3 : Active Track
cc = (When several sensors enabled)
1 : Left Track of sensor at pulse input 1
2 : Right Track of sensor at pulse input 1
3 : Active Track of sensor at pulse input 1
4 : Left Track of sensor at pulse input 2
5 : Right Track of sensor at pulse input 2
6 : Active Track of sensor at pulse input 2
...
((p-1)* 3)+1 : Left Track of sensor at pulse input p
((p-1)* 3)+2 : Right Track of sensor at pulse input p
((p-1)* 3)+3 : Active Track of sensor at pulse input p
nn = position in millimeters
MGY - Read Magsensor Gyroscope
Alias: MGYRO HexCode: 2D CANOpen id: 0x2121
Description:
When one or more MGS1600 Magnetic Guide Sensors are connected to the controller,
this query reports the state of the optional gyroscope inside the sensor. If only one sen-
sor is connected to any pulse input, no argument is needed for this query. If more than
one sensor is connected to pulse inputs and these inputs are enabled and configured in
Magsensor MultiPWM mode, then the argument following the query is used to select the
sensor
Syntax Serial: ?MGY [cc]
Argument: Channel]
Min: None Max: Total Number of Pulse Inputs
Syntax Scripting: result = getvalue(_MGY, cc)
result = getvalue(_MGYRO, cc)
Reply:
MGY=nn Type: Signed 16-bit Min: -32768 Max: 32767
Where:
cc = (When only one sensor enabled)
None or 1 : Current sensor
cc = (When several sensors enabled)