4.7.1.12. Sensor
4.7.1.12.1. SNSR
The SNSR function returns the values measured on sensors created using various toolkits.
Format
SNSR(Sensor entity)
Arguments definition
Sensor entity |
The name or argument number of the Sensor entity |
Toolkit |
Senor |
Returned Value |
Belt |
Speed |
Velocity of the belt segment |
Distance |
Distance from the center of the sensor to the belt segment |
|
Slip |
Difference in velocity between the pulley and the belt segment |
|
Tension |
Tension of the belt segment |
|
Displacement |
X-direction distance from the center of the sensor to the belt segment |
|
Chain |
Distance |
Distance from the center of the sensor to the chain link |
Speed |
Velocity of the chain link |
|
Tension |
Tension of the chain link |
|
MTT2D |
Speed |
Velocity of the sheet body |
Distance |
Distance from the center of the sensor to the sheet body |
|
Event |
On = 1, Off = 0 |
|
MTT3D |
Speed |
Velocity of the sheet body |
Distance |
Distance from the center of the sensor to the sheet body |
|
Event |
On = 1, Off = 0 |
|
R2R2D |
Speed |
Velocity of the beam assembly |
Distance |
Distance from the center of the sensor to the beam assembly |
|
Slip |
Difference in velocity between the roller and the beam assembly |
|
Tension |
Tension of the beam assembly |
|
Track_LM |
Displacement |
X-direction distance from the center of the sensor to the track link |
Track_HM |
Displacement |
X-direction distance from the center of the sensor to the track link |
Example
4.7.1.12.2. EVTIME
The EVTIME function returns the simulation time at the exact moment when a sensor entity, which is used in MTT2D or 3D, turns on. At all other times, it returns a value of 0.
Format
EVTIME(Sensor entity)
Arguments definition
Sensor entity |
The name or argument number of the Sensor entity |
Toolkit |
Senor |
Returned Value |
MTT2D |
Event |
Time when a sensor is on. |
MTT3D |
Event |
Time when a sensor is on. |
Example
4.7.1.12.3. SENSOR
The SENSOR function returns the status of a Laser or PointInBox sensor entity. The status of the sensor is returned as a value of either 0 or 1 (on=1, off=0).
Format
SENSOR(Sensor entity)
Arguments definition
Sensor entity |
The name or argument number of the Sensor entity |
Toolkit |
Senor |
Returned Value |
Professional |
Laser |
On = 1, Off = 0 |
PointInBox |
On = 1, Off = 0 |
Example
4.7.1.12.4. SENSORONTIME
The SENSORONTIME function returns the simulation time at the exact moment when a Laser or PointInBox sensor entity turns on. The initial value is 0. The time at the moment of changing from OFF to ON is returned. If On/Off is repeated, the most recent ON time is returned.
Format
SENSORONTIME(Sensor entity)
Arguments definition
Sensor entity |
The name or argument number of the Sensor entity |
Toolkit |
Sensor |
Return Value |
Professional |
Laser |
Time when a sensor is on. |
PointInBox |
Time when a sensor is on. |
Example
4.7.1.12.5. SENSOROFFTIME
The SENSOROFFTIME function returns the simulation time at the exact moment when a Laser or PointInBox sensor entity turns off. The initial value is 0. The time at the moment of changing from ON to OFF is returned. If On/Off is repeated, the most recent Off time is returned.
Format
SENSOROFFTIME(Sensor entity)
Arguments definition
Sensor entity |
The name or argument number of the Sensor entity |
Toolkit |
Sensor |
Return Value |
Professional |
Laser |
Time when a sensor is off. |
PointInBox |
Time when a sensor is off. |
Example
4.7.1.12.6. SENSORDISTANCE
The SENSORDISTANCE function returns the displacement values from the moment when the Laser sensor entity turns on until the sensor’s objective geometry. When the sensor is turned off, it returns a value of 0.
Format
SENSORDISTANCE(Sensor entity)
Arguments definition
Sensor entity |
The name or argument number of the Sensor entity |
Toolkit |
Sensor |
Return Value |
Professional |
Laser |
Distance from a sensor to a target geometry. |
Example
4.7.1.12.7. SENSORDETECTEDPOINT
The SENSORDETECTEDPOINT function returns the values for location, velocity, and acceleration in the objective area detected by the Laser sensor entity. When the detection status is off, it returns a value of 0.
Format
SENSORDETECTEDPOINT(Sensor entity, Component{, RMarker})
Arguments definition
Sensor entity |
The name or argument number of the sensor entity |
Component |
|
RMarker |
The name or argument number of the standard marker for the direction to be measured |
Product |
Sensor |
Return Value |
Professional |
Laser |
The states of point that are detected by the sensor. |
Example
Note
The Scope Expression created from SENSORDETECTEDPOINT expression function does not give the result because it cannot be calculated in GUI.