MikroElektronika white logo
  • Products
    • Click Boards
      • Wireless Connectivity
        • GPS/GNSS
        • GSM/LTE
        • LTE IoT
        • BT/BLE
        • WiFi
        • RFID/NFC
        • GSM+GPS
        • 6LoWPAN
        • ZigBee
        • UWB
        • SigFox
        • Sub-1 GHz Transceievers
        • 2.4 GHz Trancevers
        • LoRa
        • WiFi+BLE
      • Sensors
        • Biometrics
        • Gas
        • Magnetic
        • Motion
        • Optical
        • Pressure
        • Proximity
        • Temperature & humidity
        • Current sensor
        • Miscellaneous
        • Environmental
        • Force
        • Inductance
        • RF meter
        • Click Shields
        • Click Bundles
      • Interface
        • Adapter
        • CAN
        • Port expander
        • RS485
        • USB
        • 1-Wire
        • RS232
        • Ethernet
        • LIN
        • PWM
        • Current
        • DALI
        • I2C
        • Fiber optics
        • SPI
        • DMX
        • CXPI
        • Click Shields
        • Click Bundles
      • Display & LED
        • LED Drivers
        • LED Matrix
        • LED Segment
        • OLED
        • LCD
        • TFT
        • Click Shields
        • Click Bundles
      • Miscellaneous
        • Relay
        • Optocoupler
        • ID
        • Proto
        • Encryption
        • Click Shields
        • Click Bundles
      • Mixed Signal
        • ADC
        • Measurements
        • DAC
        • Digital potentiometer
        • ADC-DAC
        • Click Shields
        • Click Bundles
      • Storage
        • EEPROM
        • FLASH
        • FRAM
        • microSD
        • MRAM
        • SRAM
        • EERAM
        • ReRAM
        • DRAM
        • Click Shields
        • Click Bundles
      • Motor Control
        • Brushed
        • Brushless
        • Servo
        • Stepper
        • Click Shields
        • Click Bundles
      • Audio & Voice
        • Amplifier
        • Microphone
        • Speakers
        • Signal Processing
        • Speech recognition
        • FM
        • MP3
        • Click Shields
        • Click Bundles
      • HMI
        • Capacitive
        • Pushbutton/Switches
        • Potentiometers
        • Rotary encoder
        • Haptic
        • Fingerprint
        • Click Shields
        • Click Bundles
      • Clock & Timing
        • RTC
        • Clock generator
        • Click Shields
        • Click Bundles
      • Power Management
        • Battery charger
        • Boost
        • Buck
        • Linear
        • Buck-Boost
        • Wireless Charging
        • Power Switch
        • USB-C PD
        • Click Shields
        • Click Bundles
      • Click Bundles
      • Click Shields
    • NECTO
      • NECTO Studio
    • Compilers
      • PIC
        • C
          • NECTO Studio
          • mikroC PRO for PIC
        • Basic
          • mikroBasic PRO for PIC
        • Pascal
          • mikroPascal PRO for PIC
        • Additional Software
          • CODEGRIP WiFi license
          • CODEGRIP SSL license
          • Visual TFT
          • Visual TFT AI
          • Visual GLCD
          • Package Manager
          • mikroBootloader
          • CAN calculator
          • GLCD Font Creator
          • Timer Calculator
          • MikroPlot
      • dsPIC/PIC24
        • C
          • NECTO Studio
          • mikroC PRO for dsPIC
        • Basic
          • mikroBasic PRO for dsPIC
        • Pascal
          • mikroPascal PRO for dsPIC
        • Additional Software
          • CODEGRIP WiFi license
          • CODEGRIP SSL license
          • Visual TFT
          • Visual GLCD
          • Package Manager
          • mikroBootloader
          • CAN calculator
          • GLCD Font Creator
          • Timer Calculator
          • MikroPlot
      • PIC32
        • C
          • NECTO Studio
          • mikroC PRO for PIC32
        • Basic
          • mikroBasic PRO for PIC32
        • Pascal
          • mikroPascal PRO for PIC32
        • Additional Software
          • CODEGRIP WiFi license
          • CODEGRIP SSL license
          • Visual TFT
          • Visual GLCD
          • Package Manager
          • mikroBootloader
          • CAN calculator
          • GLCD Font Creator
          • Timer Calculator
          • MikroPlot
      • ARM
        • C
          • NECTO Studio
          • mikroC PRO for ARM
        • Basic
          • mikroBasic PRO for ARM
        • Pascal
          • mikroPascal PRO for ARM
        • Additional Software
          • CODEGRIP WiFi license
          • CODEGRIP SSL license
          • Visual TFT
          • Visual TFT AI
          • Visual GLCD
          • Package Manager
          • mikroBootloader
          • CAN calculator
          • GLCD Font Creator
          • Timer Calculator
          • MikroPlot
      • AVR
        • C
          • NECTO Studio
          • mikroC PRO for AVR
        • Basic
          • mikroBasic PRO for AVR
        • Pascal
          • mikroPascal PRO for AVR
        • Additional Software
          • CODEGRIP WiFi license
          • CODEGRIP SSL license
          • Visual TFT
          • Visual GLCD
          • Package Manager
          • mikroBootloader
          • CAN calculator
          • GLCD Font Creator
          • Timer Calculator
          • MikroPlot
      • FT90x
        • C
          • mikroC PRO for FT90x
        • Basic
          • mikroBasic PRO for FT90x
        • Pascal
          • mikroPascal PRO for FT90x
        • Additional Software
          • CODEGRIP WiFi license
          • CODEGRIP SSL license
          • Visual TFT
          • Visual GLCD
          • Package Manager
          • mikroBootloader
          • CAN calculator
          • GLCD Font Creator
          • Timer Calculator
          • MikroPlot
      • 8051
        • C
          • mikroC PRO for 8051
        • Basic
          • mikroBasic PRO for 8051
        • Pascal
          • mikroPascal PRO for 8051
        • Additional Software
          • CODEGRIP WiFi license
          • CODEGRIP SSL license
          • Visual TFT
          • Visual GLCD
          • Package Manager
          • mikroBootloader
          • CAN calculator
          • GLCD Font Creator
          • Timer Calculator
          • MikroPlot
    • Dev Boards
      • PIC (8-bit)
        • 8th Generation
          • Fusion for PIC v8
          • EasyPIC PRO v8
          • EasyPIC PRO v8 over USB-C
          • EasyPIC v8
          • EasyPIC v8 over USB-C
          • UNI-DS v8
          • UNI-DS v8 over USB-C
        • 7th Generation
          • EasyPIC PRO v7a
          • PICPLC16 v7a
          • EasyPIC v7a
          • EasyPIC PRO v7
          • EasyPIC v7
        • 6th Generation
          • PICPLC16 v6
      • dsPIC/PIC24 (16-bit)
        • 8th Generation
          • EasyPIC v8 PIC24/dsPIC33
          • EasyPIC v8 for dsPIC30
          • EasyPIC v8 for dsPIC30 over USB-C
          • Fusion for PIC v8
          • UNI-DS v8
          • UNI-DS v8 over USB-C
        • 7th Generation
          • EasyPIC Fusion v7
          • EasyPIC v7 for dsPIC30
        • 6th Generation
          • Easy24-33 v6
      • PIC32 (32-bit)
        • 8th Generation
          • Fusion for PIC32
          • Fusion for PIC32 over USB-C
          • Fusion for PIC v8
          • UNI-DS v8
          • UNI-DS v8 over USB-C
        • 7th Generation
          • EasyPIC Fusion v7
      • ARM (32-bit)
        • 8th Generation
          • Fusion for ARM v8
          • Fusion for ARM v8 over USB-C
          • Fusion for STM32 v8
          • Fusion for STM32 over USB-C
          • Fusion for KINETIS v8
          • Fusion for Kinetis v8 over USB-C
          • Fusion for TIVA v8
          • Fusion for TIVA v8 over USB-C
          • UNI-DS v8
          • UNI-DS v8 over USB-C
        • 7th Generation
          • EasyMx PRO v7a STM32
          • EasyMx PRO v7 STM32
          • EasyMx PRO v7 Tiva
      • AVR (8-bit)
        • 8th Generation
          • EasyAVR v8
          • EasyAVR PRO v8
          • EasyAVR PRO v8 over USB-C
          • UNI-DS v8
          • UNI-DS v8 over USB-C
        • 7th Generation
          • EasyAVR v7
        • 6th Generation
          • AVRPLC16 v6
      • 8051 (8-bit)
        • 7th generation
          • BIG8051
        • 6th Generation
          • Easy8051 v6
      • PSoC (8-bit)
        • 6th Generation
          • UNI-DS6 Development System
      • RISC-V (32bit)
        • 8th Generation
          • UNI-DS v8
          • UNI-DS v8 over USB-C
      • Universal Boards
        • 8th Generation
          • UNI-DS v8
          • UNI-DS v8 over USB-C
          • Fusion for PIC v8
          • Fusion for ARM v8
        • 7th Generation
          • EasyPIC Fusion v7
        • 6th Generation
          • UNI-DS6
          • mikroBoard for PIC 80-pin
          • mikroBoard for AVR
          • mikroBoard for dsPIC
          • mikroBoard for PSoC
          • mikroBoard for 8051
          • mikroBoard for PIC 40-pin
          • mikroBoard for ARM
          • mikroBoard for ARM 144-pin
      • IoT - Wearable
        • Hexiwear
          • Hexiwear
          • Hexiwear Power User Pack
          • Hexiwear Docking Station
          • Hexiwear Battery Pack
          • Hexiwear Color Pack
          • Hexiwear Workstation
      • Analog Boards
        • 7th Generation
          • Analog System Lab Kit PRO
    • Starter Boards
      • PIC (8-bit)
        • Clicker
          • PIC clicker
        • Clicker 2
          • Clicker 2 for PIC18FJ
          • Clicker 2 for PIC18FK
        • Clicker 4
          • Clicker 4 for PIC18F
          • UNI Clicker
        • Ready
          • Ready for PIC Board
          • Ready for PIC (DIP28)
          • PIC-Ready2 Board
          • MMC Ready Board
        • StartUSB
          • StartUSB for PIC
      • dsPIC/PIC24 (16-bit)
        • Clicker 2
          • Clicker 2 for PIC24
          • Clicker 2 for dsPIC33
        • Clicker 4
          • UNI Clicker
        • Ready
          • dsPIC-Ready1 Board
          • dsPIC-Ready2 Board
          • DsPIC-Ready3 Board
          • dsPIC-Ready4 Board
      • PIC32 (32-bit)
        • Clicker
          • PIC32MX clicker
          • 6LoWPAN Clicker
          • PIC32MZ clicker
        • Clicker 2
          • Clicker 2 for PIC32MX
          • Clicker 2 for PIC32MZ
        • Clicker 4
          • UNI Clicker
        • MINI
          • MINI-32 Board
          • MINI-32 for PIC32MZ
        • Flip&Click
          • Flip&Click PIC32MZ
      • ARM (32-bit)
        • Clicker
          • RA4M1 Clicker
          • Kinetis Clicker
          • MSP432 Clicker
          • CEC1702 clicker
          • CEC1302 Clicker
          • STM32 M4 clicker
        • Clicker 2
          • Clicker 2 for STM32
          • Clicker 2 for Kinetis
          • Clicker 2 for CEC1702
          • Clicker 2 for MSP432
          • Clicker 2 for CEC1302
          • Clicker 2 for PSoC 6
        • Clicker 4
          • Clicker 4 for STM32F745VG
          • Clicker 4 for STM32F4
          • Clicker 4 for TMPM3H
          • Clicker 4 for TMPM4K
          • Clicker 4 for STM32
          • UNI Clicker
        • MINI
          • MINI-M4 for STM32
          • MINI-M4 For Kinetis
          • MINI-M4 for Tiva
          • MINI-M4 for Stellaris
          • MINI-M4 for MSP432
          • MINI-M0 for STM32
        • Flip&Click
          • Flip&Click SAM3X
      • AVR (8-bit)
        • Clicker 4
          • UNI Clicker
        • MINI
          • MINI-AT Board - 3.3V
          • MINI-AT Board - 5V
        • Ready
          • Ready for AVR Board
          • Ready For XMEGA
          • mikroXMEGA Board
          • AVR-Ready2 Board
        • StartUSB
          • StartUSB for AVR
      • 8051 (8-bit)
        • Ready
          • 8051-Ready Board
      • FT90x (32-bit)
        • Clicker 2
          • Clicker 2 for FT90x
      • Miscellaneous
        • USB
          • USB Wizard
          • Quail
          • FlowPaw Kit
      • Universal Boards
        • Clicker 4
          • UNI Clicker
    • Prog-Debug
      • PIC (8-bit)
        • CODEGRIP
          • UNI CODEGRIP
          • UNI CODEGRIP - USB-C
          • CODEGRIP for PIC
          • CODEGRIP for PIC USB-C
        • mikroProg
          • mikroProg for PIC
      • dsPIC/PIC24 (16-bit)
        • CODEGRIP
          • UNI CODEGRIP
          • UNI CODEGRIP - USB-C
          • CODEGRIP for PIC
        • mikroProg
          • mikroProg for dsPIC
      • PIC32 (32-bit)
        • CODEGRIP
          • UNI CODEGRIP
          • UNI CODEGRIP - USB-C
          • CODEGRIP for PIC
          • CODEGRIP for PIC USB-C
        • mikroProg
          • mikroProg for PIC32
      • ARM (32-bit)
        • CODEGRIP
          • UNI CODEGRIP
          • UNI CODEGRIP USB-C
          • CODEGRIP for ARM
          • CODEGRIP for ARM USB-C
          • CODEGRIP for STM32
          • CODEGRIP for KINETIS
          • CODEGRIP for Tiva
          • CODEGRIP for Tiva USB-C
        • mikroProg
          • mikroProg for STM32
          • mikroProg for Tiva
          • mikroProg for Kinetis
          • mikroProg for CEC
          • mikroProg for MSP432
          • mikroProg for PSoC 5LP
      • AVR (8-bit)
        • CODEGRIP
          • CODEGRIP for AVR
          • CODEGRIP for AVR - USB-C
          • UNI CODEGRIP
          • UNI CODEGRIP - USB-C
        • mikroProg
          • mikroProg for AVR
      • 8051 (8-bit)
        • mikroProg
          • mikroProg for 8051
      • FT90x (32-bit)
        • mikroProg
          • mikroProg for FT90x
    • Smart Displays
      • 2.8"
        • ARM (32-bit)
        • AVR (8-bit)
        • dsPIC/PIC24 (16-bit)
        • PIC (8-bit)
        • PIC32 (32-bit)
      • 3.5"
        • ARM (32-bit)
        • FT90x (32-bit)
        • PIC (8-bit)
        • PIC32 (32-bit)
      • 4.3"
        • ARM (32-bit)
        • FT90x (32-bit)
        • PIC (8-bit)
        • PIC32 (32-bit)
      • 5"
        • ARM (32-bit)
        • FT90x (32-bit)
        • PIC32 (32-bit)
      • 7"
        • ARM (32-bit)
        • FT90x (32-bit)
    • MCU Cards
      • PIC (8-bit)
        • 8th Generation
        • 7th Generation
        • 6th Generation
      • dsPIC/PIC24 (16-bit)
        • 8th Generation
        • 7th Generation
        • 6th Generation
      • PIC32 (32-bit)
        • 8th Generation
        • 7th Generation
      • ARM (32-bit)
        • 8th Generation
        • 7th Generation
      • AVR (8-bit)
        • 8th Generation
      • RISC-V (32bit)
        • 8th Generation
    • Accessories
      • TFT Displays
      • LCD Displays
      • LED Displays
      • E-Paper Displays
      • Sensors
      • Headers and Connectors
      • Wire Jumpers and Cables
      • Antennas
      • Batteries
      • RFID/NFC
      • Proto
      • Motors
      • Storage
      • Power
      • Adapters
      • Interface
      • Input/Output
      • Miscellaneous
      • FANware
      • MCUs
      • Books
    • Kits
      • PIC Kits
      • dsPIC/PIC24 Kits
      • PIC32 Kits
      • ARM Kits
      • AVR Kits
      • FT90x Kits
      • 8051 Kits
  • Shop
  • EmbeddedWiki
  • Support
    • Helpdesk
    • Contact us
    • Forum
    • LibStock
    • Learn
    • Let's make
    • Books
  • Services
    • Planet Debug
    • Design Service
    • Product Customization
    • Contract Manufacturing
    • Premium Technical Support
  • News
  • My profile
  • Privacy settings
  • Activity
  • Sign out

Your shoppingcart is empty.
Continue shopping.

MikroElektronika white logo
  • Products
    • click boards icon Click Boards
      • Wireless Connectivity
        • GPS/GNSS
        • GSM/LTE
        • LTE IoT
        • BT/BLE
        • WiFi
        • RFID/NFC
        • GSM+GPS
        • 6LoWPAN
        • ZigBee
        • UWB
        • SigFox
        • Sub-1 GHz Transceievers
        • 2.4 GHz Trancevers
        • LoRa
        • WiFi+BLE
      • Sensors
        • Biometrics
        • Gas
        • Magnetic
        • Motion
        • Optical
        • Pressure
        • Proximity
        • Temperature & humidity
        • Current sensor
        • Miscellaneous
        • Environmental
        • Force
        • Inductance
        • RF meter
        • Click Shields
        • Click Bundles
      • Interface
        • Adapter
        • CAN
        • Port expander
        • RS485
        • USB
        • 1-Wire
        • RS232
        • Ethernet
        • LIN
        • PWM
        • Current
        • DALI
        • I2C
        • Fiber optics
        • SPI
        • DMX
        • CXPI
        • Click Shields
        • Click Bundles
      • Display & LED
        • LED Drivers
        • LED Matrix
        • LED Segment
        • OLED
        • LCD
        • TFT
        • Click Shields
        • Click Bundles
      • Miscellaneous
        • Relay
        • Optocoupler
        • ID
        • Proto
        • Encryption
        • Click Shields
        • Click Bundles
      • Mixed Signal
        • ADC
        • Measurements
        • DAC
        • Digital potentiometer
        • ADC-DAC
        • Click Shields
        • Click Bundles
      • Storage
        • EEPROM
        • FLASH
        • FRAM
        • microSD
        • MRAM
        • SRAM
        • EERAM
        • ReRAM
        • DRAM
        • Click Shields
        • Click Bundles
      • Motor Control
        • Brushed
        • Brushless
        • Servo
        • Stepper
        • Click Shields
        • Click Bundles
      • Audio & Voice
        • Amplifier
        • Microphone
        • Speakers
        • Signal Processing
        • Speech recognition
        • FM
        • MP3
        • Click Shields
        • Click Bundles
      • HMI
        • Capacitive
        • Pushbutton/Switches
        • Potentiometers
        • Rotary encoder
        • Haptic
        • Fingerprint
        • Click Shields
        • Click Bundles
      • Clock & Timing
        • RTC
        • Clock generator
        • Click Shields
        • Click Bundles
      • Power Management
        • Battery charger
        • Boost
        • Buck
        • Linear
        • Buck-Boost
        • Wireless Charging
        • Power Switch
        • USB-C PD
        • Click Shields
        • Click Bundles
      • Click Bundles
      • Click Shields
    • necto icon NECTO
      • NECTO Studio
    • compilers icon Compilers
      • PIC
        • C
          • NECTO Studio
          • mikroC PRO for PIC
        • Basic
          • mikroBasic PRO for PIC
        • Pascal
          • mikroPascal PRO for PIC
        • Additional Software
          • CODEGRIP WiFi license
          • CODEGRIP SSL license
          • Visual TFT
          • Visual TFT AI
          • Visual GLCD
          • Package Manager
          • mikroBootloader
          • CAN calculator
          • GLCD Font Creator
          • Timer Calculator
          • MikroPlot
      • dsPIC/PIC24
        • C
          • NECTO Studio
          • mikroC PRO for dsPIC
        • Basic
          • mikroBasic PRO for dsPIC
        • Pascal
          • mikroPascal PRO for dsPIC
        • Additional Software
          • CODEGRIP WiFi license
          • CODEGRIP SSL license
          • Visual TFT
          • Visual GLCD
          • Package Manager
          • mikroBootloader
          • CAN calculator
          • GLCD Font Creator
          • Timer Calculator
          • MikroPlot
      • PIC32
        • C
          • NECTO Studio
          • mikroC PRO for PIC32
        • Basic
          • mikroBasic PRO for PIC32
        • Pascal
          • mikroPascal PRO for PIC32
        • Additional Software
          • CODEGRIP WiFi license
          • CODEGRIP SSL license
          • Visual TFT
          • Visual GLCD
          • Package Manager
          • mikroBootloader
          • CAN calculator
          • GLCD Font Creator
          • Timer Calculator
          • MikroPlot
      • ARM
        • C
          • NECTO Studio
          • mikroC PRO for ARM
        • Basic
          • mikroBasic PRO for ARM
        • Pascal
          • mikroPascal PRO for ARM
        • Additional Software
          • CODEGRIP WiFi license
          • CODEGRIP SSL license
          • Visual TFT
          • Visual TFT AI
          • Visual GLCD
          • Package Manager
          • mikroBootloader
          • CAN calculator
          • GLCD Font Creator
          • Timer Calculator
          • MikroPlot
      • AVR
        • C
          • NECTO Studio
          • mikroC PRO for AVR
        • Basic
          • mikroBasic PRO for AVR
        • Pascal
          • mikroPascal PRO for AVR
        • Additional Software
          • CODEGRIP WiFi license
          • CODEGRIP SSL license
          • Visual TFT
          • Visual GLCD
          • Package Manager
          • mikroBootloader
          • CAN calculator
          • GLCD Font Creator
          • Timer Calculator
          • MikroPlot
      • FT90x
        • C
          • mikroC PRO for FT90x
        • Basic
          • mikroBasic PRO for FT90x
        • Pascal
          • mikroPascal PRO for FT90x
        • Additional Software
          • CODEGRIP WiFi license
          • CODEGRIP SSL license
          • Visual TFT
          • Visual GLCD
          • Package Manager
          • mikroBootloader
          • CAN calculator
          • GLCD Font Creator
          • Timer Calculator
          • MikroPlot
      • 8051
        • C
          • mikroC PRO for 8051
        • Basic
          • mikroBasic PRO for 8051
        • Pascal
          • mikroPascal PRO for 8051
        • Additional Software
          • CODEGRIP WiFi license
          • CODEGRIP SSL license
          • Visual TFT
          • Visual GLCD
          • Package Manager
          • mikroBootloader
          • CAN calculator
          • GLCD Font Creator
          • Timer Calculator
          • MikroPlot
    • dev boards icon Dev Boards
      • PIC (8-bit)
        • 8th Generation
          • Fusion for PIC v8
          • EasyPIC PRO v8
          • EasyPIC PRO v8 over USB-C
          • EasyPIC v8
          • EasyPIC v8 over USB-C
          • UNI-DS v8
          • UNI-DS v8 over USB-C
        • 7th Generation
          • EasyPIC PRO v7a
          • PICPLC16 v7a
          • EasyPIC v7a
          • EasyPIC PRO v7
          • EasyPIC v7
        • 6th Generation
          • PICPLC16 v6
      • dsPIC/PIC24 (16-bit)
        • 8th Generation
          • EasyPIC v8 PIC24/dsPIC33
          • EasyPIC v8 for dsPIC30
          • EasyPIC v8 for dsPIC30 over USB-C
          • Fusion for PIC v8
          • UNI-DS v8
          • UNI-DS v8 over USB-C
        • 7th Generation
          • EasyPIC Fusion v7
          • EasyPIC v7 for dsPIC30
        • 6th Generation
          • Easy24-33 v6
      • PIC32 (32-bit)
        • 8th Generation
          • Fusion for PIC32
          • Fusion for PIC32 over USB-C
          • Fusion for PIC v8
          • UNI-DS v8
          • UNI-DS v8 over USB-C
        • 7th Generation
          • EasyPIC Fusion v7
      • ARM (32-bit)
        • 8th Generation
          • Fusion for ARM v8
          • Fusion for ARM v8 over USB-C
          • Fusion for STM32 v8
          • Fusion for STM32 over USB-C
          • Fusion for KINETIS v8
          • Fusion for Kinetis v8 over USB-C
          • Fusion for TIVA v8
          • Fusion for TIVA v8 over USB-C
          • UNI-DS v8
          • UNI-DS v8 over USB-C
        • 7th Generation
          • EasyMx PRO v7a STM32
          • EasyMx PRO v7 STM32
          • EasyMx PRO v7 Tiva
      • AVR (8-bit)
        • 8th Generation
          • EasyAVR v8
          • EasyAVR PRO v8
          • EasyAVR PRO v8 over USB-C
          • UNI-DS v8
          • UNI-DS v8 over USB-C
        • 7th Generation
          • EasyAVR v7
        • 6th Generation
          • AVRPLC16 v6
      • 8051 (8-bit)
        • 7th generation
          • BIG8051
        • 6th Generation
          • Easy8051 v6
      • PSoC (8-bit)
        • 6th Generation
          • UNI-DS6 Development System
      • RISC-V (32bit)
        • 8th Generation
          • UNI-DS v8
          • UNI-DS v8 over USB-C
      • Universal Boards
        • 8th Generation
          • UNI-DS v8
          • UNI-DS v8 over USB-C
          • Fusion for PIC v8
          • Fusion for ARM v8
        • 7th Generation
          • EasyPIC Fusion v7
        • 6th Generation
          • UNI-DS6
          • mikroBoard for PIC 80-pin
          • mikroBoard for AVR
          • mikroBoard for dsPIC
          • mikroBoard for PSoC
          • mikroBoard for 8051
          • mikroBoard for PIC 40-pin
          • mikroBoard for ARM
          • mikroBoard for ARM 144-pin
      • IoT - Wearable
        • Hexiwear
          • Hexiwear
          • Hexiwear Power User Pack
          • Hexiwear Docking Station
          • Hexiwear Battery Pack
          • Hexiwear Color Pack
          • Hexiwear Workstation
      • Analog Boards
        • 7th Generation
          • Analog System Lab Kit PRO
    • starter boards icon Starter Boards
      • PIC (8-bit)
        • Clicker
          • PIC clicker
        • Clicker 2
          • Clicker 2 for PIC18FJ
          • Clicker 2 for PIC18FK
        • Clicker 4
          • Clicker 4 for PIC18F
          • UNI Clicker
        • Ready
          • Ready for PIC Board
          • Ready for PIC (DIP28)
          • PIC-Ready2 Board
          • MMC Ready Board
        • StartUSB
          • StartUSB for PIC
      • dsPIC/PIC24 (16-bit)
        • Clicker 2
          • Clicker 2 for PIC24
          • Clicker 2 for dsPIC33
        • Clicker 4
          • UNI Clicker
        • Ready
          • dsPIC-Ready1 Board
          • dsPIC-Ready2 Board
          • DsPIC-Ready3 Board
          • dsPIC-Ready4 Board
      • PIC32 (32-bit)
        • Clicker
          • PIC32MX clicker
          • 6LoWPAN Clicker
          • PIC32MZ clicker
        • Clicker 2
          • Clicker 2 for PIC32MX
          • Clicker 2 for PIC32MZ
        • Clicker 4
          • UNI Clicker
        • MINI
          • MINI-32 Board
          • MINI-32 for PIC32MZ
        • Flip&Click
          • Flip&Click PIC32MZ
      • ARM (32-bit)
        • Clicker
          • RA4M1 Clicker
          • Kinetis Clicker
          • MSP432 Clicker
          • CEC1702 clicker
          • CEC1302 Clicker
          • STM32 M4 clicker
        • Clicker 2
          • Clicker 2 for STM32
          • Clicker 2 for Kinetis
          • Clicker 2 for CEC1702
          • Clicker 2 for MSP432
          • Clicker 2 for CEC1302
          • Clicker 2 for PSoC 6
        • Clicker 4
          • Clicker 4 for STM32F745VG
          • Clicker 4 for STM32F4
          • Clicker 4 for TMPM3H
          • Clicker 4 for TMPM4K
          • Clicker 4 for STM32
          • UNI Clicker
        • MINI
          • MINI-M4 for STM32
          • MINI-M4 For Kinetis
          • MINI-M4 for Tiva
          • MINI-M4 for Stellaris
          • MINI-M4 for MSP432
          • MINI-M0 for STM32
        • Flip&Click
          • Flip&Click SAM3X
      • AVR (8-bit)
        • Clicker 4
          • UNI Clicker
        • MINI
          • MINI-AT Board - 3.3V
          • MINI-AT Board - 5V
        • Ready
          • Ready for AVR Board
          • Ready For XMEGA
          • mikroXMEGA Board
          • AVR-Ready2 Board
        • StartUSB
          • StartUSB for AVR
      • 8051 (8-bit)
        • Ready
          • 8051-Ready Board
      • FT90x (32-bit)
        • Clicker 2
          • Clicker 2 for FT90x
      • Miscellaneous
        • USB
          • USB Wizard
          • Quail
          • FlowPaw Kit
      • Universal Boards
        • Clicker 4
          • UNI Clicker
    • prog-debug icon Prog-Debug
      • PIC (8-bit)
        • CODEGRIP
          • UNI CODEGRIP
          • UNI CODEGRIP - USB-C
          • CODEGRIP for PIC
          • CODEGRIP for PIC USB-C
        • mikroProg
          • mikroProg for PIC
      • dsPIC/PIC24 (16-bit)
        • CODEGRIP
          • UNI CODEGRIP
          • UNI CODEGRIP - USB-C
          • CODEGRIP for PIC
        • mikroProg
          • mikroProg for dsPIC
      • PIC32 (32-bit)
        • CODEGRIP
          • UNI CODEGRIP
          • UNI CODEGRIP - USB-C
          • CODEGRIP for PIC
          • CODEGRIP for PIC USB-C
        • mikroProg
          • mikroProg for PIC32
      • ARM (32-bit)
        • CODEGRIP
          • UNI CODEGRIP
          • UNI CODEGRIP USB-C
          • CODEGRIP for ARM
          • CODEGRIP for ARM USB-C
          • CODEGRIP for STM32
          • CODEGRIP for KINETIS
          • CODEGRIP for Tiva
          • CODEGRIP for Tiva USB-C
        • mikroProg
          • mikroProg for STM32
          • mikroProg for Tiva
          • mikroProg for Kinetis
          • mikroProg for CEC
          • mikroProg for MSP432
          • mikroProg for PSoC 5LP
      • AVR (8-bit)
        • CODEGRIP
          • CODEGRIP for AVR
          • CODEGRIP for AVR - USB-C
          • UNI CODEGRIP
          • UNI CODEGRIP - USB-C
        • mikroProg
          • mikroProg for AVR
      • 8051 (8-bit)
        • mikroProg
          • mikroProg for 8051
      • FT90x (32-bit)
        • mikroProg
          • mikroProg for FT90x
    • smart displays icon Smart Displays
      • 2.8"
        • ARM (32-bit)
        • AVR (8-bit)
        • dsPIC/PIC24 (16-bit)
        • PIC (8-bit)
        • PIC32 (32-bit)
      • 3.5"
        • ARM (32-bit)
        • FT90x (32-bit)
        • PIC (8-bit)
        • PIC32 (32-bit)
      • 4.3"
        • ARM (32-bit)
        • FT90x (32-bit)
        • PIC (8-bit)
        • PIC32 (32-bit)
      • 5"
        • ARM (32-bit)
        • FT90x (32-bit)
        • PIC32 (32-bit)
      • 7"
        • ARM (32-bit)
        • FT90x (32-bit)
    • mcu cards icon MCU Cards
      • PIC (8-bit)
        • 8th Generation
        • 7th Generation
        • 6th Generation
      • dsPIC/PIC24 (16-bit)
        • 8th Generation
        • 7th Generation
        • 6th Generation
      • PIC32 (32-bit)
        • 8th Generation
        • 7th Generation
      • ARM (32-bit)
        • 8th Generation
        • 7th Generation
      • AVR (8-bit)
        • 8th Generation
      • RISC-V (32bit)
        • 8th Generation
    • accessories icon Accessories
      • TFT Displays
      • LCD Displays
      • LED Displays
      • E-Paper Displays
      • Sensors
      • Headers and Connectors
      • Wire Jumpers and Cables
      • Antennas
      • Batteries
      • RFID/NFC
      • Proto
      • Motors
      • Storage
      • Power
      • Adapters
      • Interface
      • Input/Output
      • Miscellaneous
      • FANware
      • MCUs
      • Books
    • kits icon Kits
      • PIC Kits
      • dsPIC/PIC24 Kits
      • PIC32 Kits
      • ARM Kits
      • AVR Kits
      • FT90x Kits
      • 8051 Kits
  • Shop
  • EmbeddedWiki
  • Support
    • Helpdesk
    • Contact us
    • Forum
    • LibStock
    • Learn
    • Let's make
    • Books
  • Services
    • Planet Debug
    • Design Service
    • Product Customization
    • Contract Manufacturing
    • Premium Technical Support
  • News
  • Price :

    More info
Reset filter
  • 0
Authentication
Account

Create account

Forgot your password?

Your cart is empty !
View cart ( )
  1. Home
  2. ebooks
  3. Introduction to PLC controllers
  4. appendix-e-ladder-diagram-instructions-23
MikroElektronika books

APPENDIX E Ladder diagram instructions (2/3)

 
E.21 HIGH-SPEED TIMER - Timer with 0.01s resolution
Description This instruction is identical to the previous TIM instruction, except for the resolution of decrementing. In case of TIM instruction this interval equals 0.1s, while with TIMH instruction it equals 0.01s. Changing the condition to ON starts the countdown with 0.01s decrements from the predefined value down to zero. If the state of condition changes to OFF timer will be reset. Value of parameter SV (abbreviation for Set Value) is multiplied by 0.01 s resulting in total time in seconds. Value given in the middle part of the block is called TC number. Each TC number can be used for defining one couner or timer. It can take values from 000 - 127 range. Lower part of the block is reserved for displaying the starting value of timer. Word with this role can belong to sectors IR, AR, DM, HR, LR or can be given as a constant, with values from 00.00 - 99.9.9 range. If parameter SV is given as a constant, it is necessary to put character “#” ahead of value.
Ladder symbol plc-controllers-appendix-E21-1
Limitations The number of timer cannot be used for a counter or another timer. Value of SV must be in 00.00 - 99.99 range. Recommended range for a number of timer is 000 - 003.
Flag Affects the appropriate flag in TC area.
Example plc-controllers-appendix-E21-2 Changing the state of condition bit IR000.00 to ON starts the countdown (in this case for 27*0.01s=0.27 seconds). After the passing of given period of time, the appropriate bit IM003 changes state to ON, thus fulfilling the condition for executing the instructions on the right (in this case bit IR010.01 changes state to ON). Condition bit must be constantly ON for a given time period for bit TIM002 to be set. If condition state changes to OFF during the given time period, timer resets and goes back to the beginning.
 
E.22 COUNTER - Counter
Description Counter decrements the value given with SV for every ON state of the condition on CP line (abbreviation for Count Pulse). Each time the state on CP line changes from OFF to ON value of SV is decremented by one. Fulfilling the condition on R (reset) line sets the counter to a starting state with a given SV value. When the zero is reached, instruction changes the state of appropriate bit from TC area corresponding to the number of a counter (bit can be returned to OFF state by fulfilling the condition on reset line). If parameter SV is given as a constant, it is necessary to place a character “#” ahead of value.
Ladder symbol plc-controllers-appendix-E22-1
Limitations The number of timer cannot be used for a counter or another timer.
Flag Affects the appropriate flag in TC area.
Example plc-controllers-appendix-E22-2 When the state of bit IR000.00 changes from OFF to ON, counter value decreases to 299, next change of bit IR000.00 lowers it to 298 and so on. When counter value reaches zero, state of bit CNT004 changes to ON, fulfilling the condition for executing instructions on the right (in this case, it is a normally closed contact that will open).
 
E.23 REVERSIBLE COUNTER - Incrementing / decrementing counter
Description This instruction is an extension of the previous one, having the added input for increasing counter value by one. Counter CNTR has two counting inputs: incrementing and decrementing.Decrementing input is identical to one from CNT instruction. For every ON state of condition on II line (Increment Input) counter value increases by one. If this value reached SV, counter value remains unchanged. Every time state on DI line (Decrement Input) changes from OFF to ON, value of SV decreases by one. If counter value reached zero it remains unchanged. Fulfilling the condition on R (reset) line sets the counter to a starting state given with value of SV. With reaching the zero, instruction changes the state of bit in TC area appropriate to the number of the counter. This bit can be returned to OFF state by fulfilling the condition on na reset line or increment II line. If the parameter SV is given as a constant it is necessary to place the character “#” ahead of value.
Ladder symbol plc-controllers-appendix-E23-1
Limitations Number of a counter cannot be used for a timer or another counter.
Flag Affects the appropriate bit in TC area.
Example plc-controllers-appendix-E23-2 When the state of bit IR000.00 changes from OFF to ON, counter value decreases to 122, next change of bit IR000.00 lowers it to 121 and so on. When the state of bit IR000.01 changes counter value increases by one. When counter value reaches zero, state of bit CNT006 changes to ON fulfilling the condition for executing instructions on the right (in this case, it is normally closed contact that will open). ON state of bit IR00.02 will return the counter to a given value, while a bit CNT006 returns it to OFF state.
 
E.24 COMPARE - Compares two memory locations
Description Instruction CMP(20) compares two words upon fulfilling the preceding condition. Depending on the relation of the two words, output can be: 1. Equal - state of bit EQ in SR memory area changes to ON. 2. Cp1 is lower than Cp2 - state of bit LE in SR memory area changes to ON. 3. Cp1 is greater than Cp2 - state of bit GR in SR memory area changes to ON.
Flag Address Cp1<Cp2 Cp1=Cp2 Cp1>Cp2
GR 25505 OFF OFF ON
EQ 25506 OFF ON OFF
LE 25507 ON OFF OFF
 
Ladder symbol plc-controllers-appendix-E24-1
Limitations Comparations that include the current values of timer or a counter require values in BCD format. Checking the flags GR, LE and EQ should take place immediately after the CMP(20) instruction, because another instruction may affect their states.
Flag Affects the flags GR, LE and EQ in SR memory area.
Example plc-controllers-appendix-E24-2 When the state of bit IR000.00 changes to ON, condition for comparing the values of memory locations IR200 and IR201 is fulfilled. If value of IR200 is greater than IR201, state of bit IR010.00 changes to ON. If value of IR200 is lesser than IR201, state of bit IR010.02 changes to ON. In case of equal values of locations IR200 and IR201, state of bit IR010.01 changes to ON.
 
E.25 DOUBLE COMPARE - Compares two consecutive words
Description Instruction CMPL(60) compares the two consecutive words with other two consecutive words. Depending on the relation, output can be: 1. Equal - state of bit EQ in SR memory area changes to ON. 2. Cp1+1, Cp1 is lower than Cp2+1, Cp2 - state of bit LE in SR memory area changes to ON. 3. Cp1+1, Cp1 is greater than Cp2+1, Cp2 - state of bit GR in SR memory area changes to ON.
Flag Address Cp1+1,Cp1 <Cp2+1,Cp2 Cp1+1,Cp1=Cp2+1,Cp2 Cp1+1,Cp1>Cp2+1,Cp2
GR 25505 OFF OFF ON
EQ 25506 OFF ON OFF
LE 25507 ON OFF OFF
 
Ladder symbol plc-controllers-appendix-E25-1
Limitations Checking the flags GR, LE and EQ should take place immediately after the CMP(20) instruction, because another instruction may affect their states.
Flag Affects the flags GR, LE and EQ in SR memory area.
Example plc-controllers-appendix-E25-2 When the state of bit IR000.00 changes to ON, condition for comparing the values of memory locations IR200+IR2001 and HR00+HR01 is fulfilled. If value of the first operand is greater, state of bit IR010.00 changes to ON. If value of the first operand is lesser, state of bit IR010.02 changes to ON. In case of equal values, state of bit IR010.01 changes to ON.
 
E.26 BLOCK COMPARE - Block compare
Description Instruction BCMP compares the value of memory location CD with values of memory locations CB - CB+31. The method consists of finding the pair of CB locations where the value of CD location fits in between. Upon locating that area, the appropriate bit is set in the result word R. Based on this information, the programmer knows the general area of value of location CD. plc-controllers-appendix-E26-1
Ladder symbol plc-controllers-appendix-E26-2
Limitations Values of CB block must be in order, so that the value of location CB is lesser than value of CB+1.
Flag It has no effect on any particular flag.
Example plc-controllers-appendix-E26-3 Comparation will be executed for as long as the state of condition is ON. If value of location HR00 equals “0210”, then it will be set between DM0014 and DM0015 correspoding to the second bit of the result word LR05. plc-controllers-appendix-E26-4
 
E.27 TABLE COMPARE - Table compare
Description Instruction TCMP compares value of memory location CD with values of memory locations TB, TB+1, TB+2, TB+3 ... TB+15. If value of location CB is equal to one of TB values, the appropriate bit of the result word R is set. Based on this information, the programer knows which TB value matches the value of location CD.
Ladder symbol plc-controllers-appendix-E27-1
Limitations Locations DM 6144 - DM6655 cannot be used for the result word.
Flag It has no effect on any particular flag.
Example plc-controllers-appendix-E27-2 Comparation will be executed as long as the state of bit IR000.00 is ON. If value of location HR00 is “0210”, then it equals the values of locations DM0002, DM0006, DM0010 and DM0014. Accordingly, the appropriate bits of the word IR216 change states to ON (they are set). plc-controllers-appendix-E27-3
 
E.28 MOVE - Moves the contents of one memory location to another
Description Instruction MOVE is used for moving the contents of one memory location to another. The operand S represents the word whose contents should be moved to a word that is operand D. Operand S can be a constant, if the character “#” is placed ahead of four-digit value.
Ladder symbol plc-controllers-appendix-E28-1
Limitations Words DM6144 - DM6655 cannot be used as operand D. The current state of timer or counter also cannot be used as operand D. Instruction BSET(17) should be used for that purpose.
Flag Flag EQ from TC area changes state to ON when all zeros are written into operand D. Therefore, flag EQ provides us with information if the moved value equals zero. In case of error, state of flag ER changes to ON.
Example plc-controllers-appendix-E28-2 Upon fulfilling the condition on bit IR00.00, instruction moves the contents of memory location IR001 to memory location HR05. Every bit of word IR001 is copied to the appropriate bit of word HR05. Instruction MOV can be very helpful when reading the signals controller sends or receives from peripheral devices. Input states are moved to a working area, where they are processed and then they are sent to the output points of PLC controller.
 
E.29 MOVE NOT - Moves the complement
Description Instruction MOVE NOT is used for moving the complemented (inverted bits, bit “0” becomes “1”and vice versa) contents of one memory location to another. The operand S represents the word whose complemented contents should be moved to a word that is operand D. Operand S can be a constant, if the character “#” is placed ahead of four-digit value.
Ladder symbol plc-controllers-appendix-E29-1
Limitations Words DM6144 - DM6655 cannot be used as operand D. The current state of timer or counter also cannot be used as operand D. Instruction BSET(17) should be used for that purpose.
Flag Flag EQ from TC area changes state to ON when all zeros are written into operand D. Therefore, flag EQ provides us with information if the moved value equals zero. In case of error, state of flag ER changes to ON.
Example plc-controllers-appendix-E29-2 Upon fulfilling the condition on bit IR00.00, instruction moves the complemented contents of memory location IR001 to memory location HR05. Every bit of word IR001 is complemented and copied to the appropriate bit of word HR05.
 
E.30 BLOCK TRANSFER - Copies one block of words to another
Description Instruction BLOCK TRANSFER copies the contents of one memory block of words to another. Parametar “N” represents the number of memory locations copied, “S” is the address of starting source memory location, while “D” represents the address of the starting destination memory location.
Ladder symbol plc-controllers-appendix-E30-1
Limitations Words DM6144 - DM6655 cannot be used as operand D. S and S+N have to be from the same memory area. D and D+N also have to be from the same memory area. N has to be a BCD number.
Flag State of ER flag changes to ON if N is not a BCD number or in case that S and S+N, D and D+N are not from the same memory area.
Example plc-controllers-appendix-E30-2 Upon fulfilling the condition on bit IR00.00, instruction moves the contents of ten memory locations IR200 - IR210 to memory locations HR00 - HR10.
 
E.31 BLOCK SET - Copies the contents of one memory location to multiple locations
Description Instruction copies the contents of one memory location S to a block of memory locations from St to E. Parameter St contains the starting address of the block and parameter E contains the ending address of the block. It is possible to change the contents of the current timer/counter values with this instruction, unlike with instructions MOV and MVN. Operand S can be a constant, if the character “#” is placed ahead of four-digit value.
Ladder symbol plc-controllers-appendix-E31-1
Limitations Words DM6144 - DM6655 cannot be used as operands St and E. Address in the operand St has to be lesser than the addreess in operand E. Both the operands St and E have to be from the same memory block.
Flag State of ER flag changes to ON if St and E do not belong to the same memory block or in the case that the second parameter is greater than first.
Example plc-controllers-appendix-E31-2 Upon fulfilling the condition on bit IR00.00, instruction moves the contents of memory location IR000 (zero) to locations HR00 - HR05. In this way, it is possible to clear the memory block or to set it to a certain value. Same effect could be achieved if constant “#0000” was used instead of memory location IR200 containing all zeros.
 
E.32 DATA EXCHANGE - Exchanges values of two memory locations
Description Instruction exchanges the values of memory locations E and E1.
Ladder symbol plc-controllers-appendix-E32-1
Limitations Words DM6144 - DM6655 cannot be used as operands E1 and E2.
Flag State of ER flag changes to ON if non-existing indirect address of location from DM area is used as an operand.
Example plc-controllers-appendix-E32-2 Upon fulfilling the condition on bit IR00.00 instruction exchanges the contents of memory locations IR000 (all zeros) and IR201 (all ones). As a result, memory location IR201 contains all ones and memory location IR200 contains all zeros.
 
E.33 SINGLE WORD DISTRIBUTE - Creates a stack
Description Instruction can be used in two ways depending on the states of bits 12, 13, 14 and 15 of memory location in parameter C. If these 4 bits have value between 0 and 8, then the instruction copies the word from parameter S (or a constant if it is given with character “#” ahead) to an address calculated by adding the base address from parameter DBs and the shift defined in the rest of the word of parameter C. When bits 12-15 in memory location of parameter C form the number 9, then the instruction is used for stack operations. The rest of the value of word of parameter C now defines number of the words in stack (from 000 to 999) and the contents of DBs represent the stack pointer.
Ladder symbol plc-controllers-appendix-E33-1
Limitations Words DM6144 - DM6655 cannot be used as operand DBs. Address of the operand DBs has to be in the same memory block with BDs + shift. The argument C has to be BCD number.
Flag EQ flag changes state to ON when the contents of memory location in parameter S equal zero. State of ER flag changes to ON in case of error.
Examples plc-controllers-appendix-E33-2 Bits 12-15 in the word LR10 from parameter C formthe number “0011”, which is in 0 - 8 range. Therefore, the instruction is used in the first form. Upon fulfilling the condition on bit IR00.00, instruction copies the constant #00FF to an address calculated by adding the base address (in this case HR10) and three lower numbers from the word LR10. plc-controllers-appendix-E33-3 Bits 12-15 in the word IR216 from parameter C form the number “0101”, which exceeds 8. Therefore, the instruction is used in the second form. The example above shows how to create a stack between memory locations DM0001 and DM0005. Location DM0000 is used as a pointer marking the top of the stack.
 
E.34 DATA COLLECT - FIFO, LIFO stack
Description Instruction can be used in three different ways depending on the states of bits 12-15 in the word of parameter C: 1. If four bits have value between 0 and 7, the instruction copies the word D to an address calculated by adding the address of the word SBs with the rest of the word C. 2. If value of four bits of word C equals 9, instruction creates the FIFO stack (First In First Out). The rest of the bits of the word C determines the number of the words in stack (000 to 999), while SBs represents the pointer marking the top of the stack. 3. If value of four bits of word C equals 8, instruction creates the LIFO stack (Last In First Out). The rest of the bits of the word C determine the number of the words in stack (000 to 999), while SBs represents the pointer marking the top of the stack.
Ladder symbol plc-controllers-appendix-E34-1
Limitations Words DM6144 - DM6655 cannot be used as operand DBs. Parameter C has to be a BCD number. SBs and SBs + shift have to be from the same memory block.
Flag EQ flag changes state to ON when the contents of memory location in parameter S equal zero. State of ER flag changes to ON in case of error, such as overflow or assigning non-BCD contents to parameters S or D.
Examples plc-controllers-appendix-E34-2 Bits 12 - 15 in the word IR200 form “0”, while the rest of the word forms value 005, defining stack size to be 5 locations. Upon fulfilling the condition on bit IR000.00, instruction copies the contents of word LR00 to an address calculated by adding the address DM0000 with the shift defined in the word IR200 (lower three digits) : DM0000 + 005 = DM0005. plc-controllers-appendix-E34-3 Bits 12 - 15 in word IR216 form a number “9”, while the rest of the word forms value 005, defining the stack size to be 5 locations. Number “9” as the first digit of word IR216 determines that the instruction works with FIFO stack. Upon fulfilling the condition on bit IR000.00, instruction moves the contents of the stack by one address, so that the element that first came into the stack (“AAAA”) is copied to the word IR001, while the stack pointer decreases by one. plc-controllers-appendix-E34-4 Bits 12 - 15 of the word IR216 form a number “8”, while the rest of the word forms value 005, defining the stack size to be 5 locations. Number “8” as the first digit of the word IR216 means that the instructions works with LIFO stack. Upon fulfilling the condition on bit IR000.00, instruction copies the value of the last word that came into stack to the location IR001, while the stack pointer decreases by one.
 
E.35 MOVE BIT - Copies a bit from one word to another
Description Instruction copies a specified bit from the word S to a specified bit of word D. The word Bi determines the positions of bits in question. The upper 2 digits determine the destination bit, while lower 2 determine the source bit.
Ladder symbol plc-controllers-appendix-E35-1
Limitations Values of destination and source bits has to be between 0 and 15. Words DM6144 - DM6655 cannot be used as operands Bi or D.
Flag
Example
 
E.36 MOVE DIGIT - Moves a digit from one word to another
Description Instruction copies a specified digit from the word S to a specified digit of the word D. The word Di determines the positions of digits in question.
Ladder symbol plc-controllers-appendix-E36-1
Limitations Value of destination and source bit has to be between 0 and 15. Words DM6144 - DM6655 cannot be used as operands Bi or D.
Flag ER flag changes state to ON if at least one of three digits in the word Di isn’t in the specified range (between 0 and 3).
Example The examples below show copying digits from one word to another depending on the value of word Di. plc-controllers-appendix-E36-2
 
E.37 SHIFT REGISTER - Shifts the contents of a word for 1 bit to the left
Description Instruction shifts the contents of word St for 1 bit to the left. The highest bit of the word St moves to the place of the lowest bit in the word St+1, the highest bit of the word St+1 moves to the position of the lowest bit in the word St+2 and so forth, up to the word E. The highest bit of the word E is irreversibly lost with every shifting. Input I defines whether “0” or “1” fills the lowest bit position. If the state of I line is ON, value is one, while OFF defines zero. Input P is used as clock for the instruction and switching it from OFF to ON changes the bit shift. State on R line can be OFF when the instruction can be executed and ON when all the bits within word range from St to E are set to “0”. As long as the state of R line isn’t set to OFF state, instruction cannot be executed.
Ladder symbol plc-controllers-appendix-E37-1
Limitations E has to be greater or equal to the address in parameter St.
Flag ER flag changes state to ON if St is lower address than E or if they are not in the same memory area.
Example plc-controllers-appendix-E37-2 Upon fulfilling the condition on bit IR000.00, instruction uses one-second clock on bit 255.02 in order to move the contents of the word HR00. Bit IR200.00 will be ON every time the bit HR00.07 equals one.
 
E.38 WORD SHIFT - Shifts whole words
Description Instruction shifts the whole contents of the word St to an address greater by one than the current. Value of the word from the parameter St is moved to St+1 up to the the word defined with parameter E. Word that equals zero fills the place on the right for every shifting. Value of the word on the address from parameter E is irreversibly lost.
Ladder symbol plc-controllers-appendix-E38-1
Limitations E has to be greater or equal address to the one from parameter St. Words DM6144 - DM6655 cannot be used as operands St and E.
Flag ER flag changes state to ON if St is lower address than E or if they are not from the same memory area.
 
E.39 ARITHMETIC SHIFT LEFT - Arithmetic shift left
Description Instruction shifts the contents of the word Wd for one bit to the left. The lowest bit becomes “0”, while the highest bit is moved to carry bit.
Ladder symbol plc-controllers-appendix-E39-1
Limitations Words DM6144 - DM6655 se ne mogu koristiti za operand Wd.
Flag EQ flag changes state to ON if the contents of the word Wd equal zero. CY flag takes the value of the highest bit of theword Wd and changes state accordingly.
 
E.40 ARITHMETIC SHIFT RIGHT - Arithmetic shift right
Description Instruction shifts the contents of the word Wd for 1 bit to the right. The highest bit takes value “0”, while the lowest bit moves to carry bit (CY).
Ladder symbol plc-controllers-appendix-E40-1
Limitations Words DM 6144 - DM6655 cannot be used as operand Wd.
Flag EQ flag changes state to ON if the contents of the word Wd equal zero. CY flag takes the value of the lowest bit of the word Wd and changes state accordingly.
 
E.41 ROTATE LEFT - Rotates the contents of a word for 1 bit to the left
Description Instruction shifts the contents of the word Wd for one bit to left, using the carry bit CY. Bit from CY is then moved to the lowest bit to close the circle.
Ladder symbol plc-controllers-appendix-E41-1
Limitations Word DM6144 - DM6655 cannot be used as operand Wd.
Flag EQ flag changes state to ON if the contents of the word Wd equal zero. CY flag takes value of the highest bit of the word Wd and changes state accordingly.
 
E.42 ROTATE RIGHT - Rotates the contents of a word for 1 bit to the right
Description Instruction shifts the contents of the word Wd for one bit to the right, using the carry bit CY. Bit from CY is then moved to the highest bit to close the circle.
Ladder symbol plc-controllers-appendix-E42-1
Limitations Word DM6144 - DM6655 cannot be used as operand Wd.
Flag EQ flag changes state to ON if the contents of the word Wd equal zero. CY flag takes value of the lowest bit of the word Wd and changes state accordingly.
 
E.43 ONE DIGIT SHIFT LEFT - Shifts word for one digit to the left
Description Instruction shifts the contents of the word St for one digit to the left. The highest digit of the word E is irreversably lost and the lowest digit of the word St takes zero value.
Ladder symbol plc-controllers-appendix-E43-1
Limitations Words DM 6144 - DM6655 cannot be used as operands St and E. Operands St and E have to be in the same memory area, while the address of operand E has to be greater or equal to the address of operand St.
Flag ER flag changes state to ON if St and E are not from the same memory area or in case that the address of parameter E is lower than the address of parameter St.
 
E.44 ONE DIGIT SHIFT RIGHT - Shifts word for one digit to the right
Description Instruction shifts the contents of the word St for one digit to the right. The lowest digit of the word E is irreversably lost and the lowest digit of the word St takes zero value.
Ladder symbol plc-controllers-appendix-E44-1
Limitations Words DM 6144 - DM6655 cannot be used as operands St and E. Operands St and E have to be in the same memory area and the address of the operand E has to be lower or equal to the address of the operand St.
Flag ER flag changes state to ON if St and E are not from the same memory area or in case that the address of parameter E is higher than the address of parameter St.
 
E.45 REVERSIBLE SHIFT REGISTER - Shifts words to the left or to the right
Description Instruction is used for shifting one or several words in both directions, according to the states of the highest 4 bits in the control word C. The control word determines shifting direction, input value, clock and reset input.
Ladder symbol plc-controllers-appendix-E45-1
Limitations Words DM 6144 - DM6655 cannot be used as operands C, St and E. Operands St i E have to be from the same memory area and the address of the operand St has to be lower or equal to the address of the operand E.
Flag ER flag changes state to ON if St and E are not from the same memory area or the address of parameter St is higher than the address of parameter E. CY changes according to the state of the lowest bit of the word St or the highest bit of the word E, depending on the shifting direction set in the control word C.
Example plc-controllers-appendix-E45-2 First instruction line determines the shifting direction, second determines input, third determines the clock and fourth determines reset. The shifting direction depends on the bit 12 of the control word. Depending on it, data bit moves to CY carry bit, while the opposite end becomes “0” or “1” depending on bit 13 of the control word. Condition for executing this instruction is located in the bit IR000.04, but besides this it is necessary to have the clock (bit 14 of the control word) ON. If the instruction is being executed with reset bit (bit 15 of the control word) OFF, all data bits as well as carry bit CY are set to “0”.
 
E.46 BCD INCREMENT - Increases the contents of a word by 1
Description Instruction increases the contents of the word Wd by one when the condition is fulfilled. Incrementation does not affect the carry bit.
Ladder symbol plc-controllers-appendix-E46-1
Limitations Words DM 6144 - DM6655 cannot be used as operand Wd.
Flag ER flag changes state to ON if the contents of the word Wd are not BCD. EQ flag changes state to ON when the result of incrementation equals “0”.
 
E.47 BCD DECREMENT - Decreases the contents of a word by 1
Description Instruction decreases the contents of the word Wd by one when the condition is fulfilled. Decrementation does not affect the carry bit.
Ladder symbol plc-controllers-appendix-E47-1
Limitations Words DM6144 - DM6655 cannot be used as operand Wd.
Flag ER flag changes state to ON if the contents of the word Wd are not BCD. EQ flag changes state to ON when the result of decrementation equals “0”.
 
E.48 BCD ADD - Adds two values
Description Instruction adds the contents of words Au and Ad (Au + Ad + CY) and stores the result in location R. If the result is greater than 9999 carry bit CY is set.
Ladder symbol plc-controllers-appendix-E48-1
Limitations Words DM6144 - DM6655 cannot be used as operand R.
Flag ER flag changes state to ON if the contents of words Au and Ad are not BCD. EQ flag changes state to ON if the result equals “0”. CY flag changes state to ON if the result is greater than 9999.
Example Upon fulfilling the condition on bit IR000.02, carry bit is cleared and the value of memory location IR200 is added to the constant 6103. The result is stored in the memory location DM0100. The example further shows how to save the carry bit if the result was greater than 9999. If the result exceeded 9999, memory location DM0101 will take value “1” and if not it will take value “0”. In this way, locations DM0100 and DM0101 form one 32-bit word, which may prove to be useful. plc-controllers-appendix-E48-2
 
E.49 SUBTRACT - Subtracts two values
Description Instruction subtracts the contents of the word Su and a value of carry bit CY from the contents of the word Mi. The result is stored in the memory location R If the result is negative, carry bit CY is set and a 10’complement of the result is stored into R. To get the real result, just subtract the value in R from zero.
Ladder symbol plc-controllers-appendix-E49-1
Limitations Words DM 6144 - DM6655 cannot be used as operand R.
Flag ER flag changes state to ON if the contents of words Mi and Su are not BCD. EQ flag changes state to ON if the result equals “0”. CY flag changes state to ON if the result is negative.
Example plc-controllers-appendix-E49-2 Carry bit status should be checked before the subtraction. It is best to clear it with CLC instruction. The check is more necessary after the subtraction, because there is chance of misinterpretation. If the carry bit is set (value is “1”) the result of subtraction is negative and the result word contains 10’ complement of the real result. When the condition is fulfilled on bit IR000.02, carry bit is cleared and the value of memory location DM0100 is subtracted from value of location IR201. The result is stored in the location HR10. Upon subtraction, carry bit CY is checked. If it is set, condition on SR255.04 (the very carry bit) will be fulfilled, clearing it anew and commencing the new subtraction in order to get the real result of the first subtraction. The second subtraction instruction subtracts the value of the result word HR10 from zero, storing the result into HR10 again. It is useful to set a certain bit for a programmer to have information on negative result. In the following example this bit is HR1100. Changing the state of carry bit to OFF doesn’t change the state of bit HR1100. plc-controllers-appendix-E49-3 Character “@” ahead of SUB(31) represents the differencial form of the instruction, or simply put, this instruction will not execute non-stop while the condition is fulfilled. Only changing the condition from OFF to ON executes the instruction. This means that the second subtraction instruction won’t take place immediately after the first one. Before executing the second instruction, it is necessary that bit IR000.02 changed state from OFF to ON at least once.
 
E.50 BCD MULTIPLY - Multiplies two values
Description Instruction multiplies values of locations Md and Mr and stores the result into memory locations R and R+1.
Ladder symbol plc-controllers-appendix-E50-1
Limitations Words DM6144 - DM6655 cannot be used as operand R.
Flag ER flag changes state to ON if the contents of words Mr and Md are not BCD. EQ flag changes state to ON if the result equals “0”. CY flag changes state to ON if the there is a carry in the result.
Example plc-controllers-appendix-E50-2 Upon fulfilling the condition on bit IR000.00, instruction multiplies the values of memory locations IR013 and DM0005. The result is stored into two sequential memory locations HR07 and HR08. The result is stored so that HR08 contains higher bits and that HR07 contains lower bits.

MIKROE

MIKROE is a development tools company dedicated to standardization and time-saving in the embedded industry.

  • About us
  • Success story
  • Contact
  • PressKit
  • Timeline
  • Partners
  • Legal
  • Distributors
  • Legacy Products

SOLUTIONS

  • Click boards™
  • Development boards
  • Mikromedia
  • CODEGRIP
  • NECTO Studio
  • Planet Debug
  • ClickID
  • Click Snap
  • EmbeddedWiki

SUPPORT

  • Helpdesk
  • Forum
  • Libstock
  • Learn
  • Let's Make
  • eBooks
  • Premium TS
  • Design service
  • Product Customization
  • Contract Manufacturing

STANDARD

  • mikroBUS™
  • mikroSDK
  • SiBRAIN
  • DISCON

Prodavnica za inostrano tržište

Nalazite se na prodavnici za inostrano tržište. Da li želite da Vas odvedemo na prodavnicu koja je namenjena za Srbiju?

Prodavnica za inostrano tržište

Nalazite se na prodavnici za inostrano tržište. Da li želite da Vas odvedemo na prodavnicu koja je namenjena za Srbiju?

Daily product releases, special offers, and more

  • FOLLOW US:

  • instagram
  • linkedin
  • facebook
  • github
  • newsletter
  • youtube
  • twitter twitter

Join us

Pridruži nam se

Careers
Internship
Posao
Napravi Click
Praksa
Copyright© 2025 MikroElektronika d.o.o.

Privacy