Timer and one shot
02 May 2014 02:52 #46525
by viski
Timer and one shot was created by viski
What i need to do is run timer when machine ON enabled and every 2 minutes output an short signal .
How to do that without any feedback.
This is to activate pnevmatic ventil ( open ) and bearings in spindle gets a oil under preasure and X ,Z table.
How to do that without any feedback.
This is to activate pnevmatic ventil ( open ) and bearings in spindle gets a oil under preasure and X ,Z table.
Please Log in or Create an account to join the conversation.
02 May 2014 07:56 #46528
by BigJohnT
Replied by BigJohnT on topic Timer and one shot
Classicladder would be my choice for that.
JT
JT
Please Log in or Create an account to join the conversation.
03 May 2014 02:04 #46544
by viski
Replied by viski on topic Timer and one shot
How to link time-seconds ( s32) to classicladder pin?
If i do this i get error msg: cycle-seconds ( s32) can not link to classicladder.0.in-01 ( bit ) !
net cycle-seconds => classicladder.0.in-01
If i do this i get error msg: cycle-seconds ( s32) can not link to classicladder.0.in-01 ( bit ) !
net cycle-seconds => classicladder.0.in-01
Please Log in or Create an account to join the conversation.
04 May 2014 05:36 #46564
by BigJohnT
Replied by BigJohnT on topic Timer and one shot
As you have discovered you can't connect a s32 pin to a bit pin. You can connect a s32 to a s32.
www.linuxcnc.org/docs/html/ladder/classi...sic_ladder_variables
On a tablet so must be brief.
JT
www.linuxcnc.org/docs/html/ladder/classi...sic_ladder_variables
On a tablet so must be brief.
JT
Please Log in or Create an account to join the conversation.
04 May 2014 18:14 #46576
by cncbasher
Replied by cncbasher on topic Timer and one shot
why not use timedelay ?
linuxcnc.org/docs/html/man/man9/timedelay.9.html
linuxcnc.org/docs/html/man/man9/timedelay.9.html
Please Log in or Create an account to join the conversation.
06 May 2014 05:07 #46644
by andypugh
You can do this with a stepgen in velocity mode. (I just tried it).
Are you currently using steppers? if you are then you just need to change the "loadrt stepgen ctrl_type=p,p,p to be p,p,p,v
A velocity of 0.0083 is a step every 2 minutes (at the default scale), you can choose the steplen to suit (probably a very big number, it is in nanoseconds, so 1 second is 1000000000 of them)
Replied by andypugh on topic Timer and one shot
What i need to do is run timer when machine ON enabled and every 2 minutes output an short signal.
You can do this with a stepgen in velocity mode. (I just tried it).
Are you currently using steppers? if you are then you just need to change the "loadrt stepgen ctrl_type=p,p,p to be p,p,p,v
A velocity of 0.0083 is a step every 2 minutes (at the default scale), you can choose the steplen to suit (probably a very big number, it is in nanoseconds, so 1 second is 1000000000 of them)
Please Log in or Create an account to join the conversation.
Time to create page: 0.064 seconds