Arithmetic instructions
476
Part III FP Instructions
Time chart for increasing the output value:
Example values: iInitialValue = 3000, iTargetValue = 6000, iRiseTime = 1000
iOutputValue
iTargetValue
ilnitialValue
2750175010000
1000 ms
6000
3000
iRiseTime
ON
OFF
Data is initialized when the system
detects the trigger's rising edge.
bRun (Trigger)
Time (ms)
Time chart for decreasing the output value:
Example values: iInitialValue = 6000, iTargetValue = 3000, iRiseTime = 1000
1000 ms
2750175010000
3000
6000
iInitialValue
iTargetValue
RiseTime
ON
OFF
Data is initialized when the system
detects the trigger's rising edge.
Time (ms)
bRun (Trigger)
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).
LD
ST