9/3/2020 3:01 AM | |
Joined: 1/12/2018 Last visit: 12/3/2023 Posts: 11 Rating:
|
I've attached a zip with both the PTE and PTP files for the 808D Advanced Mill. As I said, it's pretty much a bone stock configuration. I figured I'd start with trying to get the light set to be on at system startup as once I've got that figured out, I should (hopefully) be able to figure out the rest. My theory was that I just had to add a Set for the pin (Q0.0), the DB address (DB1100.DBX1.1), and the M213.0 (not really sure what that is and just referenced it from the AUX_LAMP program block). I don't know what I'm doing with this whole programming with Lego's ladder logic stuff. so your help is greatly appreciated! AttachmentXH7132.zip (43 Downloads) |
9/3/2020 2:02 PM | |
Joined: 5/24/2016 Last visit: 8/26/2024 Posts: 347 Rating:
|
Hello. So I had a look. And you kinda over did it :) I made a new Sub routine called User_Change (SBR 0) and called it at the end of OB1. So I just made a new line where I combined the DB1000.DBX1.1 (The MCP Input Key for Light ON) And SM0.1 (A Marker that is only high during the first Scan of the PLC) I made these to a Marker M50.0 (Common Toggle Light Command) Then I changed the input in the AUX_MCP subroutine for the AUX_LAMP call to M50.0 The reason for this is you are not allowed to set an output in more places, so in the AUX_LAMP the control of the machine lamp is handled and also the output, and I basically just kept it there but made a common input command. This also makes it possible for you to turn the lights off again if needed I hope this helps. Best Regards Riddersholm AttachmentXH7132w4thAxisEnabledModded_V2.zip (41 Downloads) |
Follow us on