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
(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.
(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
(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
(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