Reading value of pin in g code

More
9 years 7 months ago #90212 by Radek
I don't get any error message but it doesn't work.. There is problem about if

Please Log in to join the conversation.

More
9 years 7 months ago #90214 by andypugh
Do you actually have digital inputs 11, 12 and 13?

Please Log in to join the conversation.

More
9 years 7 months ago #90215 by andypugh
Also, you do need to connect the digital inputs in HAL.

Please Log in to join the conversation.

More
9 years 7 months ago #90341 by Radek
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

Please Log in to join the conversation.

More
9 years 7 months ago #90348 by andypugh
Have you monitored them with Halmeter to check that they are changing state?

Please Log in to join the conversation.

More
9 years 7 months ago #90351 by Radek
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.

More
9 years 7 months ago #90356 by andypugh
The next thing I would try would be
Code:
(DEBUG, #5399)
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.

Please Log in to join the conversation.

More
9 years 7 months ago #90359 by Radek

Attachment not found

Please Log in to join the conversation.

More
9 years 7 months ago #90361 by andypugh
How many do you have?

Maybe
Code:
(DEBUG, On Line 17: #5399)

And so on.

Please Log in to join the conversation.

More
9 years 7 months ago #90362 by Radek
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
Powered by Kunena Forum