84
ifm
Programming Manual ecomatController/60-1 (CR711S) Operating System V2.5.0.n
2017-12-19
Programming
Use IO mapping
>
8.4.1
Access inputs
23499
The user can use the following global variables to access the operating modes and the values of the
inputs of the device.
Variable
Data
type
Access Description
Possible values
INnnnn_I.
ValueAnalogue
UINT
r
Value of the analogue input
0
...
65535
ValueDigital
BIT
r
Value of the digital input
FALSE
Input deactivated
TRUE
Input activated
ValueCount
UDINT
r
Value of the counting input
0
...
4294967295
ValueCountIncEnc
DINT
r
Value of the encoder input
-2147483648
...
2147483647
ValueLastCountWasUp
BIT
r
Counting direction upwards
FALSE
not active
TRUE
active
ValueLastCountWasDown BIT
r
Counting direction downwards
FALSE
not active
TRUE
active
ValueCycle
UDINT
r
cCcle time
0
...
4294967295
ValueFreq
REAL
r
Frequency
1.401e-45
...
3.403e+38
ValueTime
UDINT
r
Elapsed time since the last
edge evaluation
0
...
4294967295
ValueRatio
UINT
r
Pulse/pause ratio
0
...
65535
Error
BIT
r
Error
FALSE
no error
TRUE
Error
INnnnn_Q.
CountDirection
ENUM of
INT
r/w
Read/set counting direction
COUNT_OFF
Counting off
COUNT_UP
Counting upward
COUNT_DOWN
Zählen abwärts
Counting downward
BIT
w
Set preset value
FALSE
no action
TRUE
Set preset value
Legend:
r = read only
r/w = read and write
The valid value ranges and the type and number of the variables of the input depend on the
active operating mode of the input.
► Observe configuration of the inputs! →
Configure inputs and outputs
(