Monday, September 28, 2020

PLC if-not-equal ladder diagram instruction

In the previous post we have show about an equal comparison instruction. In LDMicro ladder diagram PLC instruction set there are up to six comparison instructions. These are very easy to understand to most experienced programmers. We will not list them all due to the repetitions. 

A list of PLC comparison ladder diagram instructions

For now and final of these instructions, I will show only the example of the If-Not-Equal ladder diagram instruction. This instruction make a logical comparison of its operands whenever its input is true. If the logical operation those two operands is not equal it will output true.

A very simple example shows how to use this instruction with the UART. The PLC keep track of reading the the character from UART terminal. If the received character is letter 'A' then the output coil is off, otherwise it's true.



PLC if-not-equal ladder diagram instruction
If not equal ladder diagram instruction example


The circuit diagram show only the PIC-based PLC with its basic connections and the host PC UART terminal.

PLC if-not-equal ladder diagram instruction
Schematic diagram



Click here to download the zip file of this ladder diagram example.


No comments:

Post a Comment

Labels

ADC (10) Analog (14) Arduino (12) Atmega16 (19) Audio (2) AVR (20) Charger (1) Cortex-M0 (1) Counter (10) CPLD (25) Digital I/O (22) Display (34) EEPROM (2) Environment Sensor (1) esp8266 (2) Experiment Board (10) I2C (4) Interrupt (7) LCD (1) LDmicro (29) measurement and instrumentation (7) Microchip Studio (3) MikroC (1) One-Shot (3) OpAmp (1) PCB (31) PIC16 Microcontrollers (16) PIC16F877A (2) PIC16F887 MikroC (22) PLC (35) PWM (11) Regulator (1) RTC (2) Sensor (8) Shift Registers (5) SPI (5) Timer (34) UART (2) ultra-sonic sensor (1) USB (1) VHDL (21) xc8 (1) XC95108 (9) XC9536 (15) XC9572 (1) Xilinx (23) Xilinx ISE (22)