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 - About Stepper / Pulser contacts

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

About Stepper / Pulser contacts (by José)
Does any one know anything about Pulser / Stepper contacts
si that I can translate their transfer functions in C ?
Sun Jun 6 2021, 06:51:26
(no subject) (by Caluber paulino)

Copy it in (C) that LDMicro does and you will see it in (C).
Look in the manual there is an explanation of how to do it.

http://en.wikipedia.org/wiki/Bitwise_operation

> DESPLAZAMIENTO ARITMETICO: SHL, SHR.
https://en.wikipedia.org/wiki/Arithmetic_shift
[TCY 500 ms]-
> DESPLAZAMIENTO LOGICO A LA DERECHA SR0.
https://en.wikipedia.org/wiki/Logical_shift
500 ms]-
El cambio lógico a la izquierda es equivalente a SHL cambio aritmético a la izquierda.


> DESPLAZAMIENTO CIRCULAR: ROL, ROR.
https://en.wikipedia.org/wiki/Circular_shift
inea. Puede agregar más niveles seleccionando inserte Rung Before / After en el menú Logic. Podrías obtener el mismo efecto colocando muchos subcircuitos complicados en paralelo en un linea, pero es más claro utilizar múltiples escalones.
Mon Jun 7 2021, 08:54:19
(no subject) (by José)
Hi Paulino

Thanks for your answer but unfortunately there's nothing in the help about stepper / pulser...

I have already had a look at the C code generated by ldmicro for those contacts but it's not clear at all !

BR
José
Tue Jun 8 2021, 01:39:11
(no subject) (by calubert paulino)
(by José) look at this I think I can give you an explanation of how to do it

(por José) mirate esto creo que te puede dar una explicación de como hacerlo

https://github.com/LDmicro/LDmicro/wiki/PULSER
Wed Jun 9 2021, 07:48:52, download attachment PULSER_PIC16F887.ZIP
(no subject) (by calubert paulino)
I enclose a test of how to do the steps and I put an analogous entry, so that you vary the steps and you will measure ..
NOTE: Depending on which version = does not work, I did the example with the latest version.

Te adjunto una prueba de como hacer los pasos y te puse una entrada análoga, para que varies los pasos ya mediras..
Wed Jun 9 2021, 08:23:53, download attachment Peueba pasos.ld
(no subject) (by José)
Thank you dear Paulino ; your link is fine !
I didn't answer before because I was off-line.
I'll test a Pulser within a few days.

BR
José
Mon Jun 14 2021, 18:21:18
(no subject) (by José)
Paulino:

Do you know a link explaining as well STEPPER instruction ?
(For stepper motors I suppose...)

José
Tue Jun 22 2021, 05:16:31
(no subject) (by Paulino calubert)
Tue Jun 22 2021, 06:00:56
(no subject) (by Paulino calubert)
para José.

te hice una prueba, si ves te puse una analogica para mover el contador y si ves el contador veras que va disminuyendo hasta llegar a 0 el CstepDec
Tue Jun 22 2021, 07:25:25, download attachment STEP.ld
(no subject) (by José)
OK

Thanks Paulino.

I know how stepper motors work, but I have to understand how it's implemented in ldmicro.
I'll have a look at you examples !

José
Wed Jun 23 2021, 03:40:59
(no subject) (by Paulino calubert)
Ok ya dirás
Wed Jun 23 2021, 04:46:01
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):