Module error on actuator command

afm

Member
Join Date
Aug 2023
Location
Tennessee
Posts
88
Hi all,

I have what is likely a simple problem. My program says when 2 buttons (we can call them buttons A and B) are held for 1.5 seconds, trigger a AutoRetract variable for my actuator (this is latched, the retraction continues until the movement is complete, you do not need to continue pressing the buttons). And during this auto retract, if you press (single press, not hold) button B, it will stop the movement.

This has been working well in general, however, if the user holds down A and B and happens to release button B slightly after A, the stop command is triggered. I want to only recognize the stop command after the AutoRetract has been running for 1 second. I made 2 small modifications to the code, but now when I test it, the AutoRetract starts as expected, but if button B is pressed to trigger the stop, I get faults from my module for "under voltage errors" which stops the actuators and requires a power cycle to my machine to clear out. I attached some images of the code.

NTWK 62 has been untouched, this is the command to trigger AutoRetract.
NTWK 64 and 65 was added to only allow the SeatStop command to work when 1s timer is full when the SitToStandSwitchDown (button B) is pressed.
Last image shows the variable that previous used to be button B that I replaced with the NTWK65 variable.

I know it is probably something simple that I am missing and creating confusing logic with, but help would be appreciated. Thanks!

ntwk62.PNG ntwk64.PNG seatstop.PNG
 
The original problem was because your logic did an immediate stop when seeing B and not A. Instead of the timer, I would just have issued the stop on a rising edge of B. That way releasing A before B won't initiate the stop until the next instance of B being pushed.
 

Similar Topics

Hi, Maybe someone has an idea or has experience something similar. I have few safety IO output modules (1734-OB8S) installed behind the...
Replies
13
Views
803
Hi I have hms-en2mb-r module . When i configure and go online the module is faulted with error code 16#0009 and addition code 16#0001. Is there...
Replies
2
Views
734
Hello, I am a beginner at Mitsubushi PLC programming. I am using a Q02CPU with some modules attached. I Am trying to move a servo through QD75MH1...
Replies
9
Views
379
Hi everyone, I have this issue with a PowerFlex 755 that it mount a Safe Speed Monitor option module. Frequently, while running, appear the error...
Replies
2
Views
2,349
Hi I have AX522 IO module and when I power it on with 24VDC both CH-ERR2 & CH-ERR4 lights are on. I read in manual this is because of internal...
Replies
2
Views
2,197
Back
Top Bottom