CH 4
CH 4
4
Configuration
and Connections
In This Chapter...
 In this Chapter............................................................................................................................... 4-1
 DL05 System Design Strategies.............................................................................................. 4-2
 Network Configuration and Connections.............................................................................. 4-4
 Network Slave Operation........................................................................................................... 4-8
 Network Master Operation......................................................................................................4-14
Chapter 4: Configuration and Connections
Option Slot
      Specifications
      Networking DL05 to DL05 RS-232C
        You will need to make sure the network connection is a 3-wire RS–232 type. The
        recommended cable is AutomationDirect L19772 (Belden 8102) or equivalent.
        Normally, the RS–232 signals are used for communications between two devices
        with distances up to a maximum of 15 meters.
                                 DL05                                                  DL05
                                 PORT 2                                                PORT 1 or 2
                                           1 0V                                 0V 1
                                           3 RXD                              RXD 3
                                           4 TXD                              TXD 4
Networking
PC to DL05s
                                                           1234 5 6
RS–422
                                                        6-pin Female
                                                      Modular Connector
                                                                       FA-ISOCON                       DL05
                                                                      GND
                                                                                    1 or 6 0V 0V 1 or 6 PORT 2
                                           GND
           0V       0V 1
                                           TXD+                       RXD+          3 RXD      RXD 3
           RXD     RXD 3
                                           TXD–                       RXD–          4 TXD      TXD 4
           TXD     TXD 4                  RXD–                        TXD–
                                                                                    2 CTS       5V 2
           RTS      RTS 5                 RXD+                        TXD+
                                                                                    5 5V       RTS 5
FA–ISOCON
                                                                                                                   CPU Specifications
  DL05                                                                 FA-ISOCON                       DL05
  PORT 2                                                                            1 or 6 0V 0V 1 or 6 PORT 2
                                           GND                        GND
        1 or 6 0V 0V 1 or 6                                                         3 RXD       RXD 3
                                           TXD+                       RXD+
        3 RXD      RXD 3
                                          TXD–                        RXD–          4 TXD      TXD 4
        4 TXD      TXD 4                  RXD–                        TXD–
                                                                                    2 CTS       5V 2
         2 CTS                            RXD+                        TXD+
                     5V 2
                                                                                    5 5V       RTS 5
         5 5V       RTS 5
                                FA–ISOCON
                                                                       FA-ISOCON                       DL240
                                                                      GND
                                                                                    1 0V       0V 1 PORT 2
                                                                      RXD+          3 RXD     RXD 3
                                                                      RXD–          4 TXD      TXD 4
                                                                      TXD–
                                                                                    2 CTS       5V 2
                                                                      TXD+
                                                                                    5 5V       RTS 5
             • Timeout: Amount of time the port will wait after it sends a message to get a
               response before logging an error.
             • RTS ON / OFF Delay Time: The RTS ON Delay Time specifies the time the DL05
               waits to send the data after it has raised the RTS signal line. The RTS OFF Delay
               Time specifies the time the DL05 waits to release the RTS signal line after the
               data has been sent. When using the DL05 on a multi-drop network, the RTS ON Delay
               time must be set to at least 5ms and the RTS OFF Delay time must be set to at least 2ms. If you
               encounter problems, the time can be increased.
             • Station Number: The possible range for Modbus slave numbers is from 1 to
               247, but the DL05 network instructions used in Master mode will access only
               slaves 1 to 99. Each slave must have a unique number. At powerup, the port is
               automatically a slave, unless and until the DL05 executes ladder logic network
               instructions which use the port as a master. Thereafter, the port reverts back to
               slave mode until ladder logic uses the port again.
             • Baud Rate: The available baud rates include 300, 600, 1200, 2400, 4800, 9600,
               19200, and 38400 baud. Choose a higher baud rate initially, reverting to lower
               baud rates if you experience data errors or noise problems on the network.
               Important: You must configure the baud rates of all devices on the network to
               the same value. Refer to the appropriate product manual for details.
             • Stop Bits: Choose 1 or 2 stop bits for use in the protocol.
             • Parity: Choose none, even, or odd parity for error checking.
          Then click the button indicated to send the Port configuration to the CPU, and
          click Close.
      • Timeout: Amount of time the port will wait after it sends a message to get a
         response before logging an error.
      • RTS ON / OFF Delay Time: The RTS ON Delay Time specifies the time the DL05
         waits to send the data after it has raised the RTS signal line. The RTS OFF Delay
         Time specifies the time the DL05 waits to release the RTS signal line after the
         data has been sent. When using the DL05 on a multi-drop network, the RTS ON Delay
         time must be set to at least 5ms and the RTS OFF Delay time must be set to at least 2ms. If you
         encounter problems, the time can be increased.
      • Station Number: For making the CPU port a DirectNET master, choose “1”. The
         allowable range for DirectNET slaves is from 1 to 90 (each slave must have a
         unique number). At powerup, the port is automatically a slave, unless and until
         the DL05 executes ladder logic instructions which attempt to use the port as a
         master. Thereafter, the port reverts back to slave mode until ladder logic uses
         the port again.
      • Baud Rate: The available baud rates include 300, 600, 1200, 2400, 4800, 9600,
         19200, and 38400 baud. Choose a higher baud rate initially, reverting to lower
         baud rates if you experience data errors or noise problems on the network.
         Important: You must configure the baud rates of all devices on the network to
         the same value.
      • Stop Bits: Choose 1 or 2 stop bits for use in the protocol.
      • Parity: Choose none, even, or odd parity for error checking.
      • Format: Choose between hex or ASCII formats.
   Then click the button indicated to send the Port configuration to the CPU, and click
   Close.
                                                                              Modbus Address
DL05 Memory Type                 QTY (Dec.)        PLC Range(Octal                                     Modbus Data Type
                                                                              Range (Decimal)
                     For Discrete Data Types .... Convert PLC Addr. to Dec. + Start of Range + Data Type
        Inputs (X)                   256                  X0 – X377                 2048 – 2303                 Input
   Special Relays(SP)                512                SP0 – SP777                 3072 – 3583                 Input
       Outputs (Y)                   256                  Y0 – Y377                 2048 – 2303                  Coil
   Control Relays (CR)               512                  C0 – C777                 3072 – 4583                  Coil
   Timer Contacts (T)                128                  T0 – T177                 6144 – 6271                  Coil
  Counter Contacts (CT)              128                CT0 – CT177                 6400 – 6527                  Coil
   Stage Status Bits(S)              256                  S0 – S377                 5120 – 5375                  Coil
                             For Word Data Types .... Convert PLC Addr. to Dec. + Data Type
 Timer Current Values (V)            128                V0 – V177                    0 – 127                Input Register
Counter Current Values (V)           128              V1000 – V1177                 512 – 639               Input Register
 V-Memory, user data (V)            3968              V1200 – V7377                640 – 3839              Holding Register
V-Memory, non-volatile (V)           128              V7600 – V7777               3968 – 4095              Holding Register
         The following examples show how to generate the Modbus address and data type
         for hosts which require this format.
                                                           PLC Address (Dec) + Data Type
       Example 1: V2100                                        V2100 = 1088 decimal
         Find the Modbus address for
                                                               1088 + Hold. Reg. = HoldingReg1088
          User V location V2100.
             1. Find V memory in the table.
             2. Convert V2100 into decimal (1088).
V Memory, user data (V) 3200 V1200 – V7377 640 – 3839 Holding Register
                                  LDA
                                    O4000
                                  RX
                                       V0
            1. Refer to your PLC user manual for the correct memory mapping size of your
               PLC. Some of the addresses shown above might not pertain to your particular
               CPU.
            2. For an automated Modbus/Koyo address conversion utility, download the file
               modbus_conversion.xls from the www.automationdirect.com website.
Master
        When using the DL05 PLC as the master station, simple RLL instructions are used to
        initiate the requests. The WX instruction initiates network write operations, and the
        RX instruction initiates network read operations. Before executing either the WX or
        RX commands, we will need to load data related to the read or write operation onto
        the CPU’s accumulator stack. When the WX or RX instruction executes, it uses the
        information on the stack combined with data in the instruction box to completely
        define the task, which goes to the port.
                                                 Network
                                                 WX (write)
                                                 RX (read)
                                                                   Slave
Master
        The following step-by-step procedure will provide you the information necessary to
        set up your ladder program to receive data from a network slave.
  The number of bytes specified also depends on the type of data you want to obtain.
  For example, the DL05 Input points can be accessed by V-memory locations or
  as X input locations. However, if you only want X0 – X27, you’ll have to use the X
  input data type because the V-memory locations can only be accessed in 2-byte
  increments. The following tables shows the byte ranges for the various types of
  DirectLOGIC™ products.
     DL05/205/350/405 Memory                         Bits per unit                        Bytes
                    V-memory                              16                                2
               T / C current value                        16                                2
                  Inputs (X, SP)                           8                                1
                      Outputs                             8                                 1
              (Y, C, Stage, T/C bits)
              Scratch Pad Memory                          8                                 1
               Diagnostic Status                          8                                 1
                 DL305 Series CPU Memory Type–to–Modbus Cross Reference (excluding 350 CPU)
                                                   Modbus                                                              Modbus
   PLC Memory Type PLC Base Address                                  PLC Memory Type PLC Base Address
                                                 Base Address                                                        Base Address
    TMR/CNT Current            R600                    V0            TMR/CNT Status Bits           CT600                GY600
         Values
       I/O Points              IO 000                 GY0               Control Relays             CR160                GY160
     Data Registers          R401,R400                V100              Shift Registers            SR400                GY400
    Stage Status Bits
                                 S0                  GY200
     (D3-330P only)
                                                                                            C100
                                                                                            RST