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 - Speediing up hex-code

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

Speediing up hex-code (by Christian Haider)
Dear Sirs!

Thanks for the nice and helpful ldmicro!

As I understand there is a way to get the asm – code from a hex-file made by ldmicro.
So if I take this asm-code and use Mplab to make a hex-file out of this asm-code again, will this new hex-file be running faster than the one from ldmicro?
I do have problems with the speed of my programm (quad encoder).

Thanks for the answer in advance

Best regards from Austria!

Chris
Tue Jul 25 2017, 01:10:36, download attachment Saegesteuerung mit LDMICRO.ld
(no subject) (by MGP)
It would not have an effect, you can not use a machine-driven relative encoder with ldmicro due to the cycle time.
You have a cycling time of 8ms, which means you can only read max 125Hz and for safty 100Hz.
Most encoders have 1024imp / rot resolution that gives 1024x4 = 4096 high / low flanks per revolution.
You can calculate how fast that encoder can run.

The software is more suitable for using a rotary potentiometer or a homemade relative encoder of eg. 10 imp / rot, that should be calculated.
Real plc's also use special highspeed counter cards that work on interrupts.
Tue Jul 25 2017, 02:45:01
(no subject) (by Christian Haider)
Thanks for the hints MGP!

Exactly this is the problem but would not be at a cycle-time of about 1mS! Max. 500 imp./sec.
I am still hoping to find a way to reach that by letting it compile by Mplab or mayby another way. Using the last version (4.2.3) can make a hex-code and from that one a PIC - asm - file.

A hardwarecounter is an option but the last one!
Tue Jul 25 2017, 05:35:57
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):