read write TIMERS variables

More
5 years 4 months ago #211684 by nkp
%TMxxx.V variables really writables ?
How to use it?

Attachment not found


Attachment not found

Please Log in to join the conversation.

More
5 years 4 months ago #211706 by BigJohnT
Quite likely a mistake in the documents. The timer value appears to be read only.

JT

Please Log in to join the conversation.

More
5 years 4 months ago #211720 by nkp
Replied by nkp on topic read write TIMERS variables
there are several similar mistakes
==================
and how can I reset the timer TOF ?

Please Log in to join the conversation.

More
5 years 4 months ago #211755 by cmorley
Replied by cmorley on topic read write TIMERS variables
TM.0.V stands for the current value of the timer (can only be read)
TM0.P is the preset time and it can be written to.

all .P variables can be read/written
the counter's .V can be read/written to

all output pins can be read/written to.
B variables can be read and written too.

We could probably make the .V variable writable if there is a good use case.

Also, can you explain what you are trying to do?

Chris

Please Log in to join the conversation.

More
5 years 4 months ago #211778 by nkp
Replied by nkp on topic read write TIMERS variables
The task is this: it is required homing the spindle.(with resolver)
This must be done at the beginning of work.
(let's say together axis.2.homing)

With a timer (TM5) we give time for this procedure .

Q7 - enable resolver index-enable

Suppose that during the shoming_procedure,
the operator turned off the machine and turned it on again.
I would like the index to turn off.
But the timer continues to run.
So I would like to be able to forcibly reset it.

(this is one example.
this is often required in other cases as well )

Attachment not found

Please Log in to join the conversation.

More
5 years 4 months ago #211837 by cmorley
Replied by cmorley on topic read write TIMERS variables
could you put a NC B variable inline with I8?
open the b variable would reset the timer.

Please Log in to join the conversation.

More
5 years 4 months ago #211847 by nkp
Replied by nkp on topic read write TIMERS variables
after switching off the contact I0, the timer TOF is not reset
(he was created for this )

Attachment not found

Please Log in to join the conversation.

More
5 years 4 months ago #212015 by Becksvill
i use two timers. one old type timer feeding a new one. I will have to check exactly what is was but I think i got it working nice.

reply here if you want to see it and I will dig out a photo

Please Log in to join the conversation.

More
5 years 4 months ago #212198 by nkp
Replied by nkp on topic read write TIMERS variables
I'll try add VAR_TIMER_IEC_RESET
as %TMn.R in sourse CL.

Please Log in to join the conversation.

More
5 years 4 months ago #212239 by cmorley
Replied by cmorley on topic read write TIMERS variables
I did modify the timers to allow writing to the value, but it didn't seem to work as you wished.
It's a one word change in vars_name_list.c - if you want to try it.

Please Log in to join the conversation.

Time to create page: 0.110 seconds
Powered by Kunena Forum