Reading value of pin in g code
- Radek
- Offline
- Junior Member
-
Less
More
- Posts: 27
- Thank you received: 0
24 Mar 2017 14:26 - 24 Mar 2017 14:27 #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
Last edit: 24 Mar 2017 14:27 by Radek.
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
Less
More
- Posts: 23279
- Thank you received: 4933
24 Mar 2017 14:48 #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 or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
Less
More
- Posts: 23279
- Thank you received: 4933
24 Mar 2017 14:49 #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
27 Mar 2017 10:21 - 27 Mar 2017 10:27 #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: 27 Mar 2017 10:27 by Radek.
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
Less
More
- Posts: 23279
- Thank you received: 4933
27 Mar 2017 11:47 #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
27 Mar 2017 11:55 #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: 23279
- Thank you received: 4933
27 Mar 2017 12:22 #90356
by andypugh
Replied by andypugh on topic Reading value of pin in g code
The next thing I would try would beIn 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.
(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
27 Mar 2017 12:45 #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.
- andypugh
-
- Offline
- Moderator
-
Less
More
- Posts: 23279
- Thank you received: 4933
27 Mar 2017 12:58 #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
(DEBUG, On Line 17: #5399)
And so on.
Please Log in or Create an account to join the conversation.
- Radek
- Offline
- Junior Member
-
Less
More
- Posts: 27
- Thank you received: 0
27 Mar 2017 13:05 #90362
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: 1.059 seconds