Hide thumbs Also See for TOSDIC-CIE DS:

Advertisement

Quick Links

Toshiba Integrated Control System
PLC Connection Function
MODBUS/TCP Connection
Instruction Manual
6F8C1574

Advertisement

Table of Contents
loading

Summary of Contents for Toshiba TOSDIC-CIE DS

  • Page 1 Toshiba Integrated Control System PLC Connection Function MODBUS/TCP Connection Instruction Manual 6F8C1574...
  • Page 2 First Edition 28 April, 2015 The contents of this manual may be revised without notice.  Copyright 2015 by Toshiba Corporation. All rights reserved. No part of this manual may be reproduced in any form without permission.
  • Page 3: Safety Precautions

    Safety Precautions Safety Precautions The instruction manual and the labels affixed to the products or equipment give important information for using products safely. It helps prevent damage to properties and hazard to people who use them or work with them. Make yourself familiar with the signal words and signs in this page, then read the safety precautions that follow and always follow the instructions to avoid hazards.
  • Page 4 Safety Precautions Caution • Do not shut off power, or insert or extract connectors while the system is operating or data is being written.  This can cause an erroneous system operation or damage to data. Power shutdown prohibited while system is operating •...
  • Page 5 • To use this product in a system where equipment such as the one human safety is involved and affecting the maintenance of public function(Note 2), special consideration (Note 3) regarding the system’s operation, maintenance and control is required. Contact Toshiba’s sales department. Note 1 Example of equipment directly involved in human life is as follows: ...
  • Page 6  Toshiba is not liable for any incidental damage from use or non use of this product (loss of business profit, discontinuation of business, change or loss of the memorized content and so on).
  • Page 7: Introduction

    Introduction The PLC connection function realizes a monitor and control system in which the industry standard PLC is added to the TOSDIC-CIE DS system. This manual describes mainly the PLC connection function software. Before using the system, users should be advised to understand the PLC connection function by reading this manual.
  • Page 8 Introduction...
  • Page 9: Table Of Contents

    Contents Contents Safety Precautions ············································································· i Introduction ······················································································ v Contents ·························································································· vii Outline ································································ 1 1.1. Overview ················································································· 1 1.2. Basic specification ····································································· 3 1.3. Tag Type ················································································· 3 Write data structure ··············································· 5 2.1. Writing data structure ································································· 5 2.1.1 Digital Tag ···········································································...
  • Page 10: Contents

    Contents 3.1.9 Diagnose data ····································································· 28 3.1.10 Download data ··································································· 28 3.2. Confirming the contents of errors ·················································· 29 3.2.1 Confirming the application log in the Event Viewer. ····················· 29 3.2.2 Confirming the transmission time ············································· 31 Sample program for MODBUS/TCP Server application 33 4.1.
  • Page 11: Outline

    1.Outline 1. Outline 1.1. Overview MODBUS/TCP server communicates with OIS-DS/SMART or PLCS (PLC connection function) by using MODBUS/TCP protocol. MODBUS/TCP data are Coils, Input Discrete, Holding Registers and Input Registers. The figure 1.1 shows the overview when MODBUS/TCP server is connected. PLC Connection MODBUS/TCP Server (MODBUS/TCP Client)
  • Page 12 1.Outline Data collection (1) PLC connection function reads Coils data by sending the request of reading them to a MODBUS/TCP server (2) PLC connection function reads Input Discrete data by sending the request to read them to a MODBUS/TCP server (3) PLC connection function reads Holding Registers data by sending the request to read them to a MODBUS/TCP server (4) PLC connection function reads Input Registers data by sending the request to...
  • Page 13: Basic Specification

    1.Outline 1.2. Basic specification The basic specification of MODBUS/TCP Server connection is described in Table 1.1 Table 1.1 MODBUS/TCP Server connection Item Specifications Supported Model Devices for MODBUS/TCP Communication System MODBUS/TCP protocol Default port : 502 This port No. can be set by the parameter in MODBUS/TCP Server Configuration of PLCS engineering tool.
  • Page 14 1.Outline...
  • Page 15: Write Data Structure

    1.Outline 2. Write data structure 2.1. Writing data structure 2.1.1 Digital Tag FI/FO for PB2p/PB4p/PB8p is 1 word-data (16 bits). The high-order eight bits are FO1 to FO8 and the low-order eight bits are FI1 to FI8. And RFO for PB2p/PB4p/PB8p is 1 word-data (16 bits). When you push a push button, 1 word-data that includes the changed items and operation status is put into the Holding Registers which is specified in the RFO register address.
  • Page 16: Momentary Set

    2.Writing data structure 2.1.2 Momentary Set The action when the button is released/pushed changes according to ‘Not Used’/’Used’ for the ‘Momentary Set’ in PB2p/PB4p/PB8p. The following table shows the status of the bits for changed items and the bits of operation status.
  • Page 17: Analog Tag

    2.Writing data structure 2.1.3 Analog Tag SV/FBSV for PB2p/PB4p/PB8p is 1 word-data or 2 words-data. This data size is according to the registration of SV register data type. The relations between SV values and Feedback SV values are as follows. OIS function ...
  • Page 18 2.Writing data structure...
  • Page 19: Registering Modbus/Tcp Server

    3. Registering MODBUS/TCP Server 3. Registering MODBUS/TCP Server 3.1. Registration by PLCS Engineering tool This section describes how to register a MODBUS/TCP Server and assign the data into PLCS tags or the system tags by PLCS engineering tool 3.1.1 Overview It needs PLC configuration, MODBUS/TCP Server configuration, Digital Register Address, Analog Register Address and System Alarm Register Address to assign the data of MODBUS/TCP Server into the PLCS tags.
  • Page 20 3. Registering MODBUS/TCP Server Table 3.1 Momentary Set Item Description (1)PLC Configuration Assign the size for Input Registers (PLCS) (2)MODBUS/TCP Server Configuration Set the range of MODBUS data to be collected. Set the byte order for 4 bytes-data. (3)Digital Register Address Assign the collected MODBUS data into digital register of Input Registers (PLCS).
  • Page 21: Flow Of Registration

    3. Registering MODBUS/TCP Server 3.1.2 Flow of registration The following flow shows how to register MODBUS/TCP Server and assigns data into PLCS tags by PLCS engineering tool. Registration by PLCS engineering tool Register PLC configuration Register MODBUS/TCP Server configuration Register Digital Register Address Register Analog Register Address Register System Alarm Register Address Register PLCS tags...
  • Page 22: Registering Plc Configuration

    3. Registering MODBUS/TCP Server 3.1.3 Registering PLC configuration Please register as follows by [Configuration]-[PLC Config.] of the PLCS engineering tool when you register MODBUS/TCP Server. Table3.2 Registration of PLC configuration PLC No. PLC1 PLC Type 21-MODBUS/TCP IP Address 172.16.64.64 Port No. Setting Reg Address Number of Words...
  • Page 23 3. Registering MODBUS/TCP Server  Input Reg(Address) Set DW00000.  Input Reg(Number of Dig Words/ Number of Ana Words) Set the size of words for digital registers and the size of words for analog registers . 990(size of digital words + size of analog words) words or less is possible. The MODBUS data assigned into the digital registers are set in the [MODBUS/TCP Config]-[Digital Register Addr.].
  • Page 24: Registering Modbus/Tcp Server Configuration

    3. Registering MODBUS/TCP Server 3.1.4 Registering MODBUS/TCP Server configuration Please register as follows by [MODBUS/TCP Config.]-[MODBUS/TCP Server Config.] of the PLCS engineering tool to set the detail parameters for MODBUS/TCP Server registered in PLC configuration. Table3.3 Registration for MODBUS/TCP Server configuration PLC No.
  • Page 25 3. Registering MODBUS/TCP Server Little-Endian : Little-Endian<->Little-Endian Little-Endian with Byte Swapped : Little-Endian with byte swapped <->Little-Endian  Port No. Set the port No. of MODBUS/TCP Server to be connected. (1 to 65535)  Time for reconnection This is the waiting time till reconnecting after detecting the transission error via MODBUS/TCP Server.
  • Page 26 3. Registering MODBUS/TCP Server  Coils(Starting Address) Set the address that is MODBUS PDU (Protocol Data Unit) address of Coils to read data from the MODBUS/TCP Server. (0 to 65535)  Coils(Number of Bits) Set the number of Coils that is read from the MODBUS/TCP Server. This number is the maximum 15840 ( 990 Words * 16bit).
  • Page 27 3. Registering MODBUS/TCP Server For example, because PLC connection function accesses to MODBUS/TCP server eight times when the number of words for Holding Registers is the maximum 990W, the transmission time increases. When the transmission time is more than ‘Time for updating data(sec)’, please consider the number of data to read from the MODBUS/TCP Server, or set the bigger value as ‘Time for updating data(sec)’...
  • Page 28: Registering Digital Register Address

    3. Registering MODBUS/TCP Server 3.1.5 Registering Digital Register Address Please register as follows by [MODBUS/TCP Config.]-[Digtal Register Addr.] of the PLCS engineering tool to set the detail parameters for FI/FO of the Input Registers (PLCS) registered in PLC configuration. The following figure shows that Coils (0-7) and Input Discrete (100-107) are assigned into DW00000.
  • Page 29 3. Registering MODBUS/TCP Server The parameters for the figure 3.4 are below. Table3.4 Sample of Registration for Digital Register Address Input Reg. Addr. FI:MODBUS Data Type FI:Address FI: Word-Bit Pos FI Number of Bits DW00000 Coils FO:MODBUS Data Type FO:Address FO: Word-Bit Pos FO Number of Bits Input Discretes...
  • Page 30: Registering Analog Register Address

    3. Registering MODBUS/TCP Server  Number of Bits Enter the number of bits for the MODBUS data to read from the MODBUS/TCP Server. (1 to 8) 3.1.6 Registering Analog Register Address Please register as follows by [MODBUS/TCP Config.]-[Analog Register Addr.] of the PLCS engineering tool to set the detail parameters for the analog registers of the Input Registers registered in PLC configuration.
  • Page 31 3. Registering MODBUS/TCP Server The parameters for the figure 3.5 are below. Table3.5 Sample of Registration for Analog Register Address PLC No. PLC1 Holding Registers Starting Address Number of Words Input Registers Starting Address Number of Words The following explains each item. ...
  • Page 32: Registering System Alarm Register Address

    3. Registering MODBUS/TCP Server 3.1.7 Registering System Alarm Register Address Please register as follows by [MODBUS/TCP Config.]-[System Alarm Register Addr.] of the PLCS engineering tool to set the detail parameters for the system alarm registers of the Input Registers registered in PLC configuration. The input data area map at the time of assigning system alarm information to below is shown.
  • Page 33 3. Registering MODBUS/TCP Server In the following sample, the parameters indicates that 10000 of Holding Registers is assigned in the phase and 10000-10096 of Coils are assigned in the system alarm for device1 – device3. Table3.7 Sample of Registration for System Alarm Register Address PLC No.
  • Page 34 3. Registering MODBUS/TCP Server  MODBUS Data Type (Phase) Only 1 word-data can be assigned in the phase. Select the MODBUS Data type for the phase to read from the following list. “None” / “HoldingRegisters”/“InputRegisters”  Starting Address(Phase)  Enter the MODBUS PDU address of MODBUS data for the phase to read from the MODBUS/TCP Server.
  • Page 35: Registering Plcs Tags

    3. Registering MODBUS/TCP Server 3.1.8 Registering PLCS Tags This paragraph describes how to assign the MODBUS Data in the Input Registers (PLCS) into PLCS tags. (1)INDp/PFIp/SETp INDp/PFIp/SETp are set the following register address. Table3.8 Registration for INDp/PFIp/SETp Tag Type Type of Register address Contents INDp PV Register Address(RAPV)
  • Page 36 3. Registering MODBUS/TCP Server (2)PB2p/PB4p/PB8p PB2p/PB4p/PB8p are set the following register address. Table3.9 Registration for PB2p/PB4p/PB8p Tag Type Type of Register address Contents PB2p FI/FO Register Address Address of Input Registers (PLCS) (digital PB4p (RAIO) register) (DW00000-DW00989) PB8p RFO Register Address(RARO) MODBUS PDU address of Holding Registers (0-65535) The image shows that the Input Registers (PLCS) and MODBUS data are assigned into PB8p...
  • Page 37 3. Registering MODBUS/TCP Server (3)DB1p/DB8p DB1p/DB8p are set the following register address. Table3.10 Registration for DB1p/DB8p Tag Type Type of Register address Contents DB1p Display Data Address (RADB) Address of Input Registers (PLCS) that DB8p Holding Registers is assigned in. (analog register) (DW00000-DW00989) REFERENCE:...
  • Page 38: Diagnose Data

    3. Registering MODBUS/TCP Server 3.1.9 Diagnose data You should diagnose the data after setting parameters for MODBUS/TCP Server. Select the [Utility] – [Data Diagnostics]. Figure 3.11 Data Diagnostics 3.1.10 Download data After confirm that there is no error in the registration by ‘Data Diagnostic’, download data into the system.
  • Page 39: Confirming The Contents Of Errors

    3. Registering MODBUS/TCP Server 3.2. Confirming the contents of errors 3.2.1 Confirming the application log in the Event Viewer. When the ‘PLC Access .sts’ in the Station Status Display is ‘abnormal’, you need to confirm the detail contents in the Event Viewer. Select [Control Panel] –...
  • Page 40 3. Registering MODBUS/TCP Server Table 3.12 Contents of Application Logs(2) Contents of Event Specifications connect error. PLC([PLC No.]) Transmission is abnormal. send error. PLC([PLC No.]) Confirm that the parameters in ‘PLC Config.’ and select error. PLC([PLC No.]) ‘MODBUS/TCP Server Config.’ of PLCS engineering tool recv error.
  • Page 41: Confirming The Transmission Time

    3. Registering MODBUS/TCP Server 3.2.2 Confirming the transmission time When the transmission time exceeded the value of ‘Time for updating data (sec) ‘in the ‘MODBUS/TCP Server Config.’ of the PLCS engineering tool, the ‘PLC Access .sts’ in the Station Status Display is ‘abnormal’. This paragraph describes how to confirm the transmission time.
  • Page 42 3. Registering MODBUS/TCP Server...
  • Page 43: Sample Program For Modbus/Tcp Server Application

    4. Sample program for MODBUS/TCP Server application 4. Sample program for MODBUS/TCP Server application 4.1. Control processing This sample program processes the following controls by using MODBUS/TCP slave function of nV-Tool for type1 light. REFERENCE: About the MODBUS/TCP slave function of nV-Tool for type1 light, refer to the following manual.
  • Page 44 4. Sample program for MODBUS/TCP Server application  Request to RFO register address ‘01000’ When the data is written into the RFO register, this carries out RFO processing. For a tag with Momentary, FO will be ON while the button is pushed and FO will be OFF when the button is released. XK = RFO register address –...
  • Page 45: Ladder Program

    4. Sample program for MODBUS/TCP Server application 4.1. Ladder Program This is a sample program for processing write data from OIS-DS/SMART Here, MEMORY_MAP[1000] is for RFO register address. MEMORY_MAP[0] is for FO register address. By these variables, FO will be turned ON or OFF according to the RFO request. XK=RFO register address –...
  • Page 46 4. Sample program for MODBUS/TCP Server application Get the RFO2 from the data. |RFO2|RFO1| Get the FO from the data. Momentary output FO=((NOT RFO2) AND FO) (RFO1 AND RFO2) By the above command, output data to FO Output data FI/FO Clear RFO register...
  • Page 48 Social Infrastructure Systems Company Industrial Systems & Components Division 72-34, Horikawa-Cho, Saiwai-Ku, Kawasaki 212-8585, Japan...

Table of Contents