Gary Campbell wrote:Once the estop (input)is triggered all outputs will toggle off
martyscncgarage wrote:When an Estop/fault occurs, all outputs are turned off, they are not active. Are you saying you have outputs active?
Neither the hardware, nor CNC12, automatically turns off PLC output requests in response to a Fault or E-stop. That is up to the PLC logic.
WINSTON's PLC logic includes the following:
Code: Select all
M94M95111 IS OUT44
M94M95112 IS OUT45
M94M95113 IS OUT46
M94M95114 IS OUT47
M94M95115 IS OUT48
;...
M94M95111_SV IS SV_M94_M95_111
M94M95112_SV IS SV_M94_M95_112
M94M95113_SV IS SV_M94_M95_113
M94M95114_SV IS SV_M94_M95_114
M94M95115_SV IS SV_M94_M95_115
;...
IF M94M95111_SV THEN (M94M95111)
IF M94M95112_SV THEN (M94M95112)
IF M94M95113_SV THEN (M94M95113)
IF M94M95114_SV THEN (M94M95114)
IF M94M95115_SV THEN (M94M95115)
So it simply turns on the output relays in response to the M94/M95 requests, with no dependency on any other conditions (such as Fault or E-stop).
Since PLC logic like that found here has no specific purpose, there is no way for the author to guess whether it is a good idea to turn the requests or the outputs on or off in response to E-stop or Fault. Personally, I prefer PLC logic that has a defined purpose.
However, failing that, the shortest path to making the existing PLC program automatically cancel those five requests -- and as a result also turn off those five outputs -- in case of Fault or E-stop would be to add the following lines:
Code: Select all
IF SV_STOP THEN RST M94M95111_SV,
RST M94M95112_SV,
RST M94M95113_SV,
RST M94M95114_SV,
RST M94M95115_SV