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

Table 4.1 Available Sensors

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

SNSR (Sensor1)
SNSR (1) <Argument: (1) Sensor1 >

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

Table 4.2 Available Sensors

Toolkit

Senor

Returned Value

MTT2D

Event

Time when a sensor is on.

MTT3D

Event

Time when a sensor is on.

Example

EVTIME (Sensor1)
EVTIME (1) <Argument: (1) Sensor1 >

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

Table 4.3 Available Sensors

Toolkit

Senor

Returned Value

Professional

Laser

On = 1, Off = 0

PointInBox

On = 1, Off = 0

Example

SENSOR (Sensor1)
SENSOR (1) <Argument: (1) Sensor1 >

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

Table 4.4 Available Sensors

Toolkit

Sensor

Return Value

Professional

Laser

Time when a sensor is on.

PointInBox

Time when a sensor is on.

Example

SENSORONTIME (Sensor1)
SENSORONTIME (1) <Argument: (1) Sensor1 >

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

Table 4.5 Available Sensors

Toolkit

Sensor

Return Value

Professional

Laser

Time when a sensor is off.

PointInBox

Time when a sensor is off.

Example

SENSOROFFTIME (Sensor1)
SENSOROFFTIME (1) <Argument: (1) Sensor1 >

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

Table 4.6 Available Sensors

Toolkit

Sensor

Return Value

Professional

Laser

Distance from a sensor to a target geometry.

Example

SENSORDISTANCE (Sensor1)
SENSORDISTANCE (1) <Argument: (1) Sensor1 >

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

The components subject to the returned output such as displacement, velocity, or acceleration
  • One component can be inserted in line with 12 numbered outputs for the detection location

  • 1:DM,2:DX,3:DY,4:DZ,5:VM,6:VX,7:VY,8:VZ,9:ACCM,10:ACCX,11:ACCY,12:ACCZ

RMarker

The name or argument number of the standard marker for the direction to be measured

Table 4.7 Available Sensors

Product

Sensor

Return Value

Professional

Laser

The states of point that are detected by the sensor.

Example

SENSORDETECTEDPOINT(Sensor1, 1, Body1.Marker1)
SENSORDETECTEDPOINT(1,1,2) <Argument: (1) Sensor1 (2) Body1.Marker1 >

Note

The Scope Expression created from SENSORDETECTEDPOINT expression function does not give the result because it cannot be calculated in GUI.