Home
        Chapter 4 - PLC Communications:Ch 4_DL06
         Contents
1.                                                            6 pin RU12 Phone Port 1 Pin Descriptions 6 pin RJ12 Phone Port 2 Pin Descriptions  Type Jack Power     connection  GND  Type Jack Power     connection  GND   Power     connection Power     connection  4   Receive data  RS 232    Receive data  RS 232   Transmit data  RS 232  Transmit data  RS 232   J No connection ea Request to send  Power     connection  GND  Power     connection  GND                    NOTE  Both Com ports can provide 5 VDC  however  the 5 VDC power can be used only for the C more  Micro Graphic panel  AutomationDirect does not guarantee that the CLICK PLC will work correctly when any  other device uses 5 VDC from these Com ports  Please also remember these Com ports can provide enough  power only for one C more Micro Graphic panel  If you are going to connect a C more Micro Graphic panel  to each Com port  2 panels in total   you must obtain power from a separate 5 VDC power source for the  second C more Micro Graphic panel     Wiring Strategy    The following pages cover five case scenarios for connecting com ports 1 or 2 to     e Case 1  Connect Com Port 1 or 2 to a PC   e Case 2  Connect Com Port 1 or 2 to another CLICK PLC   e Case 3  Connect Com Port 2 to a C more or C more Micro Graphic panel     e Case 4  Connect Com Port 2 to an RS 232 port on another device     e Case 5  Connect Com Port 3 to an RS 422 or RS485 port on another device s      1 l 2    CLICK PLC Hardware User Manual  5th Editi
2.               2  WM  a0   k am oo A   Bm  ef tso a  imal    online  Select the Function   Navigation cc  ee a ee          tab  then double click  Com Port 3 Setup           Prora Function   PLO       Sh CPU Configuration     BB System Configuration  AY Com Portl Setup   2P Gom Port  Setup   EP Gom Port3 Setup  ak  Scan Time   a   a   Ae a       Find the Basic Configuration section in the dialog box and set up the parameters to match the  device connected to Port 3     Com Port Setup Details    Port     atts Protocol    ASCII  Basic Configuration 7 Wiring Details Select ASCII   Node Address  1 247    l               Port3 RS 485  Non isolation     Set up the  parameters to match  the device connected    t  fi  to Port 3  Soe  Communication Data  bit    a    Baud Rate  bps   138400          tu   Odd 3 pin Removable Terminal  Parity      Black                   Advanced Configuration             Click the Help button  for Com Port Setup    ret ES Details online help                       IMPORTANT  The communication port settings are saved in the project file  The project must be transferred  to the CLICK PLC in order for any port setting changes to take effect        CLICK PLC Hardware User Manual  5th Edition     CO USER M l H 2 5       Chapter 4  PLC Communications    P 1  Modbus Slave  Server  Programming  Ladder Program    To use a CLICK PLC as a Modbus slave  server   you don   t need any special ladder program   Set up the communication port properly and you just need an 
3.           DV 1000CBL  serial cable    Port 1 or 2    V1 l L l CLICK PLC Hardware User Manual  5th Edition     C0 USER M    Chapter 4  PLC Communications    Case 4  Connect Com Port 1 or 2 to an RS 232 port on another device  You need to cross the RTD and TXD signal lines and connect OV on both com ports     CLICK Com  Port 1 or 2    RS 232 Port on  Another Device  OV   RXD    i 4    You can make your own cable  However  we offer two products that make your wiring much    easier     1  ZIPLink feed through module and cable        ZL RTB RJ12           RUN  RUN  ERR sTOP  RTI        ZL RJ12 CBL 2    eve         CLICK  Koyo       pwr RUN  RUN    ERR W STOP  PORTI                  ZL RJ12 CBL 2P    CLICK PLC Hardware User Manual  5th Edition     CO USER M   7 l 5    Chapter 4  PLC Communications    Case 5  Connect Com Port 1 or 2 to an RS 422 or RS485 port on another  device s    You need a RS 232 to RS 422 485 converter in this case  We recommend our FA ISOCON    as the converter           _       C0 00DD1 D    Cable included  with FA ISOCON       Connect to RS 422 RS 485  ports on other devices    The recommended cables to connect the FA ISOCON to other devices   e Belden 8103 for the RS 422  e Belden 9842 for 2 wire RS 485  e Belden 9843 for 4 wire RS 485    H l 6    CLICK PLC Hardware User Manual  5th Edition     C0 USER M    Chapter 4  PLC Communications    W 2  Com Port 1  Ethernet  Wiring    Com Port 1  Ehternet  supports 10 100 Base T Ethernet with an RJ 45 syle connector
4.       Each register is reset to zero automatically when the com port receives a message from the   Modbus master  Then its value increments by 1 per second until the com port receives another   message from the Modbus master  If one of these registers has 60 as its value  it means the com   port has not received any message from the Modbus master for 60 seconds  You can use this   info to shut down the outputs on the slave CLICK PLC  Here is an example program   _Forti_Mo_co    Reset the outputs Y001 to YOO6   mim_ Time    m E041 m gg E Yo01 Erone  RST             END      This contact is on when com port 1    has not received any message from  the Modbus master for 60 seconds           H2 6   CLICK PLC Hardware User Manual  5th Edition     CO USER M    Chapter 4  PLC Communications  eee ee      Modbus Addressing  Each of the memory addresses in the CLICK  X1  DS1  etc   has a unique Modbus address   This means the network master in the Modbus network can access any memory address in the  slave CLICK PLC  The best way to check which Modbus address is assigned to a particular  CLICK memory address is to use the CLICK programming software     Click the Program tab located in the Navigation window and double click Address Picker as  shown below     After the Address Picker window opens  check the option Display MODBUS Address on the  right bottom         f  CLICK Programming Software   NewProjec    i  Fie Edit View setup Program Instruction  ies an    am     FH ee  a Ba    i Nav
5.      Port 1 Pin Descriptions  Transmit Data      Transmit Data      Receive data       Not connected   Not connected   Receive Data       No connection   No connection    8 pin RJ45 Phone  Type Jack                                                                                                                CO   N        OT  B G  PO       You can use both straight and cross over cables with Com Port 1   Wiring Strategy  e Case 1  Connect Com Port 1 to a device that supports Modbus TCP protocol directly    such as a PC     e Case 2  Connect Com Port 1 to other devices that support the Modbus TCP protocol  via a switch or hub     Case 1  Connect Com Port 1 to a device that supports the Modbus TCP  protocol directly such as a PC     In this illustration an Ethernet PLC unit is connected directly to a PC        CLICK PLC Hardware User Manual  5th Edition     CO USER M   H l 7    Chapter 4  PLC Communications    Case 2  Connect Com Port 1 to other devices that support the Modbus TCP  protocol via a switch or hub          i CLICK 3 CO 11ARE D My  Koyo    ron RUN   e g  ran stor  Pom       Wh a a   a           aN g         s    J             NOTE  Com Port 1 can communicate with any number of servers  slaves  using the Receive and or Send  instructions  However  Com Port 1 can communicate with up to 4 servers at tthe same time  If the ladder  program has sent a message to 4 different servers and tries to send a message to another server  the CLICK  PLC unit disconnects the first se
6.     PLC CHAPTER    COMMUNICATIONS          In This Chapter       MOU CO oe oso ace tenet rates seareese eee E E E E E E 4 2  PLC Communication Ports Specifications              cceeceescceeceeeseceesceeees 4 3  LED Satus Gl CAL ONS  eener nn E NEE EE EE E 4 5  3 Steps to Using the CLICK PLC Communications    4 7  Typical Communications Applications          essesseessessesssessesseessessesssess 4   8  W 1  Com Port 1  amp  2  RS 232  Wiring      sessessesssssessessessessessessssses 4 12  WZ Com Pon o WINO seere NEEE EE 4 17  We Con POr 3 WINING cists te cece the coset ce secon reoicen entepetacntenesebenseeanen 4   20  C 1  Com Port 1  RS 232  Setup     eseseesessessessessessessessessessessessesss 4 21  C 2  Com Port 1  Ethernet  STUD vascnincecboscaroscnessensetncnscdvanatioweascnmiens 4   22  C 3  Com Port 2 Setup  Modbus RTU     essesseessesssessesssrssessesssesses 4 23  C 4  Com Port 2 Setup  ASCII  acess eecceres cemnzoneseepenerdeeatcceuseeneapeaed 4   24  C 5  Com Port 3 Setup  Modbus RLU  se cacee steerer cece onece enact ecste caten  4 25  C 6  Com Port 3 Setup  ASCII  Programming                 cscceeeeeeeeees 4 26  P 1  Modbus Slave  Server  PrograMmming               csssscsssscssseeeseoes 4 27  P 2  Modbus Master Programming  Modbus RTVU                 cceeceeee 4   30  P 3  Modbus Client  Modbus TCP  Programming                scceeeee 4 32  P 4  ASCII Receive PrograMmMingG                ccssceecceeectsceseetscesecesceeeees 4   36    P 5  ASCII Send Programmi
7.    ims The Comm Port is not receiving data        Port 1 2   amp  3 LED    Status Indicators Standard and Analog PLCs       PORT1  TX          RX                     The Comm Port is sending data      The Comm Port is not sending data           Tx2       RO z    PoRT2 M    RS   PORT3   FZ    TX3     RX3 O   L     DirectLogic Devices That Do Not Work With CLICK PLCs  The CLICK PLC does not support K sequence protocol  so the following DirectLogic devices  do not work with the CLICK PLC                                                  The Comm Port is receiving data   0j The Comm Port is not receiving data                           D4 HPP 1    CLICK PLC Hardware User Manual  5th Edition     CO USER M    a 5    Chapter 4  PLC Communications       LED Status Indicators  continued     Port 1  amp  2 LED  Status Indicators    RL  RUN   Ethernet Basic PLCs  Connected to the network eerie g ae  PISNE LNK ACT i         i pe         i C0 10ARE D    CLICK b    ETHER  0J Disconnected from the network    NET  100MBIT    PORT2       i   TxX2   Communicating at 100Mbps no    Communicating at 10Mbps or RS 232  disconnected from the network             The Comm Port is sending data       The Comm Port is not sending data                 The Comm Port is receiving data   0  The Comm Port is not receiving data        Port 1 2   amp  3 LED  Status Indicators    Connected to the network    Gee  Blink Ethernet Standard PLCs  0j Disconnected from the network H  ERR   STOP                 PORT1     
8.   PLC   O  Com Port 2 Setup   f CPU Configuration Hoa I l   GB System Configuration   AF Gom Portl Setup  2Y Gom Port  Setup    7 P Com Port3 Setup  ak  Scan Time    eee  See am a o am                                  The Com Port Setup Details dialog box will come into view as shown below     Com Port Setup Details    Port  M    Protocol    asci vi    Basic Configuration wiring Details Select ASCII              jod ddress  1 247      Set up the a   Port2 R5 232    Non isolation   paramers to match a     6 pin Female modular  the device connected party   Odd       R12 phone jack     to Port 2  Stop Bit   1  Communication Data  bit    a                         Advanced Configuration       Make any    adjustments here Click the Help button    to eliminate com   for Com Port Setup  errors  RTS OFF Delay  0 S000ms    o   Details online help           RTS ON Delay  0 S000ms     s                   Find the Basic Configuration section in the dialog box and set up the parameters to match the  device connected to Port 2  The dialog box also has a section named Advanced Configuration   You may need to make adjustments to these parameters to overcome communication errors  which may occur     IMPORTANT  The communication port settings are saved in the project file  The project must be transferred  to the CLICK PLC in order for any port setting changes to take effect        CLICK PLC Hardware User Manual  5th Edition     CO USER M f H 2 3    Chapter 4  PLC Communications    C 5  C 5  Com
9.  1     System Control Relays  Address Nickname Description  S C90   Port_1_Ready_Flag ON when Port 1 is ready    091  _Port_1_Error_Flag ON when Port 1 has a communication error    C92  _Port_1_Clients_Limit ON when Port 1 is communicationg with 3 clients    C93   _Port_1_IP Resolved ON when Port 1 obtains an IP address    C94   Port_1_Link_Flag ON when Port 1 is connected to an Ethernet netwrok    C95  _Port_1_100MBIT_Flag ON when Port 1 is communicationg at 100Mbps                                CLICK PLC Hardware User Manual  5th Edition     CO USER M f H 3 3    Chapter 4  PLC Communications    E    Example Program    The ladder program to use these Receive and Send instructions are easy  You just need one NO   Normally Open  contact instruction to check if the com port is ready to receive or send data     _FPot_1_Ready_Flag  E scs40       _                When Com Port 1 is ready  the Receive       instruction is executed  This also  applies to the Send instruction        Interlocking    These instructions keep receiving or sending data when the enable input is on  If you want  to use more than one Receive and or Send instruction  you need to be sure only one of the  instructions is enabled at any point during the operation  The technique to execute more than  one Receive and or Send instruction in order is called    Interlocking  Here is an example of  interlocking     When this sample program is executed  the Receive and Send instructions are executed  alternatively    
10.  100   3 Receive Data      Protocol  Modbus TCP 4 Not connected  oo F Not connected  6 Receive Data      7 Not connected  8 Not connected  Com Port 2 Specifications Default Port 2 mae  Use  Serial Saat 6 pin RJ12 Phone Port 2 Pin Descriptions  Physical  6 pin  RJ12  RS 232 Type Jack oe   ener ee   Communication speed  baud   2400  4800     9600  19200  38400  57600  115200 J Receive data  RS 232   Parity  odd  even  none Transmit data  RS 232   Station Address  1 to 247   Request to send  ASG 8 bits  Modbus RTU  or 7  8 Power     connection  GND   Protocol  Modbus RTU   master slave  or ASCII in out  Com Port 3 Specifications Default  a Port 3   me  Use  Serial Communication Port 3 Pin Descriptions  Physical  3 pin  RS 485 3 Pin   Signal A  RS 485   Communication speed  baud   2400  4800  Terminal Block    mi Signal B  RS 485     9600  19200  38400  57600  115200          Logic Ground 0 V     Data length  8 bits  Modbus RTU  or 7  8    bits   ASCII  8 bits    top bit  1 2    Protocol  Modbus RTU Modbus  master slave  or ASCII in out RTU          H L  CLICK PLC Hardware User Manual  5th Edition     C0 USER M    Chapter 4  PLC Communications    LED Status Indicators  LED Status Indicators    There are LED status indicators located to the left of each communication port to indicate port  activity or communications     Port 1  amp  2 LED Basic PLC  Status Indicators       The Comm Port is sending data     ims The Comm Port is not sending data     The Comm Port is receiving data  
11.  C100 is turned ON immediately  when the CLICK PLC starts    _Port_1_Ready_Flag executing the Receive instruction     E Ssc90       Executed when E C100  C100 is OFF  SET      _Port_1_Ready_Flag  B sc90    Executed when  C100 is ON  C100    RST      END      C100 is turned OFF immediately S  when the CLICK PLC starts  executing the Send instruction        H 3 L  CLICK PLC Hardware User Manual  5th Edition     C0 USER M    Chapter 4  PLC Communications    P 4   P 4  ASCII Receive Programming    Instruction  The Receive instruction allows the CLICK PLC to read ASCII message from an external device   To use this instruction  double click Receive in the Instruction List window as shown below     Double click Receive in the  Instruction List to use it in the  ladder program              Bx Instruction List            A pe    ee woe as                   Inetruction       Contact    Contact  NO     Contact  HC   Edge Contact    Receive  Send         Select the Com Port that you are going to use and confirm the Protocol is ASCII        Select the Com       Port to use   Com Port  Port2 iw  Protocol needs to ey eee    be ASCII  fo Data Setup       n      If the Protocol is not ASCH  click the Com Port Setup button to open the Com Port Setup  Details window and change the Protocol to ASCII  If the Protocol selection is grayed out as  shown below  it means the Com Port is used by another Receive and or Send instruction in  the ladder program  You cannot change the Protocol setup until y
12.  Disable  DSi4 rw  i rr 400014  03 06 16  No Disable  XD  ipsis rw linr 400015  03 06 16  No bist Check the option  yp  1D516 Rw Ll ir 400016  03 06 16  No Disati    en f0517 0s Rw 400017  03 06 16  Mo vist  Display Modbus  D518 rw E ir 400018  03 06 16  Mo fisat Address   D519 rw iT 400019  03 06 16  No Disa  J ps20 Rw Oir 400020  03 06 16  No Disable 4    4   27    Chapter 4  PLC Communications    Exception Response  Exception Code     When the slave CLICK PLC receives a request from the Modbus master that it cannot respond  to  the slave CLICK PLC sends an exception response to the Modbus master  The CLICK  PLC supports the following Exception Responses     Exception Response  Exception Code   Name Details of Exception Response    Illegal Function ae PLC does not support the function code received from the MODBUS    Illegal Data Address The MODBUS master tried to access to an invalid address    The data length is zero or exceeds the maximum size    Illegal Data Value The data for Write Single Coil is not FFOOh  ON  or 0000h  OFF     The PLC mode change request from the MODBUS master is not valid   Password is locked     When the PLC mode switch is in STOP position  the MODBUS master  Slave Device Failure requested to switch to RUN mode     When the PLC mode switch is in RUN position  the MODBUS master requested  to switch to the Firmware Update mode                                         H2 8   CLICK PLC Hardware User Manual  5th Edition     C0 USER M    Chapter 4  PLC Co
13.  Port 3 Setup  Modbus RTU     Before you set up the communication ports you must connect the PC with the CLICK  programming software to the CLICK PLC Port 1 using a D2 DSCBL or EA MG PGM CBL  programming cable  Refer to Chapter 1  Getting Started for step by step instructions for this  connection  Once the PC and programming software are online with the CLICK PLC  click  the Function tab located in the Navigation window and double click Com Port 3 Setup as  shown below             i CLICK Programming Software   NewProject5 ckp    M  Cy  Fie Edit View Setup Program Instruction PLC Monitor  jO do   X me OO   Rm  e tat      m m    one  Bo Naia    J  S  a Cd  Progen Function   PLO a 7      CPU Configuration Ha    l    i System Configuration                         Select the Function  tab  then double click  Com Port 3 Setup                       ly Gam Portl Setup a  27 Com Port2 Setup  a EF Com Port Setup  ak  Scan Time a  le   en     yia    The Com Port Setup Details dialog box will come into view as shown below     Com Port Setup Details    Protocol    Modbus    Basic Configuration Wiring Details Select Modbus   Node Address  1 247     1          Set up the  parameters to match Baud Rate  bps     38400  other devices in the Parity  odd 3 pin Removable Terminal    i Block  same network  Stop Bit    1       Port3 RS 485  Non isolation                    Advanced Configuration       Time out Setting   500 ms          Make any    z Character Time out  2 1000ms    2    adjustments
14.  here RTS ON Delay  0 5000ms    8 Click the Help button          to eliminate com z  errors  RTS OFF Delay  0 S000ms  e    Response Delay Time  0 SO00ms     0                for Com Port Setup  Details online help                 Find the Basic Configuration section in the dialog box and set up the parameters to match other  devices in the same network  The dialog box also has a section named Advanced Configuration   You may need to make adjustments to these parameters to overcome communication errors  which may occur     IMPORTANT  The communication port settings are saved in the project file  The project must be transferred  to the CLICK PLC in order for any port setting changes to take effect        H2 L  l CLICK PLC Hardware User Manual  5th Edition     C0 USER M    Chapter 4  PLC Communications    C 6  C 6  Com Port 3 Setup  ASCII     Before you set up the communication ports you must connect the PC with the CLICK  programming software to the CLICK PLC Port 1 using a D2 DSCBL or EA MG PGM CBL  programming cable  Refer to Chapter 1  Getting Started for step by step instructions for this  connection  Once the PC and programming software are online with the CLICK PLC  click  the Function tab located in the Navigation window and double click Com Port 3 Setup as  shown below     The Com Port Setup Details dialog box will come into view as shown below              CLICK Programming Software   NewProject5 ckp    M   Ci  Fie Edit View Setup Program Instruction PLC Monitor       
15.  the Help button  for Com Port Setup  Details online help     RTS ON Delay  0 5000ms     3             Od  49  eier  lt        Response Delay Time  0 SO00ms     0       Find the Basic Configuration section in the dialog box and set up the parameters to match other  devices in the same network  The dialog box also has a section named Advanced Configuration   You may need to make adjustments to these parameters to overcome communication errors  which may occur     IMPORTANT  The communication port settings are saved in the project file  The project must be transferred  to the CLICK PLC in order for any port setting changes to take effect     u_22 CLICK PLC Hardware User Manual  5th Edition     CO USER M       Chapter 4  PLC Communications    C 4  C 4  Com Port 2 Setup  ASCII     Before you set up the communication ports you must connect the PC with the CLICK  programming software to the CLICK PLC Port 1 using a D2 DSCBL or EA MG PGM CBL  programming cable  Refer to Chapter 1  Getting Started for step by step instructions for this  connection  Once the PC and programming software are online with the CLICK PLC  click  the Function tab located in the Navigation window and double click Com Port 2 Setup as  shown below                   CLICK Programming Software   NewProject5 ckp    M     i  Fie Edit View Setup Program Instruction PLC Monitor  oga saha   an ve a    PA e  a    E Navigation     an   m     Onire  Select the Function j  a a ae  tab  then double click TFroerat Function 
16. 6 ckp    Main  Gy  File Edit View Setup Program jainai  logm laa  x amj   me eiria        a A x     Progra  Function    PLO      f        A j  E BE CPU Configuration __     Selecct the Function tab    tit System Configuration  then double click Com L LF Com Port  Setup    Prort 1 Setup  29 Com Port  Setup 2     i  F Com Port3 Setup    9 Scan Time ks  E       The Com Port Setup Details dialog box will come into view as shown below                                          Com Port Setup Details    Port   Porti v  Protocol  Modbus  Network Address Configuration Wiring Details       Obtain Address From DHCP  Use the following IP Address Port1 Ethernet  Non isolation   i oY T              Setup the parameters to  match your application                 8 pin female modular  RJ45        07   78 E TN          Oe De Boe SB           Configuration as Cent  Master  1  Timeout 0 30000ms   1000    ms    Retries 0 10   2 8 Click the Help  Server Inactivity Tmeout 0 3600sec   60    sec hote  button for online  Configuraion as Server  Slave  THa part aeria ata Com Port Setup  TCP Port Number 0 65535   502   Details help          Maximum Concurrent Sessions   Client Inactivity Timeout 0 3600sec               NOTE  The communication port settings are saved in the project file  The project must be transferred to the  CLICK PLC in order for any port setting changes to take effect        CLICK PLC Hardware User Manual  5th Edition     C0 USER M l H 2 l    Chapter 4  PLC Communications    C3 C 3  
17. C 1  Com Port 1  RS 232  Setup    Com Port 1 has a fixed setup as shown below  This com port works as a Modbus RTU slave  only  If you want to connect an external device to this com port  please make sure the external  device can be a Modbus RTU master and that the com port setup matches the following setup     Com Port Setup Details    Port     Sida a       Basic Configuration  Node Address  1 247     Baud Rate  aps     Parity     Protocol    Modbus    Wiring Details  L  Portl BS 232  Non isolation   Se 400    6 pin Female modular     Sate  RI12 phone jack     Stop Bit  1  Communication Daka  bith   amp     advanced Configuration    Time out Setting    Character Time out  7 1000rms    BTS ON Delay  0 S000ms1   RTS OFF Delay  0 S000ms      Response Delay Time  0 SO00m s         H2 0 i CLICK PLC Hardware User Manual  5th Edition     C0 USER M    Chapter 4  PLC Communications    C 2  C 2  Com Port 1  Ethernet  Setup  Wiring Strategy    Before you set up this communication port  you must connect a PC loaded with CLICK  programming software to the CLICK PLC Port 1 using an Ethernet cable or to the CLICK  PLC Port 2 using a D2 DSCBL or EA MG PGM CBL programming cable  Refer to  Chapter 1  Getting Started for step by step instructions on this connection  Once the PC and  programming software are online with the CLICK PLC  select the Function tab located in the    Navigation window and double click    Com Port 1 Setup    as shown below  4     Gi cuc Programming Software   NewProject
18. Com Port 2 Setup  Modbus RTU     Before you set up the communication ports you must connect the PC with the CLICK  programming software to the CLICK PLC Port 1 using a D2 DSCBL or EA MG PGM CBL  programming cable  Refer to Chapter 1  Getting Started for step by step instructions for this  connection  Once the PC and programming software are online with the CLICK PLC  click  the Function tab located in the Navigation window and double click Com Port 2 Setup as  shown below         i CLICK Programming Software   NewProject5 ckp    M    i  Fie Edit View Setup Program Instruction PLC Monitor     oo tala Oo   xam vea             pme  a a   ma     nine  m nwn      a l           Select the Function tab                        then double click Com    Progra Function   PLO  Port 2 Setup  3 38 CPU Configuration         BB System Configuration  F Com Portl Setup    ay Gam Port2 Setup  27 Gam Port3 Setup  ak  Scan Time    ee               Com Port Setup Details    Port  GETS     Protocol  Modbus    Basic Configuration Wiring Details Select Modbus                                   Node Address  1 247     1  Set up the Se aaeas   Port2 R5 232    Non isolation   parameters to match wots ie  al     lt    6 pin Femal dular    other devices in the Parity   Oda      eaea   same network  Stop Bit  1 v   Advanced Configuration  M  kean Time out Setting   500 ms  y       Character Time out  2 1000ms     z          adjustments here  to eliminate Com n  errors  RTS OFF Delay  0 S000ms     0    Click
19. End instruction in the ladder  program to put the PLC in Run mode     a    However  you can add any additional ladder program to let the slave CLICK PLC control  something by itself  For instance  you may want to shut down the outputs on the slave  server   CLICK PLC should it lose communication with the Modbus master  client      Note  The Modbus master can communicate with the Modbus slave CLICK PLC without any ladder program     However  output points on the Modbus slave CLICK 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     Lost Communication Situation    You may want to detect if there is something happening at the Modbus master side that  stops communication with the Modbus slaves  Or  the communication cable might have  been disconnected  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 PLC when the  communication with the Modbus master is lost  We offer an easy method to accomplish this     The CLICK keeps counting how long it has been since each com port received a message from  the Modbus master  and enters the time duration in the following system data registers     System Data Registers  System Data Register Nickname Range  SD41 _Porti_No_Comm_Time 0   32767  sec   SD51 _Port2_No_Comm_Time 0   32767  sec   SD61 _Port3_No_Comm_Time 0   32767  sec                 
20. LNK ACT         _ Se  Communicating at 100Mbps FIER t   marerena  C d      Communicating at 10Mbps or TURAL  Il CL  gt     disconnected from the network       PORT2   1x2     Rx2    RS 232           mm      The Comm Port is sending data       The Comm Port is not sending data     SONS SOAGNEROAR SU       RERE        The Comm Port is receiving data       The Comm Port is not receiving data        7 6 CLICK PLC Hardware User Manual  5th Edition     CO USER M    Chapter 4  PLC Communications    3 Steps to Using the CLICK PLC Communications    We offer an easy 3 step method for using the communication features of the CLICK PLC                  Com Port  Setup Pages    Programming  Pages    Use the table below to locate information on communications for your particular application   As you can see in the table  each step has subcategories  For each step  find the subcategory  description that best describes your application  Use the subcategory references  W x  C x   and P x   to find more information on these topics in this chapter  See the example below     The following pages show the devices that you may connect to the CLICK PLC Com ports  4    CLICK PLC Communications  Subcategory  Reference   W 1 Com port 1  amp  2  RS 232   W 2 Com port 1  Ethernet   W 3 Com port 3  RS 485   Com port 1  RS 232  setup  Com port 1  Ethernet  setup  Step 2 Com port 2 setup  Modbus RTU   Com Port Setup Com port 2 setup  ASCII   Com port 3 setup  Modbus RTU   Com port 3 setup  ASCII   Modbus Sla
21. Use  Serial Communication  Physical  3 pin  RS 485 3 Pin    Communication speed  baud   1200  2400  Terminal Block  4800  9600  19200  38400  57600  115200    Port 3             Parity  odd  even  none    Station Address  1 to 247    Data length  8 bits  Modbus RTU  or 7  8  bits   ASCII  LG    Stop bit  1 2    Protocol  Modbus RTU Modbus  master slave  or ASCII in out RTU                               Receive data  RS 232        Transmit data  RS 232        No connection             Power     connection  GND     Port 2 Pin Descriptions    Power     connection  GND        Power     connection       Receive data  RS 232        Transmit data  RS 232        Request to send             Power     connection  GND        Port 3 Pin Descriptions    Signal A  RS 485        Signal B  RS 485                 Logic Ground 0 V     CLICK PLC Hardware User Manual  5th Edition     CO USER M    7 a 3    Chapter 4  PLC Communications    PLC Communication Ports Specifications  continued     Ethernet Basic PLC Ethernet Standard PLC                            Com Port 1 Com Port 1  Com Port 2 4   Com Port 2  Com Port 3                                                                                                                                                                                                 Com Port 1 Specifications Port 1  Use  Programming and Ethernet Communication 8 ae ne r Transmit Data      Physical  8 pin  RJ45  Ethernet 22 2 Transmit Data      Communication Speed  Mbps   10
22. ations    SS S     Reader    System Data Register SD50 4  M    stores the number of received  SD50 3 characters for Port 2        TXT1 A  TXT2 B  TXT3 C    Example 2  Retrieve numerical data from the received ASCII message   When numerical data is included in the received ASCII message  you may want to retrieve    the numerical data and copy into a data register  The Copy instruction can be used for this  purpose     In this example  recetved ASCII message is stored in TXT1 to TXT6  This ASCII message  includes a numerical data    1 23    as ASCII characters from TXT3 to TXT6  The Copy  instruction converts those ASCII characters into the equivalent numerical data and copies into  data register DF1     cio       TXT1    A    TXT3 1 Converted  amp  Copied   TXT4 y H 13  TXT5 2   TXT6 3    CLICK PLC Hardware User Manual  5th Edition     CO USER M f H 3 7       Chapter 4  PLC Communications       P 5  ASCII Send Programming    Instruction  The Send instruction allows the CLICK PLC to send ASCII messages to an external device  To    use this instruction  double click Send in the Instruction List window as shown below          E  Bx Instruction List  x         Double click Send in the  Instruction List to use it in the       A        Aan E EOLO E ladder program   Rung Comments   Goil Areg       Oo    o Instruction List j    hetructiorn       End      Ill       Contact      Fi eT   Contact  Ha  i CEIVe   Contact  HC  Send   HH Edee Contact   ree    Select the Com Port that you are 
23. data between itself    and any connected slave device  There can only be one master on the network  When the CLICK PLC is the  master  it is easily identified  It will be the PLC in the network with the Send and or Receive instructions using  the Modbus protocol in its ladder logic program     H2 l CLICK PLC Hardware User Manual  5th Edition     C0 USER M    Chapter 4  PLC Communications    PLC Communication Ports Specifications    The CLICK PLC units have two or three built in communications ports     Basic PLC Standard and Analog PLCs      gt _      Com Port 1        Com Port 1          Com Port 2 Com Port 2    Com Port 3    Com Port 1 Specifications Port 1  Use  Programming Port 6 pin RJ12 Phone  Physical  6 pin  RJ12  RS 232 Type Jack    Port 1 Pin Descriptions  Power     connection  GND   Power     connection             Communication speed  baud   38400  fixed   Parity  Odd   Station Address  1   Data length  8 bits   Stop bit  1   Protocol  Modbus RTU  slave only                                         6                   Com Port 2 Specifications Default Port 2  Use  Serial Communication 6 pin RJ12 Phone  Physical  6 pin  RJ12  RS 232 Type Jack    Communication speed nee 1200  2400   4800  9600  19200  38400  57600  115200    Parity  odd  even  none  Station Address  1 to 247    Data on 8 bits  Modbus RTU  or 7  8  bits  ASCII     Stop bit  1 2    Protocol  Modbus RTU   master slave  or ASCII in out                                           Com Port 3 Specifications  
24. er 4  PLC Communications    P 3  p 3  Modbus Client  Modbus TCP  Programming    Instructions  The CLICK PLC has two instructions to exchange data with Modbus servers through the Com    Port 1  the Receive and Send instructions   e Receive instruction  Read data from external Modbus server   e Send instruction  Write data to external Modbus server s      To use these instructions  double click Receive or Send in the Instruction List window as    shown below        Instruction List          Double click Receive or Send    in the instruction List to use it          F w  te Al      fo th a in the ladder program   Rune Comments Coil Area  A Instruction List x      S B ins oe ion Lis fw  End  Instruction b PrE eRe     Contact    aii Receive  HH Contact  NO   sol Send     ae  Contact  NO   Edge Contact    Dene Ps etc eee os       Select Com Port 1 that you are going to use        Receive e   Select Com Port 1 ee a m  Protocol  MODBUS              Receiving Data Setup eT FT    U3 2    CLICK PLC Hardware User Manual  5th Edition     C0 USER M    Chapter 4  PLC Communications    When you open the Receive or Send instruction in the Modbus mode  their windows should  look like this  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        Com Port Status Indicators    The CLICK PLC has the following System Control Relays to indicate the status of  Com Port
25. figurable from the  programming software  Port 3 can be used as a Modbus RTU master or slave protocol device     or handle ASCII data In or Out     CLICK Ethernet Basic and Standard PLC units have one built in Ethernet communications  port and one RS 232 serial communication port  Additionally  Ethernet Standard PLC units  have an RS 485 port     The CLICK PLC can be networked to other CLICK PLCs  data input devices  barcode readers   weight scales  etc    and or data output devices  serial printers  serial text displays  etc    It is  also possible to network the CLICK PLC to other 3rd party PLCs and devices that have the  ability to communicate using the Modbus RTU protocol     The final part of the PLC Communications chapter contains explanations and examples of the  various ways the Send and Receive programming instructions can be used to perform Modbus  RTU protocol and ASCII data communications between devices     There are three different data addressing types that can be selected when using the Modbus  RTU protocol from the Send and Receive instructions  They are  CLICK addressing  Modbus  984 addressing  or Modbus HEX addressing  The CLICK addressing makes it convenient  to exchange data between CLICK PLCs  The other addressing choices are selected based on  the Modbus protocol addressing the networked devices are using  For details on the Modbus  protocol  visit www modbus org     NOTE  The Modbus RTU Master is identified as the device that controls the exchange of 
26. going to use and confirm the Protocol is ASCH        Select the Com  Port to use        Protocol needs to Protocol ASCII COM Port Setup     be ASCII       If the Protocol is not ASCH  click the Com Port Setup button to open the Com Port Setup  Details window and change the Protocol to ASCII  If the Protocol selection is grayed out as  shown below  it means the 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     Com Port Setup Details   ery ot x    Protocol              Wiring De tails    Basic Configuration    H 3 8 l CLICK PLC Hardware User Manual  5th Edition     C0 USER M    Chapter 4  PLC Communications    When you open the Send instruction in the ASCII mode  the window should look like this   For the explanation of each setup parameter  please click the Help button on the bottom right     Com Port   Port Mi      Protocol  ASCII COM Port Setup       Sending Data Setup             Static Text Message  MAX  128 characters          Possible Message Length 0       Embedded ASCII Code    Embedded Memory Address           Dynamic Text Message  MAX  128 characters                Click the Help button  Freeman Code Character TEE to get detailed   1   00 2  ASCII Table information on this  setup window           F  Byte Swap   i All But null         Skatus Flags     Sending        ies          SUCCESS                                 Example  Send ASCII message to a serial prin
27. h ports  then at least one of the panels must be powered  by a C more Micro DC power adapter  EA MG P1 or EA MG SP1  or another 24 VDC power source  Color  C more Micro Graphic panels must also be powered from a separate 24 VDC source        H 8 l CLICK PLC Hardware User Manual  5th Edition     C0 USER M    Chapter 4  PLC Communications    Port 1  Ethernet    Modbus TCP    Modbus TCP Client  Master  Devices        N  fa  A  A            gt  C0 11DD1E D   quay     1  Koyo k     C0 11DD1E D g    CLICK  gt     a      ghey page g iti       IR  RS485  PORTS  a        na    E ct 3       r    Another CLICK  Ethernet PLC       Other Devices  Supporting    All Ethernet PLCS       Modbus TCP  Client Mode       C more Panel    pia a  Pt    Modbus TCP Server  Slave  Devices       ViewMarg Display       POES EH       EERI    EE   p     mall    SR55 Soft Starter GS1 Drive    Other Devices Supporting    Another CLICK a Modbus TCP Server Mode  Ethernet PLC   q    w 2  c2  P23   GS3 Drive       CLICK PLC Hardware User Manual  5th Edition     CO USER M    H 9    Chapter 4  PLC Communications    Port 2  RS 232      Modbus RTU or ASCII    Modbus RTU        C0 11DD1E D      CUICKY E                 1  E       J    LALIN TU SAGGNEGHS         All PLCS PC Another CLICK PLC    See Note on previous page about  connecting a C more Micro Graphic  panel to RS 232 Port        Other Devices  C more and C more Supporting Modbus RTU  Micro Graphic Panel Master Mode  Barcode    wa   e   P 1    w 1  c 4  P4  M
28. igation  x  Program   Function   PLC    tad Ladder Program  a Main Program  ed Subroutine Program  la Interrupt Program    4 Address Picker  gf Edit Rune Comments                Select the Program tab   then double click  Address Picker                                                  Address Picker   Edit Mode    Fill Down  Nickname    Find    w   iid  josta ee MODBUS Address  Function cade              These are the Modbus          DS1   TO  rw iinr  row  ut  rw  ob rut  rw LI  Int  rw LB  rr                                  400001  03 06 16   400002  03 06  16   400003  03 06  16   400004  03 06  16   400005  03 06  16   400006  03 06  16   400007  03 06 16        Data Type Filter      Used Unused Address         Display All Data Types    T tea i Ttec  words     Display both used and unused    MODBUS 984 Addressing  ae ha pe A Eg Di      HEX  JY   Floating Point Ra Denar melted  O MODELS HEX Addressing  Bit Text    Display only unused        addresses  The numbers in        the parenthesis indicate which  function codes can be used for          each memory address     Disable                  gt      Display MODBUS Address                      CLICK PLC Hardware User Manual  5th Edition     CO USER M                DSS rw LD it 400008  03 06 16  No Disable  D59 Rw liT 400009  03 06 16  Mo Disable   os D510 rw iinr 400010  03 06 16  Mo Disable  DD ffos11 rw iT 400011  03 06 16  Mo Disable  pH   D512 uw  int 400012  03 06 16  No Disable  pp   os13 rw iNT 400013  03 06 16  Mo
29. mmunications    P 2  Modbus Master Programming  Modbus RTU     Instructions  The CLICK PLC has two instructions to exchange data with external Modbus devices through    the com ports     the Receive and Send instructions     e Receive instruction  Read data from an external Modbus device     e Send instruction  Write data to external Modbus device s      To use these instructions  double click Receive or Send in the Instruction List window as    shown below          Select the Com  Port to use     Protocol needs to  be MODBUS     Instruction List    Double click Receive or Send  in the Instruction List to use it  in the ladder program                          Contact  HH te  ontact EHG   Ez Ae  Contact CHC     Receive    Send              Com Port  Port2   i  Protocol  MODBUS    CoM Port Setup  1a  kig Data         If the Protocol is not MODBUS  click the Com Port Setup button to open the Com Port Setup  Details window and change the Protocol to MODBUS  If the Protocol selection is grayed out  as shown below  it means the 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     Com Port Setup Details Grayed out       Port   Port2 lw  Protocol     Basic Configuration Wiring De tails    CLICK PLC Hardware User Manual  5th Edition     CO USER M f 4   29    Chapter 4  PLC Communications    When you open the Receive or Send instruction in the Modbus mode  their windows should  l
30. ng         seessessssssessessecssessecssesssrssessessseess 4 39       Chapter 4  PLC Communications    Introduction    This chapter explains the communications ability of the CLICK PLC system for exchanging    data between the PLC unit and other connected serial devices  It covers   e Electrical connections used for communications  e Networking routing between the PLC and other devices   e Setting the port communication parameters   e Selecting the protocols and the available data addressing types to use  and  e Ladder logic program instructions that make it all work together     CLICK Basic and Standard PLCs have two built in RS 232 ports  Both ports are 6 pin RJ12  phone type jacks  Port 1 communication parameters are fixed and is used primarily as the  programming port  Port 1 can also be used as a Modbus RTU protocol slave device  Port 2 is  a general purpose port  user configurable  with its communication parameters within CLICK  Programming Software  CO PGMSW  Port 2 can be used as a Modbus RTU master or slave  protocol device  or handle ASCII data In or Out  ASCII stands for American Standard Code  for Information Interchange and defines a character encoding method for text that is used  in computers and other communication devices  Details can be found by doing a search for    ASCII on the internet    Standard and Analog PLC versions also have a 3 pin RS 485 port  Port 3  Like Port 2  Port 3    is a general purpose port with its communication parameters being user con
31. odbus RTU Slave Devices    Devices that RECEIVE ASCII messages    ASCII                Devices that SEND ASCII messages    Other devices  that can send  ASCII data        Weight Scale                Other Devices  Supporting Modbus RTU  Slave Mode       Other devices       that can receive  Serial Text ASCII data  Another CLICK PLC  Display    c4 3  ra    V1 a l 0 l CLICK PLC Hardware User Manual  5th Edition     C0 USER M       Serial Printer    Chapter 4  PLC Communications  Port 3  RS 485     Modbus RTU or ASCII     Modbus RTU              232    RS   RS 485  PORTS  r        ne    wa w  N i           Another CLICK PLC       Standard Analog  and Ethernet PLC        ASCII    Devices that SEND ASCII messages    Other Devices  C more and C more Supporting Modbus RTU  Micro Graphic Panel Master Mode                Other devices  that can send    ASCII data   Barcode    Reader    ws  cs   P     Devices that RECEIVE ASCII messages    Weigh Scale    Other Devices  Supporting  Modbus RTU  Slave Mode             Other devices       that can receive    Serial Text ASCII data   Display Another CLICK PLC SOLO Temperature  Serial Printer Controller    ws   cs  Ps ws   cs   P2    CLICK PLC Hardware User Manual  5th Edition     CO USER M f 7 l l       Chapter 4  PLC Communications    W 1  Com Port 1  amp  2  RS 232  Wiring    Com Port 1 and Com Port 2 have very similar pin layouts  the only difference is that Port 2 has  a RTS signal output  which Port 1 does not have                     
32. on     C0 USER M    Chapter 4  PLC Communications       Case 1  Connect Com Port 1 or 2 to a PC   You can connect Com Port 1 or 2 to a serial com port or USB port on the PC     1  Connect to a serial port    PC Serial  Programming Cable    D2 DSCBL             2  Connect to a USB port    PC to Panel Programming  Cable Assembly   Includes serial  amp  USB cables   EA MG PGM CBL    CLICK PLC Hardware User Manual  5th Edition     CO USER M f H l 3    Chapter 4  PLC Communications    Case 2  Connect Com Port 1 or 2 to another CLICK PLC    DO CBL Cable       You can use cable DO CBL     In this configuration  one of the CLICK PLC units needs to be the network master and the  other is the network slave  Connect the DO CBL on Com Port 2 on the master PLC unit side     Warning  The ZL RJ12 CBL 2 cable cannot be used for this purpose        Case 3  Connect Com Port 1 or 2 to a C more or C more Micro Graphic  panel    Please use the following cables to make your connections     C more Graphic Panel Cable Part Number    C more Touch panels EA 2CBL  3m  or OP 2CBL  2m     DV 1000CBL if the panel receives 5 VDC power from the CLICK PLC com port   Monochrome  C more Micro Graphic panels only  color panels must be powered from a separate 24 VDC power source  Please refer  Panels to the note on page 4 6 for details      EA 2CBL  3m  or OP 2CBL  2m  if the panel receives 24 VDC power from other source                     C more Micro Graphic  Panel  Monochrome  models only        Port 1      
33. ook like this  For the explanation of each setup parameter  please click the Help button on  the bottom right                                Receive Send  ComPort   Portz  w Com Port   Panam     rots  NODBLE motors MODUS  Receiving Data Setup  Sending Data Setup  Slave ID  0 247   0 m  slave ID  1 247   i a  0 247     Modbus Function Code   01  Read Coil Status     Modbus Function Code    05   Write Single Coil  x             Addressing Type   Modbus 984 Addressing        ee   oS Ta     Starting Slave Address  v     000001 to 065535   Starting Slawe Address  wv 00000 i to 065535  Starting Master Address  v           Number of Bits  1   Starting Master Address  wv a         Click the Help button  Status Flags   to get detailed                   Receiving v A information on this  Success v l setup window   Error wT    Exception Response  Error Code  wT Status Flagg  Success wW m  Error vw    Exception Response  Error Code     NI  Loox   cme   r              Com Port Status Indicators    The CLICK PLC has the following System Control Relays to indicate the status of the Com  Ports     System Control Relays  Address Nickname Description  SC100 _Port_2_Ready_Flag On when Port 2 is ready   SC101 _Port_2_Error_Flag On when Port 2 has a communication error   SC102 _Port_3_Ready_Flag On when Port 3 is ready   SC103 _Port_3_Error_Flag On when Port 3 has a communication error                          Example Program    The ladder program to use these Receive and Send instructions are ea
34. ou delete those instructions     Com Port Setup Details      Grayed out          Wiring De tails    CLICK PLC Hardware User Manual  5th Edition     CO USER M f u   3 5    Chapter 4  PLC Communications    When you open the Receive instruction in the ASCII mode  the window should look like this   For the explanation of each setup parameter  please click the Help button on the bottom right                      Receive  Com Porti   Port2 Ia    Receiving Data Setup      Data Length Type       Fixed     variable  Data Length        Data Destination  A    L  Byte Swap    t    Timeout    First Character   None w    Character Interwal   None           Click the Help button  Status Flags to get the detailed  information of this    Receiving wv m   Saree wv Leal setup window   First Character Time out  First Err  WW m   Character Interval Time out  Inter Err  7 lial   Overfiow wv liii   Recived Data Length SD50    Ca  Example 1  Read ASCII message from a barcode reader     With the following example program  when C1 is ON  the Receive instruction is activated and  Com Port 2 waits for an ASCII message from the barcode reader  When Com Port 2 receives  an 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              First Timeout  Byte Swap    Terminate Code    Destination       U3 6 i CLICK PLC Hardware User Manual  5th Edition     C0 USER M    Chapter 4  PLC Communic
35. rver and establishes a connection with the new server  maintaining a total  of 4 servers     communication with Com Port 1 while it is communicating with 3 clients  the CLICK PLC unit replies with    i  NOTE  Com Port 1 can communicate with up to 3 clients  masters   If a client attempts to establish  an error to the forth client     V1 l 8 l CLICK PLC Hardware User Manual  5th Edition     C0 USER M    Chapter 4  PLC Communications     W 3  W 3  Com Port 3 Wiring    Com Port 3 supports 2 wire RS 485     3 Pin  Terminal Block    Port 3 Pin Descriptions     plus     Signal A  RS 485             Signal B  RS 485                 LG                Wiring Strategy    You need to connect all   signal terminals in the network together  You will also need to          minus   LG          Logic Ground  0 V    connect all     signal terminals together  It is optional to connect the logic ground     CLICK  Com Port 3    RS 485 Porton RS 485 Porton  another device another device              Add a termination     resistor between the    and     terminals on   A the last device     Optional ee devices may  not have this terminal      Add a termination resistor between  the   and     terminals on Port 3     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     CLICK PLC Hardware User Manual  5th Edition     CO USER M f H 19    Chapter 4  PLC Communications    C 1   
36. sy  You just need one NO   Normally Open  contact instruction to check if the com port is ready to receive or send data          _ Port  Ready Flag Slave ID  Bscioo    Modbus Function Code            Slave Addr                      When Com Port 2 is ready  the Receive    instruction is executed  This also  applies to the Send instruction        U3 0 l CLICK PLC Hardware User Manual  5th Edition     C0 USER M    Chapter 4  PLC Communications    Interlocking  These instructions keep receiving or sending data when the enable input is on  If you want  to use more than one Receive and or Send instruction  you need to be sure only one of the  instructions is enabled at any point during the operation  The technique to execute more than  one Receive and or Send instruction in order is called    Interlocking     When the Interlocking  sample program below is executed  the Receive and Send instructions are executed alternatively     C100 is turned ON immediately  when the CLICK PLC starts       executing the Receive instruction               Receive  Port    Slave ID 1  Modbus Function Code       Port  Ready Flag  EBscio0 E 100           Executed when   ae  C100 is OFF     i t          y SET E    Port  Ready Flag  B Scio Eciod       Executed when    C100 is ON      C RST                                               C100 is turned OFF immediately  when the CLICK PLC starts  executing the Send instruction        CLICK PLC Hardware User Manual  5th Edition     CO USER M f H 3 l    Chapt
37. ter   With the following example program  when status of C1 changes from OFF to ON  the Send  instruction sends ASCII message    ABC    and the termination character  CR   Carriage Return  in this example   C2 is turned on when sending the ASCII message is completed        m      Terminate Code CR Suecess  Send Message     AH p    CLICK PLC Hardware User Manual  5th Edition     CO USER M f H 3 9    Chapter 4  PLC Communications    Notes        u 40 l CLICK PLC Hardware User Manual  5th Edition     C0 USER M    
38. ve  Server  programming  Step 3 Modbus Master programming  Modbus RTU   Modbus Client programming  Modbus TCP   ASCII Receive programming  ASCII Send    Subcategory Description                      Programming                      Example   To connect a barcode reader that sends ASCII data to Com Port 2     Refer to these three reference page sections     Barcode  Reader    Com Port 2       CLICK PLC Hardware User Manual  5th Edition     CO USER M    W 7    Chapter 4  PLC Communications    Typical Communication Applications  The diagrams on the following four pages illustrate the typical uses for the CLICK PLC   s    communication ports  Typical serial communication applications are continued on the next  three pages     Port 1  RS 232      Modbus RTU Slave Mode Only       PWR  RUN  ERR  PORTI       RX1  7X2  RX2  PORT2    Another CLICK PLC    amp   more and C more  Micro Graphic Panel       Basic  Standard and Other Devices  Analog PLCs Supporting Modbus RTU  Master Mode       C more Micro Graphic panels   monochrome models only  can get 5 VDC  power from RS 282 Port         C more Micro Graphic  Panel  Monochrome  models only           Example Port 1       The Color Micro Graphic panel or the  second Monochrome Micro Graphic    ee panel needs a separate 24 VDC power  SENA CANE source  see the note below            RS 232 Port    NOTE  CLICK   s RS 232 port can provide 5 VDC to power one monochrome Micro Graphic panel  If two  C more Micro Graphic panels are connected to bot
    
Download Pdf Manuals
 
 
    
Related Search
    
Related Contents
Magic Chef MCB1110B User's Manual  Operator`s Manual Manual para el Operador Manuel D`Utilisation  取扱説明書 はじめにお読みください 0.1Mbyte    Copyright © All rights reserved. 
   Failed to retrieve file