Unregistered
Guest
U
PLC programming – how is it different from linear
programming in languanges such as C, C++, Matlab and Java?
programming in languanges such as C, C++, Matlab and Java?
Lancie1 said:Rick,
I think you hit upon a significance difference between linear programming languages and PLC logic: namely, from a PC program language perspective, a PLC program has a built-in automatic INFINITE LOOP, where as in normal programming, great pains are taken to avoid infinite loops. An infinite loop in the PC world is considered a big no-no and a sign of poor technique. In a PLC, the infinite loop is necessary and in fact if the loop is broken it is usually because of a fault or error condition.
Lancie1 said:Rick,
I think you hit upon a significance difference between linear programming languages and PLC logic: namely, from a PC program language perspective, a PLC program has a built-in automatic INFINITE LOOP, where as in normal programming, great pains are taken to avoid infinite loops. An infinite loop in the PC world is considered a big no-no and a sign of poor technique. In a PLC, the infinite loop is necessary and in fact if the loop is broken it is usually because of a fault or error condition.