Advertisement

C
C
C
hapter
hapter
hapter
4
4
4
PLC C
ommuniCations
In This Chapter...
Introduction ................................................................................................................. 4-2
PLC Communication Ports Specifications ................................................................... 4-3
LED Status Indicators ................................................................................................... 4-4
3 Steps to Using the CLICK PLC Communications ..................................................... 4-6
Typical Communication Applications .......................................................................... 4-7
W-1: USB Port Wiring ................................................................................................ 4-11
W-2: Com Port 2 (RS-232) Wiring ............................................................................. 4-12
W-3: Com Port 1 (Ethernet) Wiring .......................................................................... 4-16
W-4: Com Port 3 Wiring ............................................................................................ 4-18
C-1: USB Port Setup ................................................................................................... 4-19
C-2: Com Port 1 (Ethernet) Setup ............................................................................ 4-20
C-3: Wireless LAN (WLAN) Setup .............................................................................. 4-21
C-4: Bluetooth Setup ................................................................................................. 4-22
C-5: Com Port 2 Setup (Modbus RTU) ..................................................................... 4-23
C-6: Com Port 2 Setup (ASCII) .................................................................................. 4-24
C-7: Com Port 3 Setup (Modbus RTU) ..................................................................... 4-25
C-8: Com Port 3 Setup (ASCII) .................................................................................. 4-26
P-1: Modbus Slave (Server) Programming ............................................................... 4-27
P-2: Modbus Master Programming (Modbus RTU) ................................................. 4-31
P-3: Modbus Client (Modbus TCP) Programming ................................................... 4-36
P-4: ASCII Receive Programming .............................................................................. 4-42
P-5: ASCII Send Programming .................................................................................. 4-45

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CLICK PLUS PLC and is the answer not in the manual?

Questions and answers

Summary of Contents for Automation Direct CLICK PLUS PLC

  • Page 1: Table Of Contents

    hapter hapter hapter PLC C ommuniCations In This Chapter... Introduction ......................... 4-2 PLC Communication Ports Specifications ..............4-3 LED Status Indicators ....................4-4 3 Steps to Using the CLICK PLC Communications ............. 4-6 Typical Communication Applications ................4-7 W-1: USB Port Wiring ....................4-11 W-2: Com Port 2 (RS-232) Wiring ................
  • Page 2: Introduction

    (serial printers, serial text displays, etc.). It is also possible to network the CLICK PLUS PLC to other 3rd party PLCs and devices that have the ability to communicate using the Modbus RTU and TCP protocols.
  • Page 3: Plc Communication Ports Specifications

    Chapter 4: PLC Communications PLC Communication Ports Specifications The CLICK PLUS PLC units have several built-in communications ports, as shown below. C2-01CPU C2-02CPU C2-03CPU Bluetooth Bluetooth & WLAN & WLAN microUSB microUSB microUSB Ethernet Ethernet (Port 1) (Port 1) RS232...
  • Page 4: Led Status Indicators

    (SC60) is On. Pairing mode disabled. Power Failure RUN LED (Green) CPU Run Mode Initializing Blink Analog Module CPU Program Mode ERROR LED (RED) Self Diagnostic Error Self Diagnostic Blink Warning No Error CLICK PLUS PLC Hardware User Manual, 1st Edition, Rev. B – C2-USER-M...
  • Page 5 Communicating at 10Mbps or disconnected from the network DirectLogic Devices That Do Not Work With CLICK PLCs The CLICK PLUS PLC does not support K-sequence protocol, so the following DirectLogic devices do not work with the CLICK PLUS PLC: DV-1000...
  • Page 6: Steps To Using The Click Plc Communications

    Example: To connect a barcode reader that sends ASCII data to Com Port 2: Refer to these three reference page sections. W-2 C-6 Barcode Reader Com Port 2 CLICK PLUS PLC Hardware User Manual, 1st Edition, Rev. B – C2-USER-M...
  • Page 7: Typical Communication Applications

    C-more Micro DC power adapter, EA-MG-P1 or EA-MG-SP1, or another 24VDC power source. Color C-more Micro-Graphic panels must also be powered from a separate 24VDC source. CLICK PLUS PLC Hardware User Manual, 1st Edition, Rev. B – C2-USER-M...
  • Page 8 W-3 C-2 Modbus TCP Server (Slave) Devices ViewMarq Display GS1 Drive SR55 Soft Starter Other Devices Supporting Another CLICK Modbus TCP Server Mode Ethernet PLC GS3 Drive W-3 C-2 CLICK PLUS PLC Hardware User Manual, 1st Edition, Rev. B – C2-USER-M...
  • Page 9 Devices that RECEIVE ASCII messages Other Devices Supporting Modbus RTU Other devices Slave Mode that can receive Serial Text ASCII data. Another CLICK PLC Display Serial Printer W-2 C-6 W-2 C-5 CLICK PLUS PLC Hardware User Manual, 1st Edition, Rev. B – C2-USER-M...
  • Page 10 Supporting Modbus RTU Slave Mode Other devices that can receive Serial Text ASCII data. SOLO Temperature Another CLICK PLC Display Serial Printer Controller W-4 C-8 W-4 C-7 4-10 CLICK PLUS PLC Hardware User Manual, 1st Edition, Rev. B – C2-USER-M...
  • Page 11: W-1: Usb Port Wiring

    Modbus Server/Slave over Port 1, Port 2, and Port 3 software is disabled • Option Slot module can be identified in software CLICK Plus PC with USB A Port USB Cable ADC Part # USB-CBL-AMICB6 CLICK PLUS PLC Hardware User Manual, 1st Edition, Rev. B – C2-USER-M 4-11...
  • Page 12: W-2: Com Port 2 (Rs-232) Wiring

    NOTE: Com port 2 can provide 5VDC; however, the 5VDC power can be used only for the C-more Micro- Graphic panel. AutomationDirect does not guarantee that the CLICK PLUS PLC will work correctly when any other device uses 5VDC from these Com ports. Please also remember these Com ports can provide enough power only for one C-more Micro-Graphic panel.
  • Page 13 CLICK PLUS PLC You can use cable D0-CBL. In this configuration, one of the CLICK/CLICK PLUS PLC units needs to be the network master and the other is the network slave. Connect the D0-CBL on Com Port 2 on the master PLC unit side.
  • Page 14 The recommended cables to connect the FA-ISOCON to other devices: ports on other devices • Belden 8103 for the RS-422 • Belden 9842 for 2-wire RS-485 • Belden 9843 for 4-wire RS-485 4-14 CLICK PLUS PLC Hardware User Manual, 1st Edition, Rev. B – C2-USER-M...
  • Page 15 You can make your own cable. However, we offer two products that make your wiring much easier: 1. ZIPLink feed-through module and cable CLICK PLC ZL-RTB-RJ12 ZL-RJ12-CBL-2 2. ZIPLink pig-tail cable CLICK PLC Pigtail ZL-RJ12-CBL-2P CLICK PLUS PLC Hardware User Manual, 1st Edition, Rev. B – C2-USER-M 4-15...
  • Page 16: W-3: Com Port 1 (Ethernet) Wiring

    Case 1: Connect Com Port 1 to a device that supports the Modbus TCP protocol directly such as a PC. In this illustration a PLC unit is connected directly to a PC. 4-16 CLICK PLUS PLC Hardware User Manual, 1st Edition, Rev. B – C2-USER-M...
  • Page 17 NOTE: Com Port 1 can communicate with up to 3 clients (masters). If a client attempts to establish communication with Com Port 1 while it is communicating with 3 clients, the CLICK PLUS PLC unit replies with an error to the fourth client.
  • Page 18: W-4: Com Port 3 Wiring

    NOTE: The resistance of the termination resistors needs to match the impedance of the communication cable. NOTE: Use a repeater if connecting more than 32 slaves to Port 3. 4-18 CLICK PLUS PLC Hardware User Manual, 1st Edition, Rev. B – C2-USER-M...
  • Page 19: C-1: Usb Port Setup

    To connect via USB port, click Connect in the PLC menu, then select USB as the port type. Select the COM port assigned to the USB Serial Device. All other parameters can be left at their default settings. CLICK PLUS PLC Hardware User Manual, 1st Edition, Rev. B – C2-USER-M 4-19...
  • Page 20: C-2: Com Port 1 (Ethernet) Setup

    Details help. NOTE: The communication port settings are saved in the project file. The project must be transferred to the CLICK PLUS PLC in order for any port setting changes to take effect. 4-20 CLICK PLUS PLC Hardware User Manual, 1st Edition, Rev. B – C2-USER-M...
  • Page 21: C-3: Wireless Lan (Wlan) Setup

    NOTE: The communication port settings are saved in the project file. The project must be transferred to the CLICK PLUS PLC in order for any port setting changes to take effect. CLICK PLUS PLC Hardware User Manual, 1st Edition, Rev. B – C2-USER-M...
  • Page 22: C-4: Bluetooth Setup

    The process for Bluetooth connection and WLAN provisioning is discussed in Chapter 1, Getting Started. For further information, please see the Bluetooth help topic in the CLICK programming software. 4-22 CLICK PLUS PLC Hardware User Manual, 1st Edition, Rev. B – C2-USER-M...
  • Page 23: C-5: Com Port 2 Setup (Modbus Rtu)

    TIP : The communication port settings are saved in the project file. The project must be transferred to the CLICK PLUS PLC in order for any port setting changes to take effect. CLICK PLUS PLC Hardware User Manual, 1st Edition, Rev. B – C2-USER-M...
  • Page 24: C-6: Com Port 2 Setup (Ascii)

    TIP: The communication port settings are saved in the project file. The project must be transferred to the CLICK PLUS PLC in order for any port setting changes to take effect. 4-24 CLICK PLUS PLC Hardware User Manual, 1st Edition, Rev. B – C2-USER-M...
  • Page 25: C-7: Com Port 3 Setup (Modbus Rtu)

    TIP: The communication port settings are saved in the project file. The project must be transferred to the CLICK PLUS PLC in order for any port setting changes to take effect. CLICK PLUS PLC Hardware User Manual, 1st Edition, Rev. B – C2-USER-M...
  • Page 26: C-8: Com Port 3 Setup (Ascii)

    Details online help. TIP: The communication port settings are saved in the project file. The project must be transferred to the CLICK PLUS PLC in order for any port setting changes to take effect. 4-26 CLICK PLUS PLC Hardware User Manual, 1st Edition, Rev. B – C2-USER-M...
  • Page 27: P-1: Modbus Slave (Server) Programming

    NOTE: The Modbus master can communicate with the Modbus slave CLICK PLUS PLC without any ladder program. However, output points on the Modbus slave CLICK PLUS PLC cannot be turned on if the PLC is not in the Run mode. Because of this, we recommend having at least one End instruction and to put the PLC in Run mode.
  • Page 28 In this situation, you may want the Modbus slaves to take an action. For instance, you may want to shut down the outputs on the slave CLICK PLUS PLC when the communication with the Modbus master is lost. We offer an easy method to accomplish this.
  • Page 29 This means the network master in the Modbus network can access any memory address in the slave CLICK PLUS PLC. The best way to check which Modbus address is assigned to a particular CLICK memory address is to use the CLICK programming software.
  • Page 30 Chapter 4: PLC Communications Exception Response (Exception Code) When the slave CLICK PLUS PLC receives a request from the Modbus master that it cannot respond to, the slave CLICK PLUS PLC sends an exception response to the Modbus master. The CLICK PLUS PLC supports the following Exception Responses.
  • Page 31: P-2: Modbus Master Programming (Modbus Rtu)

    P-2: Modbus Master Programming (Modbus RTU) Instructions The CLICK PLUS PLC has two instructions to exchange data with external Modbus devices through the com ports; the Receive and Send instructions. • Receive instruction: Read data from an external Modbus device.
  • Page 32 * Errors that will cause SC101 or SC103 error flag to turn on: • Parity Error • Frame Error • Time Out • CRC Error • Modbus Exception Response 4-32 CLICK PLUS PLC Hardware User Manual, 1st Edition, Rev. B – C2-USER-M...
  • Page 33 MODBUS Slave #1 MODBUS Slave #2 1. Execute the Receive instruction. 3. Execute the Receive instruction. 2. Execute the Send instruction. 4. Execute the Send instruction. Continue this cycle. CLICK PLUS PLC Hardware User Manual, 1st Edition, Rev. B – C2-USER-M 4-33...
  • Page 34 Chapter 4: PLC Communications Example Program: Interlocking with Two Slaves (Continued) 4-34 CLICK PLUS PLC Hardware User Manual, 1st Edition, Rev. B – C2-USER-M...
  • Page 35 Chapter 4: PLC Communications Example Program: Interlocking with Two Slaves (Continued) CLICK PLUS PLC Hardware User Manual, 1st Edition, Rev. B – C2-USER-M 4-35...
  • Page 36: P-3: Modbus Client (Modbus Tcp) Programming

    Double click Receive or Send in the Instruction List to use it in the ladder program. Select Com Port 1 that you are going to use. Select Com Port 1 4-36 CLICK PLUS PLC Hardware User Manual, 1st Edition, Rev. B – C2-USER-M...
  • Page 37 For the explanation of each setup parameter, please click the Help button on the bottom right. Click the Help button to get detailed information on this setup window. CLICK PLUS PLC Hardware User Manual, 1st Edition, Rev. B – C2-USER-M 4-37...
  • Page 38 Chapter 4: PLC Communications Com Port Status Indicators The CLICK PLUS PLC has the following System Control Relays to indicate the status of Com Port 1 and the WLAN port. System Control Relays Address Nickname Description SC80 _WLAN_Ready_Flag ON when WLAN is Ready, does not indicate Busy Status...
  • Page 39 2. Execute the Send instruction. Continue these steps. Continue these steps. NOTE: Port 1 can establish the connection with up to 4 servers at the same time. CLICK PLUS PLC Hardware User Manual, 1st Edition, Rev. B – C2-USER-M 4-39...
  • Page 40 Chapter 4: PLC Communications Example Program: Interlocking with a Server (Continued) 4-40 CLICK PLUS PLC Hardware User Manual, 1st Edition, Rev. B – C2-USER-M...
  • Page 41 Chapter 4: PLC Communications Example Program: Interlocking with a Server (Continued) CLICK PLUS PLC Hardware User Manual, 1st Edition, Rev. B – C2-USER-M 4-41...
  • Page 42: P-4: Ascii Receive Programming

    Com Port is used by another Receive and/or Send instruction in the ladder program. You cannot change the Protocol setup until you delete those instructions. Grayed out 4-42 CLICK PLUS PLC Hardware User Manual, 1st Edition, Rev. B – C2-USER-M...
  • Page 43 ASCII message and it includes the termination character (CR = Carriage Return in this example), C2 is turned on and the received ASCII message is copied to TXT1 address. CLICK PLUS PLC Hardware User Manual, 1st Edition, Rev. B – C2-USER-M 4-43...
  • Page 44 ASCII characters into the equivalent numerical data and copies into data register DF1. Use Pack Mode TXT1 TXT2 TXT3 Converted & Copied TXT4 1.23 TXT5 TXT6 4-44 CLICK PLUS PLC Hardware User Manual, 1st Edition, Rev. B – C2-USER-M...
  • Page 45: P-5: Ascii Send Programming

    Com Port is used by another Receive and/or Send instruction the ladder program. You cannot change the Protocol setup until you delete those instructions. Grayed out CLICK PLUS PLC Hardware User Manual, 1st Edition, Rev. B – C2-USER-M 4-45...
  • Page 46 ASCII message ‘ABC’ and the termination character (CR = Carriage Return in this example). C2 is turned on when sending the ASCII message is completed. 4-46 CLICK PLUS PLC Hardware User Manual, 1st Edition, Rev. B – C2-USER-M...

This manual is also suitable for:

C2-01cpuC2-02cpuC2-03cpu

Table of Contents