Arithmetic instructions
Body
When the variable bRun is switched to TRUE, the function is carried out and iOutputValue
increases from 3000 (the initial value of iInitialValue) to 6000 (the initial value of iTargetValue) in
1000ms (according to the initial value of iRiseTime).
Time chart for increasing the output value:
Example values: iInitialValue = 3000, iTargetValue = 6000, iRiseTime = 1000
bRun (Trigger)
ON
OFF
iOutputValue
6000
iTargetValue
3000
ilnitialValue
0
Time chart for decreasing the output value:
Example values: iInitialValue = 6000, iTargetValue = 3000, iRiseTime = 1000
bRun (Trigger)
ON
OFF
iInitialValue
6000
iTargetValue
3000
0
LD
ST
476
Data is initialized when the system
detects the trigger's rising edge.
1000
1750
Data is initialized when the system
detects the trigger's rising edge.
1000
1750
iRiseTime
1000 ms
Time (ms)
2750
RiseTime
1000 ms
Time (ms)
2750