9/17/2022 10:32 AM | |
Joined: 8/30/2022 Last visit: 6/16/2023 Posts: 4 Rating: (0) |
Hi everyone. I have a big problem with Siemens FB functions. I wrote a simple program to turn on and off a motor that I have 2 start and stop inputs and an output number for the motor. Use a flip-flop to set and reset the output by the inputs. will be The problem here is when the motor output is on and at the same time the PLC is turned off and the power is turned on again, it is turned on without a command from the operator, and this problem is due to the permanent memory of the FB outputs. My question is that how can i solved this problem when plc turn on again every things reset and function wait for start input for turn on motor.In addition, I have variables inside the function that must be of the retain type, so I cannot select the volatile data block. ------------------------------------------------------------------------------------------ |
Last edited by: Jen_Moderator at: 09/19/2022 04:45:03New subject after splitting |
|
11/8/2022 9:32 PM | |
Joined: 5/20/2022 Last visit: 12/16/2023 Posts: 5 Rating: (0) |
use OB100 to initialize variables or |
Last edited by: Rmp14 at: 11/08/2022 21:32:33 |
|
Follow us on