read write TIMERS variables
10 Jun 2021 10:32 #211684
by nkp
read write TIMERS variables was created by nkp
Attachments:
Please Log in or Create an account to join the conversation.
10 Jun 2021 15:17 #211706
by BigJohnT
Replied by BigJohnT on topic read write TIMERS variables
Quite likely a mistake in the documents. The timer value appears to be read only.
JT
JT
Please Log in or Create an account to join the conversation.
10 Jun 2021 17:55 - 10 Jun 2021 17:59 #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 ?
==================
and how can I reset the timer TOF ?
Last edit: 10 Jun 2021 17:59 by nkp.
Please Log in or Create an account to join the conversation.
11 Jun 2021 00:11 - 11 Jun 2021 00:46 #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
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
Last edit: 11 Jun 2021 00:46 by cmorley.
Please Log in or Create an account to join the conversation.
11 Jun 2021 06:31 #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 )
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 )
Please Log in or Create an account to join the conversation.
12 Jun 2021 00:57 #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.
open the b variable would reset the timer.
Please Log in or Create an account to join the conversation.
12 Jun 2021 03:07 - 12 Jun 2021 03:11 #211847
by nkp
Replied by nkp on topic read write TIMERS variables
Last edit: 12 Jun 2021 03:11 by nkp.
Please Log in or Create an account to join the conversation.
14 Jun 2021 10:19 #212015
by Becksvill
Replied by Becksvill on topic read write TIMERS variables
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
reply here if you want to see it and I will dig out a photo
Please Log in or Create an account to join the conversation.
16 Jun 2021 13:17 - 16 Jun 2021 19:37 #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.
as %TMn.R in sourse CL.
Last edit: 16 Jun 2021 19:37 by nkp.
Please Log in or Create an account to join the conversation.
17 Jun 2021 00:01 #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.
It's a one word change in vars_name_list.c - if you want to try it.
Please Log in or Create an account to join the conversation.
Time to create page: 0.212 seconds