- Posts: 1004
- Thank you received: 449
Classicladder sending M code back to Linucnc Possible ?
- my1987toyota
- Offline
- Platinum Member
-
Less
More
5 years 2 months ago #217803
by my1987toyota
Classicladder sending M code back to Linucnc Possible ? was created by my1987toyota
I finally got a working PnP Ladder logic operational and I am now looking to inprove it. Currently I am using M64 P## to signal a
feeder to fire and M65 P## to reset for the next feeder command. My question is, Is it possible to have ClassicLadder issue
the M65 P## instead of me writting it into the Gcode ?
feeder to fire and M65 P## to reset for the next feeder command. My question is, Is it possible to have ClassicLadder issue
the M65 P## instead of me writting it into the Gcode ?
Please Log in or Create an account to join the conversation.
- aleksamc
- Offline
- Platinum Member
-
Less
More
- Posts: 569
- Thank you received: 67
5 years 2 months ago #217830
by aleksamc
Replied by aleksamc on topic Classicladder sending M code back to Linucnc Possible ?
Try to to connect PLC output to halui.mdi-command-xx
The following user(s) said Thank You: my1987toyota
Please Log in or Create an account to join the conversation.
- Aciera
- Offline
- Administrator
-
Less
More
- Posts: 4819
- Thank you received: 2177
5 years 2 months ago #217897
by Aciera
Replied by Aciera on topic Classicladder sending M code back to Linucnc Possible ?
Mind you, you cannot get classicladder to issue a gcode command while in AUTO mode (ie while running a gcode program). AUTO mode and MDI mode are mutually exclusive.
The following user(s) said Thank You: my1987toyota
Please Log in or Create an account to join the conversation.
- my1987toyota
- Offline
- Platinum Member
-
Less
More
- Posts: 1004
- Thank you received: 449
5 years 2 months ago #218232
by my1987toyota
M64 and M65 codes . Or continue refining my Ladder logic.
Replied by my1987toyota on topic Classicladder sending M code back to Linucnc Possible ?
I was wondering if that's the case . Looks like I will have to get to work on an M1## code. For now though I will have to continue usingMind you, you cannot get classicladder to issue a gcode command while in AUTO mode (ie while running a gcode program). AUTO mode and MDI mode are mutually exclusive.
M64 and M65 codes . Or continue refining my Ladder logic.
Please Log in or Create an account to join the conversation.
- my1987toyota
- Offline
- Platinum Member
-
Less
More
- Posts: 1004
- Thank you received: 449
5 years 1 month ago #219606
by my1987toyota
Replied by my1987toyota on topic Classicladder sending M code back to Linucnc Possible ?
Well I no longer need M64 and M65 to fire the feeders . It was actually easier to write individual M1## codes to perform the
same function except way better. I had to change the ladder logic a little bit to get the feeders to fire correctly but Ironicly
it shortened the ladder read time . The catch ( their's always a catch ) is I have to currently use 48 seperate M1## codes
for the current setup to work. The next step is to write a Bash scheme to utillize the P word so that I need only 1 M1##
to actuate the feeders. One BIG caveat, I am not a Bash , Python, or C programmer so it will take me a while to get up to
speed on making this next step work ,sigh . Problem number 2 for some dumb reason I cant get the LinuxPnP computer to
recognize the M1## codes . I got my computer at home to see them just fine . The exacutable box is
check marked on the properties tab for each M1## file. I'm not sure if it's a 6i26 / 7i76 problem or what.
That said I do know the codes work. (at home at least)
same function except way better. I had to change the ladder logic a little bit to get the feeders to fire correctly but Ironicly
it shortened the ladder read time . The catch ( their's always a catch ) is I have to currently use 48 seperate M1## codes
for the current setup to work. The next step is to write a Bash scheme to utillize the P word so that I need only 1 M1##
to actuate the feeders. One BIG caveat, I am not a Bash , Python, or C programmer so it will take me a while to get up to
speed on making this next step work ,sigh . Problem number 2 for some dumb reason I cant get the LinuxPnP computer to
recognize the M1## codes . I got my computer at home to see them just fine . The exacutable box is
check marked on the properties tab for each M1## file. I'm not sure if it's a 6i26 / 7i76 problem or what.
That said I do know the codes work. (at home at least)
Please Log in or Create an account to join the conversation.
- Aciera
- Offline
- Administrator
-
Less
More
- Posts: 4819
- Thank you received: 2177
5 years 1 month ago #219613
by Aciera
Replied by Aciera on topic Classicladder sending M code back to Linucnc Possible ?
Are you getting any error messages in the terminal?
Please Log in or Create an account to join the conversation.
Time to create page: 0.485 seconds