At each variable can be associated a mnemonic. It is then possible touse the mnemonic or variable completely transparently in programs. To associate the variable Switch to the input %I0, the variables RedLight and GreenLight to the outputs %Q0 and %Q1 respectively, it is possible to specify them during the variable declaration in the Ladder […]
Tag: Langage IL
Counter – IL
The IEC 61131 standard offers a definition of Counters. PLC3000 integrates up and down Counters. It is necessary to define a preselection value %Ci.PV, which can be set with an integer value. The current value of a counter is set to 0 when %Ci.R is activated. The current value of a counter is set to […]
Timer – IL
The IEC 61131 standart offers a definition of Timers. PLC3000 integrates only TON timers that can be set by defining the time base %Ti.TB, and the preset value %Ti.PV. The timer is triggered by activating the input %Ti.IN, and the output %Ti.Q goes to 1 when the current timer value reaches the preset value. The […]
Edge Generation – IL
PLC3000 does not include Rising and Falling Edge functions. However, they can easily be generated from the available memory bits Generation in IL Generate a Rising Edge on %I0 is done by considering a memory bit, e.g. %M1, such as <img width=”300″ height=”130″ src=”https://plc3000.com/wp-content/uploads/2021/05/FrontMontant-300×130.jpg” alt=”” loading=”lazy” srcset=”https://i1.wp.com/plc3000.com/wp-content/uploads/2021/05/FrontMontant.jpg?resize=300%2C130&ssl=1 300w, https://i1.wp.com/plc3000.com/wp-content/uploads/2021/05/FrontMontant.jpg?w=533&ssl=1 533w” sizes=”(max-width: 300px) 100vw, 300px” /> […]
Programming in IL
c. Programming Step/Step * START LD %M1 AND %I1 OR( %M0 ANDN %I0 ) OR %S2 S %M0 R %M1 * LD %M0 AND %I0 OR( %M1 ANDN %I1 ) S %M1 R %M0 * ACTIONS LD %M1 ST %Q0 d. Programming Step/Step with Crossing Bits * START LD %M1 AND %I1 OR( %M0 ANDN […]
Instructions in IL
The programming language Instruction List (IL) is defined by the IEC 61131 standard. It includes the instructions: LD: LOAD ST: STORE S: SET R: RESET the set of basic logic functions: AND OR XOR: eXclusive OR and their complement: LDN: LOAD NOT ANDN: AND NOT ORN : OR NOT To the logic functions are associated […]