- Posts: 27
- Thank you received: 0
Reading value of pin in g code
9 years 7 months ago #90212
by Radek
Replied by Radek on topic Reading value of pin in g code
I don't get any error message but it doesn't work.. There is problem about if
Please Log in to join the conversation.
9 years 7 months ago #90214
by andypugh
Replied by andypugh on topic Reading value of pin in g code
Do you actually have digital inputs 11, 12 and 13?
Please Log in to join the conversation.
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 to join the conversation.
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
Please Log in to join the conversation.
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 to join the conversation.
9 years 7 months ago #90351
by Radek
Replied by Radek on topic Reading value of pin in g code
I see that they're chaning state on classicladder and glade (I connected led to them)
Attachment not found
Please Log in to join the conversation.
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 to join the conversation.
9 years 7 months ago #90359
by Radek
Replied by Radek on topic Reading value of pin in g code
Attachment not found
Please Log in to join the conversation.
9 years 7 months ago #90361
by andypugh
Replied by andypugh on topic Reading value of pin in g code
How many do you have?
Maybe
And so on.
Maybe
Code:
(DEBUG, On Line 17: #5399)
And so on.
Please Log in to join the conversation.
9 years 7 months ago #90362
by Radek
Replied by Radek on topic Reading value of pin in g code
There aren't any changes... still programme stops at 4 line. I picked 3 times (DEBUG, #5399) before if.
Attachment not found
Please Log in to join the conversation.
Time to create page: 0.140 seconds
