- Posts: 19899
- Thank you received: 4655
Reading value of pin in g code
- andypugh
- Offline
- Moderator
-
Less
More
9 years 7 months ago #90215
by andypugh
Replied by andypugh on topic Reading value of pin in g code
Also, you do need to connect the digital inputs in HAL.
Please Log in or Create an account to join the conversation.
- Radek
- Offline
- Junior Member
-
Less
More
- Posts: 27
- Thank you received: 0
9 years 7 months ago - 9 years 7 months ago #90341
by Radek
Replied by Radek on topic Reading value of pin in g code
I have connected digital outputs 11, 12 and 13
net Q11 motion.digital-in-11 <= classicladder.0.out-11
net Q12 motion.digital-in-12 <= classicladder.0.out-12
net Q13 motion.digital-in-13 <= classicladder.0.out-13
net Q11 motion.digital-in-11 <= classicladder.0.out-11
net Q12 motion.digital-in-12 <= classicladder.0.out-12
net Q13 motion.digital-in-13 <= classicladder.0.out-13
Last edit: 9 years 7 months ago by Radek.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
Less
More
- Posts: 19899
- Thank you received: 4655
9 years 7 months ago #90348
by andypugh
Replied by andypugh on topic Reading value of pin in g code
Have you monitored them with Halmeter to check that they are changing state?
Please Log in or Create an account to join the conversation.
- Radek
- Offline
- Junior Member
-
Less
More
- Posts: 27
- Thank you received: 0
9 years 7 months ago #90351
by Radek
Replied by Radek on topic Reading value of pin in g code
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
Less
More
- Posts: 19899
- Thank you received: 4655
9 years 7 months ago #90356
by andypugh
Replied by andypugh on topic Reading value of pin in g code
The next thing I would try would be
In the G-code to see what numbers are being read into #5399
You might want a G4 pause in the G-code to slow the loop down.
Code:
(DEBUG, #5399)
You might want a G4 pause in the G-code to slow the loop down.
Please Log in or Create an account to join the conversation.
- Radek
- Offline
- Junior Member
-
Less
More
- Posts: 27
- Thank you received: 0
9 years 7 months ago #90359
by Radek
Replied by Radek on topic Reading value of pin in g code
Please Log in or Create an account to join the conversation.
Time to create page: 0.556 seconds