You are on page 1of 1

FC 18 Up Till Now: The parts transported in AUTO mode are counted (by addition in the variable

"DB_Parts".ACTUAL_quantity), as soon as they reach the Conveyor End or


have passed through the light barrier.
The number of transported parts (ACTUAL quantity) is displayed on the BCD
digital display.
You can set the SETPOINT quantity, of how many parts are to be
transported, using the BCD thumbwheel button. When the given SETPOINT
quantity is reached, it is displayed on "L_ACTUAL=SETPOINT" (red LED
Q 20.4 / Q 8.4) at the Conveyor End.
The number of transported parts (variable "DB_Parts".ACTUAL_Quantity)
is reset through the momentary contact switch at the Conveyor End when
the system is switched off (Q 8.1 / 4.1 = 0 ) or when the message
"L_ACTUAL=SETPOINT" (red LED) is acknowledged.
As long as the message "L_ACTUAL=SETPOINT" (red LED) exists, no
other transport function can be started (lock-out in FC 16).
Task: The functionality programmed in FC 18 is to remain unchanged. However, use
the local, temporary variable Setpoint for the intermediate storage of the
SETPOINT quantity converted from BCD to INT.
What To Do: In FC 18, declare the temporary variable Setpoint as an INT type.
Replace the auxiliary memory marker used for intermediate storage with the
newly declared Setpoint variable.
Download and monitor the program.

You might also like