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 - ldmicro vs plc

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

ldmicro vs plc (by Mohaned kamal)
first of all ,ldmicro is great job,is acceptable for micro plc.
but let us compared with actual PLC.

hardware:-
**the micro-controller is different from plc in scanning of input and update of output.

//may be this is not serious issues for control process with large time lagging.



software:-
**is not support directly downloading like actual plc software
either serial port or isp
**is not support monitoring and this require communication between the software and MCU unit via serial port
i am looking forward for this future
Thu Dec 9 2010, 08:24:31
(no subject) (by Jonathan Westhues)
I'm not sure what you mean about the "large time lagging". Depending on the complexity of the program and the crystal frequency, cycle times of 100 us or less may be practical. This is faster than most commercial PLCs.

See the archives of this forum for discussion of the other two points.
Thu Dec 9 2010, 10:39:08
(no subject) (by Max)
Jonathan is right, Ldmicro is much faster than industrial PLC in many cases, all my program using Ldmicro are running at less than 10ms, I have one running at 0.1ms scan time !

For the programming, simply install a boot loader in you MCU, and you are ready to program it on the fly any time you want via serial port (check out {tiny bootloader} for PIC)

For the monitoring you could use {bill redirect} and create your user interface to interact with your MCU (receive and send variable, input state, output state with a nice GUI that you create yourself, even more you could use a touch screen to get an extremely functional and professional setup

Good luck !

MAX
Fri Dec 10 2010, 09:44:37
(no subject) (by Mohaned kamal)
thanks Mr Jonathan Westhues and Mr Max for replaying
Mr max can explain more about monitoring using bill redirect software
thanks a lot
Sun Dec 12 2010, 02:41:58
(no subject) (by Max)
Hi,

First you will need a rock solid serial connection between your mcu and your PC with a baud rate perfectly in sync with your oscillator... because you don't want to drop any character.

See the following basic example to send and receive serial command for monitoring. In this example,

RX
1 = Start Motor
0 = Stop Motor

TX
A = Motor running
B = Motor not running
Y = Low level
Z = Normal level

On the Bill Redirect side

Build a virtual keyboard with for example 4 buttons

Button #1 = Start = Send {1} via serial
Button #2 = Stop = Send {0} via serial
Button #3 = Motor Running = Change colour {A=Green, B=Gray}
Button #4 = Low Level Alarm = Change colour {Y=Red, Z=Green}

-If you push button #1 (START) on your PC
-Bill redirect will send {1} (ASCII DEC 49) to your MCU
-The MCU receive it and activate {YMOTOR} Output
-The MCU send character {A} (ASCII DEC 65) to your PC
-Bill redirect receive it and change the colour of button #3 from Gray to Green

You could also draw your MCU and change the colour of the IO pins to indicate witch one is activated or not

Hope this help

MAX
Sun Dec 12 2010, 14:46:40, download attachment Basic monitoring exemple.ld
(no subject) (by Mohaned kamal)
a lot thanks for MR max
Tue Dec 14 2010, 11:16:58
(no subject) (by Rajeev)
thank you very much MR. MAX.
Can you help me more in monitoring with mcu.

Thanks in advance.
Wed Jul 30 2014, 05:47: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):