Reading value of pin in g code

More
24 Mar 2017 14:26 - 24 Mar 2017 14:27 #90212 by Radek
I don't get any error message but it doesn't work.. There is problem about if
Last edit: 24 Mar 2017 14:27 by Radek.

Please Log in or Create an account to join the conversation.

More
24 Mar 2017 14:48 #90214 by andypugh
Do you actually have digital inputs 11, 12 and 13?

Please Log in or Create an account to join the conversation.

More
24 Mar 2017 14:49 #90215 by andypugh
Also, you do need to connect the digital inputs in HAL.

Please Log in or Create an account to join the conversation.

More
27 Mar 2017 10:21 - 27 Mar 2017 10:27 #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
Last edit: 27 Mar 2017 10:27 by Radek.

Please Log in or Create an account to join the conversation.

More
27 Mar 2017 11:47 #90348 by andypugh
Have you monitored them with Halmeter to check that they are changing state?

Please Log in or Create an account to join the conversation.

More
27 Mar 2017 11:55 #90351 by Radek
I see that they're chaning state on classicladder and glade (I connected led to them)
Attachments:

Please Log in or Create an account to join the conversation.

More
27 Mar 2017 12:22 #90356 by andypugh
The next thing I would try would be
(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 or Create an account to join the conversation.

More
27 Mar 2017 12:45 #90359 by Radek
Attachments:

Please Log in or Create an account to join the conversation.

More
27 Mar 2017 12:58 #90361 by andypugh
How many do you have?

Maybe
(DEBUG, On Line 17: #5399)

And so on.

Please Log in or Create an account to join the conversation.

More
27 Mar 2017 13:05 #90362 by Radek
There aren't any changes... still programme stops at 4 line. I picked 3 times (DEBUG, #5399) before if.
Attachments:

Please Log in or Create an account to join the conversation.

Time to create page: 0.131 seconds
Powered by Kunena Forum