- Configuring LinuxCNC
- Advanced Configuration
- ClassicLadder
- Classicladder sending M code back to Linucnc Possible ?
Classicladder sending M code back to Linucnc Possible ?
- my1987toyota
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 815
- Thank you received: 331
15 Aug 2021 11:52 #217803
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.
15 Aug 2021 16:35 #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.
16 Aug 2021 17:03 #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
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 815
- Thank you received: 331
20 Aug 2021 11:32 #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
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 815
- Thank you received: 331
04 Sep 2021 14:08 #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.
04 Sep 2021 15:46 #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.
- my1987toyota
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 815
- Thank you received: 331
04 Sep 2021 22:30 #219630
by my1987toyota
I haven't look on terminal to see what it comes up with . Mainly because I don't know
what I am doing in that regard .
Replied by my1987toyota on topic Classicladder sending M code back to Linucnc Possible ?
The only warning I have seen is in linuxcnc " unknown M code used ". Though I will sayAre you getting any error messages in the terminal?
I haven't look on terminal to see what it comes up with . Mainly because I don't know
what I am doing in that regard .
Please Log in or Create an account to join the conversation.
- my1987toyota
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 815
- Thank you received: 331
04 Sep 2021 22:49 #219631
by my1987toyota
Replied by my1987toyota on topic Classicladder sending M code back to Linucnc Possible ?
Attachments:
Please Log in or Create an account to join the conversation.
- my1987toyota
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 815
- Thank you received: 331
04 Sep 2021 23:45 #219639
by my1987toyota
Replied by my1987toyota on topic Classicladder sending M code back to Linucnc Possible ?
So from one of my very recently acquired books (Linux Command Line and Shell Scripting Bible ) I went onto my
home system to see if it would show if the files are executable . I cd to the linuxcnc file , cd to nc_files , cd to M_codes file
then ls -l the M codes. So far ( on my home system at least ) they all read executable. I wonder if I will have to manually
set the M1## bash files on the system at work to executable.
home system to see if it would show if the files are executable . I cd to the linuxcnc file , cd to nc_files , cd to M_codes file
then ls -l the M codes. So far ( on my home system at least ) they all read executable. I wonder if I will have to manually
set the M1## bash files on the system at work to executable.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19304
- Thank you received: 6463
05 Sep 2021 00:51 #219644
by tommylight
Replied by tommylight on topic Classicladder sending M code back to Linucnc Possible ?
No need for terminal to set permissions, usually, all file explorers on Linux can do "right click>properties" and there should be a tab with permissions.
or
sudo chmod +x filename
Quote from somewhere on the net:
Linux is very user friendly, it is just very picky who his friends are !
or
sudo chmod +x filename
Quote from somewhere on the net:
Linux is very user friendly, it is just very picky who his friends are !
The following user(s) said Thank You: my1987toyota
Please Log in or Create an account to join the conversation.
- Configuring LinuxCNC
- Advanced Configuration
- ClassicLadder
- Classicladder sending M code back to Linucnc Possible ?
Time to create page: 0.125 seconds