Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - SETTING TIMER BY MOVE COMMAND

(you are viewing a thread; or go back to list of threads)

SETTING TIMER BY MOVE COMMAND (by Dinesh Kalola)
I want to set time of timer by move command. how can I do. please help me.
Mon Aug 8 2016, 22:01:22
(no subject) (by Ihor Nehrutsa)
to Dinesh Kalola:
Please attach your LD file with comments where you want to set a timer.
Tue Aug 9 2016, 00:14:04
SETTING TIMER BY MOVE COMMAND (by DanielH)
Dear Dinesh Kalola:

Attached timer_variable_parameter.ld example: how to set the parameter of a pseudo-timer, cycle time based, using MOV instruction.

Of course, the value that MOV instruction moves into Parameter must be the result of previous (analog, math) operations.

In this example, MCU cycle time is 10 ms., then timer (count) can reach 5,42 minutes; and MOV only moves a fixed value in first scan cycle...

Using "heartbeat" (see http://cq.cx/ladder-forum.pl?action=viewthread&parent=5272 ) can reach double lap; using other tricks, can reach even more time...

Best regards,
DanielH
Sat Aug 20 2016, 12:55:18, download attachment timer_by_cycle.ld
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):