Toshiba nv Series Instruction Manual

Toshiba nv Series Instruction Manual

Unified controller
Hide thumbs Also See for nv Series:
Table of Contents

Quick Links

6F8C1358
Unified Controller
nv Series
Ethernet (EN811) Module
Instruction Manual
Table of Contents
loading

Summary of Contents for Toshiba nv Series

  • Page 1 6F8C1358 Unified Controller nv Series Ethernet (EN811) Module Instruction Manual...
  • Page 2 (4) All possible measures have been taken to prepare the information herein. If you have any question, comment, or find any error, please contact us. TC-net, PROSEC, TOSLINE, TOSDIC, CIEMAC are registered trademarks of Toshiba Infrastructure Systems & Solutions Corporation IBM is a registered trademark of International Business Machines Corporation.
  • Page 3 Indicates Warning. Specific details are indicated near the symbol with pictures and text. Warning (Note) Descriptions of Prohibition, Mandatory Action, and Warning vary depending on the display on the main unit. Unified Controller nv Series Ethernet (EN811) Module Operation Manual...
  • Page 4 Safety precautions on installation WARNING Ground the device. Otherwise, it may cause an electric shock Ground or fire. CAUTION Do not install, store, or use it in the Do not block the ventilation hole or following environments. air inlet/outlet. Prohibited Prohibited ・...
  • Page 5 Mandatory For severe stain, use a wet cloth wrung tightly. Leaving them stained may cause wrong decision or malfunction. Unified Controller nv series Ethernet (EN811) Module Operation Manual...
  • Page 6 It may cause an electric shock, fire, injury, or failure. Upon faulty operation or failure, contact Do not touch the terminals of the Toshiba's branch office or service offices. module and unit during energization. It may cause an electric shock. No touch...
  • Page 7 For transportation and storage of the product, use a conductive bag and When destroying the product, observe Mandatory Prohibited packaging box. the ordinances and rules of the local government. Otherwise it will cause failure. Unified Controller nv series Ethernet (EN811) Module Operation Manual...
  • Page 8 (e.g. employing fool-proof design, fail-safe design, or redundant design). Disclaimer Toshiba shall not be responsible for any damage caused by fire or earthquake, acts of a third party, other accidents, the user's willful acts or negligence, misuse, or use in abnormal conditions.
  • Page 9 • Unified Controller nv series/Integrated Controller V Series Command Manual (6F8C1226) Describes the detailed specifications of the instruction words of the program languages (LD, FBD, and SFC) supported by the nv series and Integrated Controller V Series. • Unified Controller nv series/Integrated Controller V Series nV-Tool (Basic) Operation Manual (6F8C1290) Describes how to create, debug, print, and save programs using nV-Tool.
  • Page 10 ●Notational conventions The following are the notational conventions for better understanding of this document. Describes what the user should be particularly aware of to handle the product correctly. Important: Describes what the user should observe to handle the product correctly. Note: Describes a remark.
  • Page 11: Table Of Contents

    3.3.5 Default gateway IP address (router IP address) setting ·············································35 3.3.6 Option function ·····························································37 Network information ····················································· 38 3.4.1 LAN control information ·············································38 3.4.2 MIB information ··························································39 Chapter 4 Operation …41 Unified Controller nv series Ethernet (EN811) Module Operation Manual...
  • Page 12 Chapter 5 Troubleshooting …43 Inspection········································································ 46 Chapter 6 6.1.1 Daily inspection ····························································46 Maintenance and 6.1.2 Periodical inspection ····················································47 inspection Life limited parts ··························································· 47 …45 Information by socket ·················································· 51 Chapter 7 7.1.1 Configuration of information by single Ethernet socket ·····51 Application 7.1.2 Referring to information by socket·································52...
  • Page 13 Appendix C Related products …67 Appendix D Decimal-hexadecima l conversion table …69 Appendix E Sample programs …73 Appendix F Return code list …85 Unified Controller nv series Ethernet (EN811) Module Operation Manual...
  • Page 14 6F8C1358...
  • Page 15 Chapter 1 Introducing the EN811 module This chapter describes the functions, characteristics, and names and functions of the parts. Functions and characteristics of the EN811 module ·········································································· 2 Names and functions of the parts ··················· 4 1.2.1 Names of the parts ·································· 4 1.2.2 Functions of the parts ······························...
  • Page 16: Functions And Characteristics Of The En811 Module

    1.1 Functions and characteristics of the EN811 module The EN811 module is a device to connect the controller main unit of the Unified Controller nv series to the monitoring control network Ethernet. The EN811 module is for single bus. Up to 4 units can be installed to the basic unit.
  • Page 17 1.1 システム構成 Example of system configuration Host system network Monitoring control network 10M/100M/1Gbps Ethernet Unified Controller nv series TC-net I/O system Figure 1-1 System configuration example Unified Controller nv series Ethernet (EN811) Module Operation Manual...
  • Page 18: Names And Functions Of The Parts

    Chapter 1 Introducing the EN811 module Names and functions of the parts 1.2.1 Names of the parts Figure 1-2 shows the names of the parts of the EN811 module. State display LED • RUN • ERR • L-A • HLTH Station address setting switch •...
  • Page 19: Functions Of The Parts

    Switches to set the station address in hexadecimal. For setting method, refer to "Chapter 3 Setting." Operation mode setting switch (MODE) Switches to set the operation mode. For setting method, refer to "Chapter 3 Setting." Unified Controller nv series Ethernet (EN811) Module Operation Manual...
  • Page 20 Chapter 1 Introducing the EN811 module Serial communication port RS-232C (TOOL) A RS-232C port for maintenance. The connector is a 9-pin D-sub connector (socket). Ethernet RJ-45 connector (EN-A) A communication port for Ethernet. An Ethernet cable (Category 6/Category 5e) is connected. 6F8C1358...
  • Page 21 Chapter 2 Installation and wiring This chapter describes installation and wiring methods of the EN811 module. Before installation and wiring, read this operation manual thoroughly. Installation (installation to the basic unit) ······ 8 Connecting the Ethernet cable ······················ 10 Connecting the serial communication port (RS-232C) cable ·········································································11 Replacing the module ··································...
  • Page 22: Installation (Installation To The Basic Unit)

    Chapter 2 Installation and wiring 2.1 Installation (installation to the basic unit) Before installing or removing the module, WARNING make sure that the basic unit to which the EN8 Mandatory module is installed is turned off. Otherwise, it may cause an electric shock. Do not touch the interior of the product except WARNING the switches.
  • Page 23 After installing it to the basic unit, secure it using the screws at the top and bottom of the module. Basic unit EN811 module Module guide of basic unit Figure 2-1 Installing to the basic unit Unified Controller nv series Ethernet (EN811) Module Operation Manual...
  • Page 24: Connecting The Ethernet Cable

    CAUTION using the transmission protocol. Mandatory When an error occurs such as unable to turn on the power, stop using and contact one of Toshiba's service representatives. If you have any question, consult with one of Toshiba's service representatives. 1000BASE-T/100BASE-TX/10BASE-T Connect the cable in the following steps.
  • Page 25: Connecting The Serial Communication Port (Rs-232C)

    (TOOL) can be used to communicate with the tool. RS-232C is used for communication. The RS-232C cable connector is a 9-pin D-sub connector (socket). module [B21] EN811 Serial communication port (TOOL) RS-232C cable Figure 2-3 Connecting the serial communication port Unified Controller nv series Ethernet (EN811) Module Operation Manual...
  • Page 26: Replacing The Module

    Chapter 2 Installation and wiring Replacing the module Turn off the basic unit. CAUTION When replacing the module, turn off the basic unit and Mandatory make sure that the power is off. Otherwise, failure of the module or electric shock may occur. en changing the switch settings or in case of failure, replace the module in the following steps.
  • Page 27 EN811 module Remove it after making sure that the power of the basic unit is off. Module guide of basic unit Figure 2-4 Replacing the EN811 module Unified Controller nv series Ethernet (EN811) Module Operation Manual...
  • Page 28 Chapter 2 Installation and wiring 6F8C1358...
  • Page 29 Chapter 3 Setting Switch setting ··············································· 16 3.1.1 Station address setting switch (STN-H, STN-L) ····································· 16 3.1.2 Operation mode setting switch (MODE) · 17 Network parameter setting····························· 18 3.2.1 Network ID and subnet mask ················ 18 3.2.2 Station address ···································· 19 3.2.3 Overview of multicast address ···············...
  • Page 30: Switch Setting

    Chapter 3 Setting 3.1 Switch setting The switches that determine the operation mode and station address are on the front panel of the EN811 module. The method to set the switches is shown below. Important • Set the switches that determine the operation mode and station address of the EN811 module before turning the power on.
  • Page 31: Operation Mode Setting Switch (Mode)

    • Never use the maintenance mode. IP address type IP address types include Class B(factory setting), Class C, and tool setting. Tool setting is used to use network parameters set by the engineering tool. Unified Controller nv series Ethernet (EN811) Module Operation Manual...
  • Page 32: Network Parameter Setting

    Chapter 3 Setting 3.2 Network parameter setting The network parameters can be set with the operation mode setting switches and station address setting switches. For methods to set these switches, refer to "Table 3-1 Station address setting" and "Table 3-2 Operation mode setting table."...
  • Page 33: Station Address

    For the registration method, refer to "3.3 Setting with the engineering tool." Controller 1 Controller 2 Controller 3 Controller 6 Controller 5 Controller 4 Group B Group A Figure 3-1 An example of multicast group configuration Unified Controller nv series Ethernet (EN811) Module Operation Manual...
  • Page 34 Chapter 3 Setting In multicast, controllers can be grouped as shown in the example of Figure 3-1. Controllers 1, 2, 4, and 5 belong to Group A, and Controllers 3, 5, and 6 belong to Group B. In this example, multicast addresses are set as follows: •...
  • Page 35: Setting With The Engineering Tool

    For the operation method of the engineering tool, refer to " Unified Controller nv series/Integrated Controller V series nV-Tool(Basic) operation manual "(6F8C1290). Connect the engineering tool and nv series controller via Ethernet. In the nv controller side, connect the RS-232C cable to the serial communication port (TOOL) on the front of the EN811 module (system configuration in Figure 3-2).
  • Page 36: Network Parameter Setting

    Chapter 3 Setting 3.3.1 Network parameter setting Set the network parameters of the EN811 in the following steps. Select the EN811 module from the product tree. Select [Station] under the created system, and select [New (W)] from [File (F)] on the menu bar. Figure 3-3 Station registration screen Set the station name.
  • Page 37 Unit registration screen Add the module to the unit. Select [Module] under the unit, and select [New (W)]. Select "EN811 module" from the module addition dialog. Figure 3-6 Module registration screen Unified Controller nv series Ethernet (EN811) Module Operation Manual...
  • Page 38 Chapter 3 Setting Select the added EN811 module. When [Module parameter] is selected from [File (F)] on the menu bar, the module parameter screen is displayed. Figure 3-7 An example of module registration 6F8C1358...
  • Page 39 Class B sets all of the bits No.6 to 8 of the operation mode setting switches (MODE) of the EN811 module to OFF. IP address : 172.16.64.xx (xx indicates the value of the station address setting switches) Subnet mask : 255.255.192.0 Unified Controller nv series Ethernet (EN811) Module Operation Manual...
  • Page 40 Chapter 3 Setting Class C sets the bits No.6 to OFF, No.7 to OFF, and No.8 to ON of the operation mode setting switches (MODE) of the EN811 module to OFF. IP address : 192.168.0.xx (xx indicates the value of the station address setting switches) Subnet mask : 255.255.255.0 Arbitrary setting sets the bits No.6 to ON, No.7 to ON, and No.8 to ON...
  • Page 41 Select the network under the system, and select [New (W)]. Figure 3-10 Network registration screen Select [EtherLAN] from the network addition dialog. Select the module under the selected [EtherLAN], and then select [New (W)]. Figure 3-11 Network addition dialog Unified Controller nv series Ethernet (EN811) Module Operation Manual...
  • Page 42 Chapter 3 Setting Figure 3-12 Network module registration screen Connect to [EtherLAN]. The EN811 module added previously is displayed on the module addition dialog. Selecting it connects it to EtherLAN. Figure 3-13 Network module addition dialog 6F8C1358...
  • Page 43 Transmission method : RS-232C Port : COM1 (specify the port to use. COM1 in this example) Timeout time (s): 5 Ethernet timeout time (s): 4, Own station setting: Single IP Address: 172.16.64.1 Unified Controller nv series Ethernet (EN811) Module Operation Manual...
  • Page 44 Chapter 3 Setting Figure 3-15 Transmission parameter setting screen After the registration is complete, check that the information of the EN811 module can be read. Figure 3-16 An example of reading EN811 module information 6F8C1358...
  • Page 45: Multicast Address Setting

    (239.128.0.1 in this example). Remark • To register multicast addresses, align them to the top. Figure 3-17 An example of multicast address setting When the registration is complete, click [Download (D)]. Unified Controller nv series Ethernet (EN811) Module Operation Manual...
  • Page 46 Chapter 3 Setting After the download is complete, check that they are set successfully. Figure 3-18 An example of reading EN811 module information Note • If the controller is in a redundant configuration, the module parameters of the EN811 can be downloaded independently by selecting [Primary (P)] and [Secondary (S)] from [Transmission target].
  • Page 47: Multicast Routing Network Setting

    In the network configuration below, it is 3. EN811モジュール EN811 module マルチキャスト Multicast router ルータ マルチキャスト Multicast router ルータ パソコンなど PC, etc. Figure 3-19 An example of multicast routing network configuration The setting example above is shown below. Unified Controller nv series Ethernet (EN811) Module Operation Manual...
  • Page 48: Ethernet Link Speed/Duplex Setting

    Chapter 3 Setting Figure 3-20 An example of multicast routing network setting 3.3.4 Ethernet link speed/duplex setting In the initial setting state, the link speed/duplex is set to [Auto], and it is set to an appropriate link speed/duplex via auto negotiation. However, if auto negotiation does not work properly between the connected device and EN811 module, this setting item can be used to set a fixed link...
  • Page 49: (Router Ip Address) Setting

    (including the subnet part) of the IP address of the EN811 module to be registered (172.16.64.** in this example). The following figure shows an example of system configuration and setting. (172.16.64.100 in this example)(Subnet mask : 255.255.192.0) Unified Controller nv series Ethernet (EN811) Module Operation Manual...
  • Page 50 Chapter 3 Setting EN811 module EN811モジュール 172.16.64.18 172.16.64.100 デフォルト Default ゲートウェイ gateway (ルータ) (router) xx.yy.zz.vv パソコンなど PC, etc. Figure 3-22 System configuration of the default gateway IP address example The following figure shows an example setting in the engineering tool. Figure 3-23 An example of default gateway IP address setting Remark...
  • Page 51: Option Function

    Refer to "7.2 Transmission path diagnosis path diagnosis information." processing IGMP Refer to "3.3.3 Multicast routing network processing setting." Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Unified Controller nv series Ethernet (EN811) Module Operation Manual...
  • Page 52: Network Information

    Chapter 3 Setting 3.4 Network information 3.4.1 LAN control information system view, select the EN811 module, and select [LAN management In the information (N)] fro m [Tool (T)] on the menu bar. Figure 3-24 System view screen 6F8C1358...
  • Page 53: Mib Information

    When [MIB information (M)] in the LAN management information screen is clicked, the details of MIB information are displayed. Remark • MIB: Management Information Base Figure 3-25 LAN management information screen Unified Controller nv series Ethernet (EN811) Module Operation Manual...
  • Page 54 Chapter 3 Setting Figure 3-26 MIB information screen 6F8C1358...
  • Page 55 Chapter 4 Operation This chapter describes the operations of the EN811 module, such as checking before operation, startup, and shutdown.
  • Page 56 Stop using immediately when an error occurs. CAUTION When an error occurs such as unable to turn on the Mandatory power, stop using and contact one of Toshiba's service representatives. Checking before operation Before turning on the power and operating the product, check again that the following are as described in this operation manual: •...
  • Page 57 Chapter 5 Troubleshooting This chapter describes troubleshooting for the EN811 module.
  • Page 58 Contact one of Toshiba's service representatives. Loading the RAS data and system log To load the RAS data and system log, refer to "Unified Controller nv series / Integrated Controller V Series Engineering Tool 4 Basic Operation Manual (6F8C1290)." When loading fails during serial communication Load them again.
  • Page 59 Chapter 6 Maintenance and inspection This chapter describes maintenance and inspection such as daily inspection, periodical inspection, and cleaning. Inspection ·································································46 6.1.1 Daily inspection ············································46 6.1.2 Periodical inspection ····································47 Life limited parts ······················································47...
  • Page 60: Inspection

    • The modular connector is locked. • Cable connection is not loose or has an abnormal appearance. If any abnormality is found, contact one of Toshiba's service representatives. Ventilation hole Check the front panel and upper ventilation hole of the product for dust or stain.
  • Page 61: Periodical Inspection

    To prevent accidents and use the product safely for long-term operation, it is recommended performing a periodical inspection every 6 months. Also, it is recommended replacing life limited parts regularly (refer to "6.2 Life limited parts"). For a periodical inspection, consult with one of Toshiba's service representatives. Life limited parts To use the product safely for a long time, replace the life limited parts regularly.
  • Page 62 Chapter 6 Maintenance and inspection 6F8C1358...
  • Page 63 Chapter 7 Application interface chapter describes information by socket, transmission path diagnosis This information, EN811 module state information, and usage constraints of the application interface. Information by socket ············································51 7.1.1 Configuration of information by single Ethernet socket ·······································································51 7.1.2 Referring to information by socket ·················52 7.1.3 Timing of generation of information by socket53 Transmission path diagnosis information ···········55 7.2.1 Configuration of transmission path diagnosis information...
  • Page 64 Chapter 7 Application interface The EN811 module expands the state information by socket used by the user application as well as diagnosis information of the transmission path to the EN811 modules within the same network on the station bus. Information by socket includes information by single Ethernet socket.
  • Page 65: Information By Socket

    RCL: Upon close request of the single Ethernet socket NOA: Upon close request of the single Ethernet socket The following table shows the station bus address where the information by single Ethernet socket is expanded in word addresses. Unified Controller nv series Ethernet (EN811) Module Operation Manual...
  • Page 66: Referring To Information By Socket

    Chapter 7 Application interface Table 7-1 Station bus addresses Word offset Socket 0 130944 Socket 1 130945 Socket 2 130946 ・ ・ Socket 46 130990 Socket 47 130991 The base address of the station bus address varies depending on the slot where the EN811 module is installed.
  • Page 67: Timing Of Generation Of Information By Socket53

    (Note) When running the controller and then halting it, close is requested by the controller basic software for the socket used by the controller. Figure 7-3 Information by socket and clear timing (1) Unified Controller nv series Ethernet (EN811) Module Operation Manual...
  • Page 68 Chapter 7 Application interface The timing of setting and clearing bit information of information by socket is shown below. ソケット単位情報 Information by socket Passive パッシブ <TCP> <AOP> Reception Close Open オープン 受信 クローズ request request request 要求...
  • Page 69: Transmission Path Diagnosis Information

    Figure 7-5 Configuration of transmission path diagnosis information If the station is in a redundant configuration, diagnosis process is also performed by the EN811 module installed in the ONLINE or STANDBY system to check the Unified Controller nv series Ethernet (EN811) Module Operation Manual...
  • Page 70: Referring To Transmission Path Diagnosis Information

    Chapter 7 Application interface consistency of the transmission path. Even when a changeover of the station between ONLINE and STANDBY occurs, the node diagnosis is continued. 7.2.2 Referring to transmission path diagnosis information The transmission path diagnosis information implementation address is as follows.
  • Page 71: Configuration Of A Transmission Path Diagnosis Frame

    If the cycle is too long, the result of the diagnosis will be "no diagnosis frame received." In the diagnosis of each transmission path, it is diagnosed as normal when there is received data from each system. Therefore, the presence of the received data Unified Controller nv series Ethernet (EN811) Module Operation Manual...
  • Page 72: En811 Module State Information

    Chapter 7 Application interface determines whether the transmission path is diagnosed as normal or abnormal. When sending a diagnosis frame, observe the format as described above. EN811 module state information The transmission request counter (from the controller to EN811 module), transmission packet counter (within the EN811 module), and transmission buffer-related counter are expanded on the station bus as RAS information.
  • Page 73: Usage Constraints

    Use port numbers from 1024 to 65535 other than above. 7.4.2 Frame size constraints The EN811 module does not support jumbo frames. Do not use them in the connected devices such as PCs. Unified Controller nv series Ethernet (EN811) Module Operation Manual...
  • Page 74 Chapter 7 Application interface 6F8C1358...
  • Page 75 Appendix A Specifications A.1 General specifications ···········································62 A.2 Ethernet transmission specifications····················63 A.3 Function specifications···········································63 A.4 Serial communication port (RS-232C) transmission specifications ···························································64...
  • Page 76 Appendix A Specifications A.1 General specifications Table A-1 General specifications Specification Item EN811 Operating temperature 0 to 55°C range (product ambient temperature) Operating humidity 10 to 95%RH (no condensation) range Storage temperature -40 to 70°C range Storage humidity range 5 to 95%RH (no condensation) Power voltage range 4.75 to 5.25VDC (Rating: 5.0VDC) Current consumption...
  • Page 77 Port used by the EN811 module PCMP Port number 10000 Node diagnosis Port number 48000 (Note 1) PCMP is Toshiba's protocol. (Note 2) Check the transmission of the transmission data at the application level. Unified Controller nv series Ethernet (EN811) Module Operation Manual...
  • Page 78 Appendix A Specifications A.4 Serial communication port (RS-232C) transmission specifications Table A-4 Serial specifications Item Specification Data transmission speed Max. 9600bps Synchronization method Asynchronous Transmission cable Cross cable with 9-pin-9-pin D-sub connector Cable length Max. 15m Communication method Full duplex Communication setting ・...
  • Page 79 Appendix B Outside dimensions...
  • Page 80 Appendix B Outside dimensions The following figure shows the outside dimensions of the EN811. EN811 About 262mm 233.35mm 160.00mm About 20mm About 35mm About 12mm Station connector Figure B-1 EN811 outside dimensions 6F8C1358...
  • Page 81 Appendix C Related products...
  • Page 82 Appendix C Related products Table C-1 Related products Product name Rating Remark 9-pin RS-232C cable Standard length 5m D-sub 6F8C1358...
  • Page 83 Appendix D Decimal-hexadecimal conversion table...
  • Page 84 Appendix D Decimal-hexadecimal conversion table Table D-1 Decimal-hexadecimal conversion table Decimal Hexadecimal Decimal Hexadecimal Decimal Hexadecimal Decimal Hexadecimal 6F8C1358...
  • Page 85 Table D-1 Decimal-hexadecimal conversion table Decimal Hexadecimal Decimal Hexadecimal Decimal Hexadecimal Decimal Hexadecimal Unified Controller nv series Ethernet (EN811) Module Operation Manual...
  • Page 86 Appendix D Decimal-hexadecimal conversion table 6F8C1358...
  • Page 87 Appendix E Sample programs...
  • Page 88 Appendix E Sample programs Some examples of simple message transmission programs are provided below for your reference. These programs are implemented by using USEND_N and URCV_N of the communication FB. For detailed explanation of the communication FB, refer to "Unified Controller nv series/Integrated Controller V series Command Manual"...
  • Page 89 MOVE_INT U_S.DIP U_S.Slot 16#0032 U_S.Cmd 16#AC10_4004 MOVE_UINT MOVE_WORD MOVE_DWORD 20013 U_S.DPort US_SIZE MOVE_UINT MOVE_UINT OPEN_ TX_ERROR TX_COMPLETE CLOSE_REQ TX_REQ COMPLETE USEND_N_2 USEND_N TX_COMPLETE TX_REQ DONE TX_ERROR ERROR US_DATA[0] SEND_STATUS STATUS US_SIZE Unified Controller nv series Ethernet (EN811) Module Operation Manual...
  • Page 90 Appendix E Sample programs • Variation definition (UDP reception) OPEN_COMPLETE: BOOL; OPEN_ERROR: BOOL; OPEN_REQ: BOOL; RX_COMPLETE: BOOL; RX_ERROR: BOOL; RX_REQ: BOOL; CLOSE_COMPLETE: BOOL; CLOSE_ERROR: BOOL; CLOSE_REQ: BOOL; RCV_STATUS: INT; CLOSE_STATUS1: INT; UR_DUMMY1: WORD; UR_DUMMY2: UINT; UR_SIZE: UNIT; UR_DATA: ARRAY[0..512] OF WORD; URCV_N_1: URCV_N;...
  • Page 91: Open_Status1

    URCV_N T_SK_COMP T_SK_ERR T_SK_REQ T_SK_REQ T_SK_COMP CO MPLETE DONE T_SK_ERR T_SK_CMD ERROR T_SK T_SK_SOCKET STATUS UINT_TO_WORD WORD_TO_INT INT_TO_DINT MUL_DINT ADD_DINT 1048576 T_SK_SOCKET %MW13.130944[XI] T_SK_DT INT_TO_DINT RX_TRG T_SK_DT AND_WORD EQ_WORD 16#0400 16#0400 Unified Controller nv series Ethernet (EN811) Module Operation Manual...
  • Page 92: Open

    Appendix E Sample programs / * UDP RECEIVE REQUEST */ U_R.Socket OPEN_STATUS1 MOVE_INT 16#0000_0000 U_R.Slot 16#0033 U_R.Cmd U_R.DIP MOVE_UINT MOVE_WORD MOVE_DWORD 20014 U_R.DPort 16#0000 U_R.TimeUp UR_SIZE MOVE_UINT MOVE_UINT MOVE_UINT OPEN_ RX_TRG RX_COMPLETE RX_ ERROR RX_REQ COMPLETE CLOSE_REQ URCV_N_1 URCV_N RX_REQ RX_COMPLETE RX_ERROR ERROR...
  • Page 93: Open_Req

    OPEN_ERROR: BOOL; OPEN_REQ: BOOL; TX_COMPLETE: BOOL; TX_ERROR: BOOL; TX_REQ: BOOL; OPEN_STATUS1: INT; TS_DUMMY: WORD; USEND_N_1: USEND_N; USEND_N_2: USEND_N; SEND_STATUS: INT; CLOSE_REQ: BOOL; TS_DATA: ARRAY[0..511] OF WORD; T_O: typeTCP_OPEN; T_S: typeTCP_SEND; END_VAR Unified Controller nv series Ethernet (EN811) Module Operation Manual...
  • Page 94 Appendix E Sample programs Program (TCP transmission) /* TCP OPEN REQUEST(ACTIVE)*/ T_O.Slot 16#0035 T_O.Cmd T_O.Kind MOVE_UINT MOVE_WORD MOVE_UINT T_O.DPort 30004 T_O.Sport 16#AC10_4004 T_O.DIP 30003 MOVE_DWORD MOVE_UINT MOVE_UINT T_O.TimeUp MOVE_UINT OPEN_ OPEN_ERROR OPEN_REQ COMPLETE USEND_N_1 USEND_N OPEN_COMPLETE OPEN_REQ DONE OPEN_ERROR ERROR TS_DUMMY OPEN_STATUS1 STATUS...
  • Page 95: Open_Error

    T_C: typeTCP_CLOSE; URCV_N_1: URCV_N; USEND_N_1: USEND_N; USEND_N_3: USEND_N; OPEN_STATUS1: INT; TR_DUMMY: WORD; T_SK_CMD: typeTCP_SEND; T_SOCKET: URCV_N; T_SK_REQ: BOOL; T_SK_COMP: BOOL; T_SK_ERR: BOOL; T_SK: INT; T_SK_SOCKET: INT; T_SK_DT: WORD; RX_TRG: BOOL; END_VAR Unified Controller nv series Ethernet (EN811) Module Operation Manual...
  • Page 96 Appendix E Sample programs Program (TCP reception) /*TCP OPEN REQUEST(PASSIVE) */ T_O.Slot 16#0035 T_O.Cmd T_O.Kind MOVE_UINT MOVE_WORD MOVE_UINT 16#AC10_4007 T_O.DIP 30004 T_O.DPort 30003 T_O.SPort MOVE_DWORD MOVE_UINT MOVE_UINT T_O.TimeUp MOVE_UINT OPEN_ OPEN_ERROR OPEN_REQ COMPLETE USEND_N_1 USEND_N OPEN_COMPLETE OPEN_REQ DONE OPEN_ERROR ERROR TR_DUMMY OPEN_STATUS1 STATUS...
  • Page 97 C l ose request (closing when CLOSE_REQ is ON)(for TCP) T_C.Slot 16#0039 T_C.Cmd OPEN_STATUS1 T_C.Socket MOVE_WORD MOVE_INT MOVE_UIN T USEND_N_3 USEND_N CLOSE_CO MPLETE CLOSE_RE Q OPEN_COM PLETE RX_REQ DONE CLOSE_REQ CLOSE_ERROR ERROR TR_DUMMY CLOSE_STATUS1 STATUS 16#0 Unified Controller nv series Ethernet (EN811) Module Operation Manual...
  • Page 98 Appendix E Sample programs 6F8C1358...
  • Page 99 Appendix F Return code list...
  • Page 100 Appendix F Return code list The return codes related to EN811 are shown below. The return codes are outputted via the communication FB. For detailed explanation of the communication FB, refer to "Toshiba Integrated Controller V series/Unified Controller nv series Instruction Word Manual (LD/FBD/SFC/ST)(6F8C1226)."...
  • Page 101 The following table shows the error codes that occur during communication procedures. Table F-2 Communication procedure error code list Communication Return Description procedure value ■ACCEPT ENOBUFS Insufficient resource EBADF Not a valid socket identifier EWOULDBLOCK Socket is set to asymmetric I/O mode, and nothing is waiting for connection EOPNOTSUPP The specified socket is not SOCK_STREAM type...
  • Page 102 Appendix F Return code list Communication procedure error code list (continued) Table F-2 Communication Return Description procedure value ■SEND ■SENDTO EHOSTUNREACH Unable to send to the specified destination ECONNABORTED Connection was disconnected on the local system ENOBUFS Insufficient resource EBADF Not a valid socket identifier EFAULT Argument (buffer pointer) is invalid...
  • Page 103 Unified Controller nv Series Ethernet (EN811) Module Instruction Manual September20, 2019 2nd Edition Industrial Systems Division 72-34, Horikawa-cho, Saiwai-ku, Kawasaki 212-8585, Japan © Toshiba Infrastructure Systems & Solutions Corporation. 2019 All Rights Reserved. No part of this document may be reproduced without permission.
  • Page 104 1358.2.1909...

Table of Contents