Timer and one shot

More
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.

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

More
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

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

More
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

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

More
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

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

More
04 May 2014 18:14 #46576 by cncbasher

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

More
06 May 2014 05:07 #46644 by andypugh
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.249 seconds
Powered by Kunena Forum