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 - Different moving's according to time

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

Different moving's according to time (by John)
Hi again,

i have problem to solve and i need help.
This is a solar orbit tracker with stable stepping.

Start:

A xEastWest (-S11) limit switch NO contact change state to NC when a motor goes in right direction for 10 seconds stays idle and then moves again for 10 seconds more etc. when the time is between 6pm and 12 at noon. The 2nd limit switch -S12 now change its state and the motor keeps on going. After 12 o 'clock the motor must do the same loop for 5 seconds instead of 10 until the -S11 meets the West point and stops there until 10 am. Then the motor goes opposite (CCW). Now the -S11 change the previous state and the motor goes CCW until the -S12 meets the South point from the west and stops the motor until 6 pm.
After 6pm the motor goes CCW again until meets the East point and start this big loop again.
There is a manual override function in case of adjustment and a thermal protection as well.
Me problem is how to achieve the 2 states one for 10 and the other for 5 seconds.
In every subloop there are flags to show the functionality of the orbit.
The timings at 10am and 6pm it will be handled as different inputs.

TIA
Sat Aug 11 2018, 13:57:31, download attachment TEST-SOLAR2e.ld
photo of the functions (by John)
This is a sketch of the function at start.
TIA
Sat Aug 11 2018, 14:12:25, download attachment solar1.png
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):