FC 18 counts parts transported in AUTO mode and displays the actual quantity on a BCD display. The setpoint quantity can be set using a BCD thumbwheel button. When the actual quantity reaches the setpoint, a red LED signals at the conveyor end. The actual quantity is reset by a switch or when the LED is acknowledged. As long as the LED exists, no other transport function can start due to locking.
The task is to declare a local INT variable called Setpoint for intermediate storage of the setpoint quantity converted from BCD to INT in FC 18. Setpoint replaces the auxiliary memory marker previously used for this purpose. The functionality of FC 18 otherwise remains unchanged.
FC 18 counts parts transported in AUTO mode and displays the actual quantity on a BCD display. The setpoint quantity can be set using a BCD thumbwheel button. When the actual quantity reaches the setpoint, a red LED signals at the conveyor end. The actual quantity is reset by a switch or when the LED is acknowledged. As long as the LED exists, no other transport function can start due to locking.
The task is to declare a local INT variable called Setpoint for intermediate storage of the setpoint quantity converted from BCD to INT in FC 18. Setpoint replaces the auxiliary memory marker previously used for this purpose. The functionality of FC 18 otherwise remains unchanged.
FC 18 counts parts transported in AUTO mode and displays the actual quantity on a BCD display. The setpoint quantity can be set using a BCD thumbwheel button. When the actual quantity reaches the setpoint, a red LED signals at the conveyor end. The actual quantity is reset by a switch or when the LED is acknowledged. As long as the LED exists, no other transport function can start due to locking.
The task is to declare a local INT variable called Setpoint for intermediate storage of the setpoint quantity converted from BCD to INT in FC 18. Setpoint replaces the auxiliary memory marker previously used for this purpose. The functionality of FC 18 otherwise remains unchanged.
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.