Omron CJ Series Connection Manual
Omron CJ Series Connection Manual

Omron CJ Series Connection Manual

General-purpose ethernet connection guide (tcp/ip) for yamaha motor rcx robot controller
Hide thumbs Also See for CJ Series:

Advertisement

Quick Links

No. FST-ZTH130053
CJ Series
General-purpose Ethernet Connection Guide
(TCP/IP)
Yamaha Motor Co., Ltd.
RCX-series Robot Controller
P553-E1-01

Advertisement

Table of Contents
loading

Summary of Contents for Omron CJ Series

  • Page 1 No. FST-ZTH130053 CJ Series General-purpose Ethernet Connection Guide (TCP/IP) Yamaha Motor Co., Ltd. RCX-series Robot Controller P553-E1-01...
  • Page 2 About Intellectual Property Right and Trademarks Microsoft product screen shots reprinted with permission from Microsoft Corporation. Ethernet is a registered trademark of Xerox Corporation. Company names and product names in this document are the trademarks or registered trademarks of their respective companies.
  • Page 3: Table Of Contents

    Table of Contents Related Manuals ..................1 Terms and Definitions ................2 Remarks ..................... 3 Overview ....................5 Applicable Devices and Support Software..........6 5.1. Applicable Devices................6 5.2. Device Configuration................7 Ethernet Communications Settings............9 6.1. Ethernet Communications Settings............ 9 6.2.
  • Page 4: Related Manuals

    1.Related Manuals 1. Related Manuals The table below lists the manuals related to this document. To ensure system safety, make sure to always read and heed the information provided in all Safety Precautions, Precautions for Safe Use, and Precaution for Correct Use of manuals for each device which is used in the system.
  • Page 5: Terms And Definitions

    2.Terms and Definitions 2. Terms and Definitions Term Explanation and Definition IP address Ethernet uses an IP address to perform communications. The IP address (Internet Protocol address) is an address that is used to identify a node (host computer or controller, etc.) on the Ethernet. IP addresses must be set and managed so that they do not overlap.
  • Page 6: Remarks

    (4) It is prohibited to copy, to reproduce, and to distribute a part of or whole part of this document without the permission of OMRON Corporation. (5) This document provides the latest information as of April 2013. The information on this...
  • Page 7 3.Remarks The following notation is used in this document. Precautions for Safe Use Precautions on what to do and what not to do to ensure safe usage of the product. Precautions for Correct Use Precautions on what to do and what not to do to ensure proper operation and performance. Additional Information Additional information to read as required.
  • Page 8: Overview

    The user program in the prepared CX-Programmer project file is used to check the Ethernet connection by sending/receiving the message of “Acquire version information” to/from the destination device. Prepare the latest CX-Programmer project file beforehand. To obtain the file, contact your OMRON representative. Name File name Version CX-Programmer project file YAMAHA_RCX_ETN(TCP)_EV100.cxp...
  • Page 9: Applicable Devices And Support Software

    5.Applicable Devices and Support Software 5. Applicable Devices and Support Software 5.1. Applicable Devices The applicable devices are as follows: Manufacturer Name Model OMRON Ethernet Unit CJ1W-ETN21 OMRON CJ2 CPU Unit CJ2[]-CPU[][] YAMAHA Robot Controller MOTOR (4-axis controller) RCX240/RCX240S (2-axis controller)
  • Page 10: Device Configuration

    MOTOR Precautions for Correct Use Prepare the latest ladder program beforehand. (To obtain the files, contact your OMRON representative.) Precautions for Correct Use Update the CX-Programmer to the version specified in this section or higher version using the auto update function. If a version not specified in this section is used, the procedures described in Section 7 and subsequent sections may not be applicable.
  • Page 11 It may not be possible to reproduce the same operation with different devices or versions. Check the configuration, model and version. If they are different from your configuration, contact your OMRON representative. Additional Information The system configuration in this document uses USB for the connection between the personal computer and PLC.
  • Page 12: Ethernet Communications Settings

    6.Ethernet Communications Settings 6. Ethernet Communications Settings This section provides the specifications of the communications parameters that are set in this document and outlines the operation. Additional Information To perform communications without using the settings specified in this section, you need to modify the program.
  • Page 13: Example Of Connection Check

    6.Ethernet Communications Settings 6.2. Example of Connection Check This document uses an example of the ladder program in which the PLC executes TCP socket open, send/receive, and socket close processing on the Robot Controller. The PLC and Robot Controller send and receive the message of “Acquire version information”. The following figure outlines the operation.
  • Page 14: Connection Procedure

    7.Connection Procedure 7. Connection Procedure This section explains the procedure for connecting the Robot Controller to the PLC via Ethernet. This document explains the procedures for setting up the PLC and Robot Controller from the factory default setting. For the initialization, refer to Section 8 Initialization Method. 7.1.
  • Page 15: Setting Up The Yamaha Motor Robot Controller

    7.Connection Procedure 7.2. Setting Up the YAMAHA MOTOR Robot Controller Set up YAMAHA MOTOR Robot Controller. 7.2.1. Parameter Setting Set the parameters for the Robot Controller. It is assumed that the YAMAHA network board RCX series Ethernet is already mounted on the optional port OP.1 at the time of shipment.
  • Page 16 7.Connection Procedure Press the MODE Key on the programming box to switch to SYSTEM mode. *The controller as 4 highest hierarchy modes: AUTO, PROGRAM, MANUAL, and SYSTEM. Press F4 Key (SYSTEM). *Refer to the figure on the right for allocations of the Fn Keys (F1 to F5) located in the lower [F1] [F2]...
  • Page 17 7.Connection Procedure The figure on the right is SYSTEM>PARAM>OP.BRD>SELECT V10.57 displayed. Select board 1.board condition INVALID condition with the cursor (↑/↓) 2.IP address 192.168.0.2 keys. 3.subnet mask 255.255.255.0 4.gateway 192.168.0.1 5.port No 6.echo back VALID 7.timeout[min] 8.login check VALID 9.login user USER 10.login password PASSWORD...
  • Page 18 7.Connection Procedure Set the following values by using SYSTEM>PARAM>OP.BRD>SELECT V10.57 the keys of the programing box 1.board condition VALID in the same way as steps 8 and 2.IP address 192.168.250.2 3.subnet mask 255.255.255.0 4.gateway 192.168.0.1 1.board condition:VALID 5.port No 2.IP address:192.168.250.2 6.echo back INVALID 7.timeout [min]...
  • Page 19: Setting Up The Plc

    7.Connection Procedure 7.3. Setting Up the PLC Set up the PLC. 7.3.1. Hardware Setting Set the hardware switches on the Ethernet Unit. Precautions for Correct Use Make sure that the power supply is OFF when you perform the setting up. Make sure that the power supply to the PLC is OFF when you perform the settings.
  • Page 20 Select Open from the File Menu. On the Open CX-Programmer Project Dialog Box, select the YAMAHA_RCX_ETN(TCP)_EV 100.cxp and click the Open Button. *Obtain the project file from OMRON. After opening the project file, select Programs in the project workspace. (Project workspace)
  • Page 21 7.Connection Procedure Select Change Model from the PLC Menu. The Change PLC Dialog Box is displayed. Select a device type of the PLC to use from the pull-down list of the Device Type, and click the Settings Button. *CJ2M is selected in this document.
  • Page 22 7.Connection Procedure Confirm that the Network Type is set to USB on the Change PLC Dialog Box and click the OK Button. *When the Network Type is not set to USB, select USB from the pull-down list. *If you change the Device Type in step 6 or the CPU Type in step 7, the dialog box on the right will be displayed.
  • Page 23 7.Connection Procedure The dialog box on the right is displayed. Click the Yes Button. Confirm that the CX-Programmer and the PLC are normally connected online. is shown during *The icon online connection. Additional Information If the CX-Programmer and PLC are not connected online, please check the connection of the cable.
  • Page 24 7.Connection Procedure 7.3.3. Creating the I/O Table Create the I/O table for the PLC. If the operating mode of the PLC is RUN Mode or Monitor Mode, change it to Program Mode, by following steps (1) to (3). (1)Select Operating Mode - Program from the PLC Menu of the CX-Programmer.
  • Page 25 7.Connection Procedure Select Create from the Options Menu of the PLC I/O Table Window. The dialog box on the right is displayed. Click the Yes Button. The dialog box on the right is displayed. Click the Yes Button. The Transfer from PLC Dialog Box is displayed.
  • Page 26 7.Connection Procedure 7.3.4. Parameter Setting Set the parameters for the Ethernet Unit. Double-click the [0000] Main Rack on the PLC IO Table Window to display a tree. Right-click 00[1500]CJ1W-ETN21 (ETN21Mode), and select the Unit Setup. The Edit Parameters Dialog is displayed.
  • Page 27 7.Connection Procedure The dialog box on the right is displayed. Click the Yes Button. The dialog box on the right is displayed when transfer is completed. Click the Close Button. The dialog box on the right is displayed. Click the Yes Button. The dialog box on the right is displayed.
  • Page 28 7.Connection Procedure To confirm that IP address was correctly changed, click Compare Button. The dialog box on the right is displayed when the parameter settings match. Click the Close Button. Click the OK Button on the Edit Parameters Dialog Box. Close the Edit Parameters Dialog Box and the PLC I/O Table Window.
  • Page 29 7.Connection Procedure 7.3.5. Transferring the Project Data Transfer the project data to the PLC. Select Programs on the project workspace of CX-programmer, and select Transfer - To PLC from the PLC Menu. Select the Program(s) Check Box, Comments Check Box, and Program index Check Box, and click the OK Button.
  • Page 30 7.Connection Procedure The dialog box on the right is displayed. Click the Yes Button. The dialog box on the right is displayed (stating Download successful) when the transfer is completed. Click the OK Button. Select Programs in the project workspace, and select Transfer - Compare with PLC from the PLC Menu.
  • Page 31: Checking The Ethernet Communications

    7.Connection Procedure 7.4. Checking the Ethernet Communications Execute the program and confirm that Ethernet communications are normally performed. Confirm safety sufficiently before monitoring power flow and present value status in the Ladder Section window or before monitoring present values in the Watch window.
  • Page 32 7.Connection Procedure Confirm that the operating mode was changed to Monitor Mode. On the ladder window, right-click Input_Start on the block 0 and select Set - On. Confirm that the Input_Start contact is turned ON as shown in the right figure. Select Edit - Memory from the PLC Menu.
  • Page 33 7.Connection Procedure Double-click D from a list in the PLC Memory Window. (PLC Memory Window) On the D Window, enter 10000 in the Start Address Field. Confirm that the start address was changed to D10000. Select Monitor from the Online Menu.
  • Page 34 7.Connection Procedure On the D Window, check the received data. *The number of bytes to receive is stored in D10000. The value is 0045 in hexadecimal (69 in decimal), which are 34.5 words. The received data are stored in between D10001 and D10034 and in the upper byte of D10035.
  • Page 35: Initialization Method

    8.Initialization Method 8. Initialization Method This document explains the setting procedure from the factory default setting. If the device settings are changed from the factory default setting, some settings may not be applicable as described in this procedure. 8.1. Initializing the PLC To initialize the PLC, it is necessary to initialize the Ethernet Unit and the CPU Unit.
  • Page 36: Yamaha Mortor Robot Controller

    8.Initialization Method 8.1.2. CPU Unit To initialize the settings of the CPU Unit, select Clear All Memory Areas from the PLC Menu of the CX-Programmer. On the Confirm All Memory Area Clear Dialog Box, select the Initialize Option and click the OK Button. 8.2.
  • Page 37: Program

    OMRON evaluation conditions including the test system configuration, version of each product, and product Lot, No. of each device which was used for evaluation. OMRON does not guarantee the normal operation under the disturbance such as electrical noise and the performance variation of the device.
  • Page 38 9.Program 9.1.1. Communications Data Flow The following figure shows the data flow from when the PLC issues the command data with TCP socket communications to the destination device until when the PLC receives the response data from the destination device. This program continuously executes a series of processing from the TCP open processing to the close processing.
  • Page 39 9.Program 9.1.2. TCP Socket Communications by Manipulating a Dedicated Control Bit This section explains the TCP socket communications manipulating a dedicated control bit and outlines the general operations of the send/receive messages. Additional Information For details, refer to Section 6 Socket Services of the CJ-series Ethernet Units Operation Manual Construction of Applications (Cat.
  • Page 40 9.Program (3)[m+20, m+21] Destination IP Address •Specify the IP address of the destination device. [m+20] stores the first and second octets of the destination IP address, and [m+21] stores the third and fourth octets. (m+20) (m+21) Destination Destination Destination Destination IP address 1 IP address 2 IP address 3...
  • Page 41 9.Program ●Send/receive messages Send message (Remote command) Destination Remote command {, Parameter (if there is a parameter)} Terminator device Receive message (Response) Terminator Remote command, Parameter {,Warning code (if there is a warning code)} Receive message (Error response) Remote command , Error code Terminator ●Communications sequence TCP communications are performed between the destination device (server) and PLC...
  • Page 42: Destination Device Command

    9.Program 9.2. Destination Device Command This section explains the destination device command. 9.2.1. Overview of the Command This program reads the version information of the destination device by using the “Acquire version information” command. Command Description ?VER Acquires version information Additional Information Refer to Chapter 12 Online commands in the YAMAHA ROBOT CONTROLLER RCX series Programming Manual (E76) for details.
  • Page 43 9.Program ●Receive data (response) that is stored (D10000) <Specifications of the destination device> •The response is stored in ASCII code. Word Description (Data type) Description Stores the number of receive bytes (2  n bytes) D10000 No. of receive bytes (4-digit hex) D10001 Receive data 1 (4-digit hex) Stores 1...
  • Page 44: Error Detection Processing

    9.Program 9.3. Error Detection Processing This section explains the error detection processing of this program. 9.3.1. Error Detection of this Program This program detects and handles the following errors (1) to (4). For information on error codes, refer to 9.7.1. Error Code List. CJ2M-CPU12+ Destination device CJ1W-ETN21...
  • Page 45 9.Program (4) TCP connection status error when ending the processing With this program, the close processing is always performed at the end of the whole processing regardless of whether each processing from the open processing to the receive processing ends normally or abnormally. The TCP connection status in the allocated DM area is used to detect whether the close processing ends normally.
  • Page 46 9.Program 9.3.2. Time Monitoring Function This section explains the time monitoring function of this program. You can change the monitoring time by changing the setting values in the program. ●Time monitoring function of the communication instruction processing To avoid errors that keep a communications process executing without a stop, the timer in this program is used to abort the processing (timeout).
  • Page 47 9.Program ●Resend/time monitoring functions of the PLC (TCP/IP) When a communication problem occurs, TCP/IP will automatically resend the data and monitor the processing time if there is no error in the PLC. If the processing ends in an error, this program will perform the close processing and stop the TCP/IP resend/time monitoring function.
  • Page 48: Memory Maps

    9.Program 9.4. Memory Maps This section shows the memory maps of this program. 9.4.1. Lists of Addresses The tables below list the addresses necessary to execute this program. You can change the allocation below to any addresses. Precautions for Correct Use Make sure there is no duplicated address when changing the addresses.
  • Page 49 9.Program Address Data Symbol name Explanation type 5020 UINT Input_ReceiveProcessingRequiredNotRequired Sets the receive processing required/not required setting considering whether there is a response from the destination device to the command sent from the PLC. When the receive processing is not required: Sets &0 This program does not wait for an arrival of the receive data at the send processing, skips the...
  • Page 50 9.Program Address Data Symbol name Explanation type D10000 Output_NoOfBytesToRecei Stores the number of bytes to receive. D10001 WORD Output_ReceiveData[0] Stores the receive data (response). [2000] (2000-word area is secured.) D10002 Output_ReceiveData[1] D12000 Output_ReceiveData[1999] H400 WORD Output_OpenErrorCode Stores the error code for a communications error or timeout error detected during open processing.
  • Page 51 9.Program ●Internal addresses These addresses are used to operate this program only. Address Data Symbol name Explanation type 5000.01 BOOL Local_CommunicationsInProgress Turns ON when this program is being operated. Turns OFF when not operated. 5000.02 BOOL Local_ReceiveProcessingRequired When this flag ON, the receive processing is performed after the send...
  • Page 52 9.Program Address Data Symbol name Explanation type 5003.06 BOOL Local_ReceiveRepeatON Turns ON when repeating the receive processing is necessary. 5003.07 BOOL Local_ReceiveRequestON Used to manipulate a dedicated control bit for a receive request. This flag changes between ON and OFF repeatedly when repeating receive processing...
  • Page 53 9.Program Address Data Symbol name Explanation type 5007.02 BOOL Local_LogoutErrorEnd Turns ON when the logout processing ends in error. 5007.03 BOOL Local_LogoutResponseCodeError Turns ON when an error is indicated by the response code of the socket service parameter area (allocated DM area) after the logout processing.
  • Page 54 9.Program Address Data Symbol name Explanation type remainder that is obtained by 5117 UINT Local_ReceiveDataOddEvenDeterminati Stores the dividing the number of bytes by 2 to calculate the number of words of the stored receive data. This is used to determine whether or not the stored receive data has an odd number of bytes.
  • Page 55 9.Program Address Data Symbol name Explanation type 5146 UINT Local_DestinationDeviceErrorCodeLowe Stores the data (HEX value) that indicates r_UINT the error classification number when a destination device error occurs. 5147 UINT Local_DestinationDeviceErrorCodeLowe Stores the data (BCD value) that indicates _BCD r_UINT_BCD the error classification number when a destination device error occurs.
  • Page 56 9.Program 9.4.2. List of Fixed Allocations The tables below list the addresses necessary to execute this program. They are fixed addresses determined by the unit address (unit number) that is set for the Ethernet Unit and the socket number used. Therefore, you cannot change these allocations. With this program, the unit number is set to 0, the TCP socket number is 8 and the socket service parameter area is 8.
  • Page 57: Ladder Program

    9.Program 9.5. Ladder Program 9.5.1. Functional Components of the Ladder Program The functional components of this program are shown below. Major classification Minor classification Description 1. Start & Set 1.1. Start processing The communications processing starts, the command and parameters are set, 1.2.
  • Page 58 9.Program 6. Logout 6.1. Logout processing start The logout processing is performed. processing 6.2. Socket service parameter area The processing is performed when the setting PLC sends a logout command to the destination device. 6.3. Send request dedicated control bit 6.4.
  • Page 59 9.Program 9.5.2. Detailed Description of Each Functional Component This section shows the program. To change the communications settings, edit the code indicated by the red frames. ●1. Start&Set Function Description 1.1. Start processing Turns ON the Input_Start Switch and starts the communications processing.
  • Page 60 9.Program Function Description 1.3. Logout command setting Sets the command and the number of logout commands. 1.4. Control word setting Sets the monitoring time for each processing. Sets the receive processing required/not required setting.
  • Page 61 9.Program Function Description 1.5. Common parameter setting Sets the parameters common to TCP socket communications. 1.6. Receive data storage area Clears the receive area. setting Precautions for Safe Use Make sure to sufficiently check the overall program before changing the receive data storage area.
  • Page 62 9.Program Function Description 1.7. Error code storage area Initializes the error code storage areas. initialization 1.8. Receive processing Reflects the receive processing required/not required setting in required/not required flag the flag. setting 1.9. Initialization setting end Turns ON the initialization setting end flag. processing...
  • Page 63 9.Program ●2. Open processing Function Description 2.1. Open processing start Starts the open processing. The open processing ends by shifting to the send processing or close processing. 2.2. Socket service parameter area Sets the parameter necessary for the open processing. setting •Clears the response code storage area.
  • Page 64 9.Program Function Description 2.4. Normal/error determination Determines whether the open processing ends normally, ends processing in error or times out. In the case of normal end, the program shifts to the send processing. In the case of error end, it shifts to the close processing.
  • Page 65 9.Program  3. Connection check processing Function Description 3.1. Connection check processing Starts the connection check processing. start The connection check processing ends by shifting to the send processing. 3.2. Socket service parameter area Sets the parameters necessary for the receive processing to setting check the connection.
  • Page 66 9.Program Function Description 3.3. Receive request ON Turns ON the receive request dedicated control bit by manipulating the Receive request ON. (Changing between ON and OFF the Receive request ON repeats the receive processing.) 3.4. Receive request dedicated Starts the connection check processing monitoring timer, and control bit ON turns ON the dedicated control bit for the receive processing request.
  • Page 67 9.Program Function Description 3.5. Normal/error determination Determines whether it is necessary to repeat the receive processing processing after the connection check processing, or determines whether the processing ends normally, ends in error or times out. The program shifts to the send processing after the connection check processing ends.
  • Page 68 9.Program...
  • Page 69 9.Program Function Description 3.6. Receive data storage and When it is determined in 3.5 Normal/Error Determination concatenation Processing that the receive processing needs to be repeated, the stored receive data and new receive data are concatenated. If the stored receive data has an odd number of bytes, the lower 1 byte of the last word that stores the receive data is blank.
  • Page 70 9.Program  4. Send processing Function Description 4.1. Send processing start Starts the send processing The send processing ends by shifting to the receive processing or the logout processing. 4.2. Socket service parameter area Sets the parameters necessary for the send processing. setting •Sets the number of bytes to send.
  • Page 71 9.Program Function Description 4.4. Normal/error determination Determines whether the send processing ends normally, ends processing in error or times out. In the case of normal end, the program shifts to the receive processing. In the case of error end, it shifts to the logout processing.
  • Page 72 9.Program  5. Receive processing Function Description 5.1. Receive processing start Starts the receive processing when the receive processing required setting is set. The receive processing is skipped when the receive processing not required setting is set. The receive processing ends by shifting to the logout processing.
  • Page 73 9.Program Function Description 5.3. Receive request ON Turns ON the receive request dedicated control bit by manipulating the Receive request ON. (Changing between ON and OFF the Receive request ON repeats the receive processing.) 5.4. Receive request dedicated Starts the receive processing monitoring timer, and turns ON control bit ON the dedicated control bit for the receive processing request.
  • Page 74 9.Program Function Description 5.5. Normal/Error Determination Determines whether it is necessary to repeat the receive Processing processing, and determines whether the processing ends normally, ends in error, or times out, or a destination device error occurs after the receive processing. The program shifts to the logout processing after the receive processing ends.
  • Page 75 9.Program Function Description 5.6. Receive data storage and When it is determined in 5.5. Normal/Error Determination concatenation Processing that the receive processing needs to be repeated, the stored receive data and new receive data are concatenated. If the stored receive data has an odd number of bytes, the lower 1 byte of the last word that stores the receive data is blank.
  • Page 76 9.Program...
  • Page 77 9.Program Function Description 5.7. Destination device error code When it is determined in 5.5. Normal/Error Determination editing Processing that the there is a destination device error, a string with an error code is extracted from the receive data and it is converted into hexadecimal data.
  • Page 78 9.Program Function Description 5.8. Error code storage area When it is detected in 5.5. Normal/Error Determination setting Processing that the processing ends normally, #0 is set in the error code storage area. When it is detected in 5.5 Normal/Error Determination Processing that the processing ends in error, the following values are set in the error code storage areas.
  • Page 79 9.Program  6. Logout processing Function Description 6.1. Logout processing start Starts the logout processing. By shifting to the close processing, the logout processing ends. 6.2. Socket service parameter area Sets the parameters necessary for the send processing to setting logout.
  • Page 80 9.Program Function Description 6.3. Send request dedicated Starts the logout processing monitoring timer and turns ON the control bit ON dedicated control bit for the send processing request for logout. 6.4. Normal/Error determination Determines whether the send processing ends normally, ends processing in error or times out.
  • Page 81 9.Program  7. Close processing Function Description 7.1. Close processing start Starts the close processing The close processing ends when the communications processing ends (when shifting to the non-execution status). 7.2. Socket service parameter area Sets the parameter necessary for the close processing. setting •Clears the response code storage area.
  • Page 82 9.Program Function Description 7.4. Normal/error determination Determines whether the close processing ends normally, ends processing in error, or times out, or determines whether a close status error occurs. The communications processing ends after the close processing.
  • Page 83 9.Program Function Description 7.5. Error code storage area When it is determined in 7.4. Normal/Error Determination setting Processing that the processing ends normally, #0 is set in the error code storage area. When it is determined in 7.4. Normal/Error Determination Processing that the processing ends in error, the following values are set in the error code storage area.
  • Page 84: Timing Charts

    9.Program 9.6. Timing Charts The timing charts of the program are shown below. ●Start & set Input_Start 5000.00 Communications in progress 5000.01 Send data area **** D9000 to D9128 Control data **** 5010 to 5020 Common parameter area **** D30088 to D30092 Receive data area 0000 D10000 to D12000...
  • Page 85 9.Program ●Connection check processing Open normal end Open normal end Open normal end 5001.01 5001.01 5001.01 Connection check executing Connection check executing Connection check executing 5006.00 5006.00 5006.00 Connection check request ON Connection check request ON Connection check request ON 5006.07 5006.07 5006.07...
  • Page 86 9.Program ●Send processing Connection check normal end Connection check normal end Connection check normal end 5006.01 5006.01 5006.01 Send executing Send executing Send executing 5002.00 5002.00 5002.00 Send monitoring timer Send monitoring timer Send monitoring timer T1001 T1001 T1001 Send request bit Send request bit Send request bit 1522.11...
  • Page 87 9.Program ●Receive processing Send normal end Send normal end 5002.01 5002.01 Send normal end Receive executing Receive executing 5003.01 5003.00 5003.00 Receive executing Receive request ON Receive request ON 5003.00 5003.07 5003.07 Receive request ON Receive monitoring timer Receive monitoring timer 5003.07 T1002 T1002...
  • Page 88 9.Program ●Logout processing Receive normal end Receive normal end Receive normal end 5003.01 5003.01 5003.01 Logout executing Logout executing Logout executing 5007.00 5007.00 5007.00 Logout monitoring timer Logout monitoring timer T1005 Logout monitoring timer T1005 T1005 Send request bit Send request bit 1522.11 Send request bit 1522.11...
  • Page 89 9.Program ●Close processing Logout normal end 5007.01 Logout normal end Logout normal end 5007.01 Close executing 5007.01 5004.00 Close executing Close executing 5004.00 5004.00 Close monitoring timer T1003 Cose monitoring timer Close monitoring timer T1003 T1003 Close request bit 1522.13 Close request bit Close request bit 1522.13...
  • Page 90: Error Process

    9.Program 9.7. Error Process 9.7.1. Error Code Lists The following tables list the error codes for errors that occur during the execution of this program. ●Socket service response code list The response codes for each processing are stored in the following words. Word Description H400...
  • Page 91 9.Program Additional Information For details, refer to 6-7-6 Response Codes in Section 6 Socket Services of the CJ-series Ethernet Units Operation Manual Construction of Applications (Cat. No. W421). Additional Information For details on the Ethernet Unit errors and troubleshooting, refer to 8-4 Troubleshooting Procedures in Section 8 Troubleshooting of the CJ-series Ethernet Units Operation Manual Construction of Networks (Cat.
  • Page 92 9.Program ●Destination device error code H402 stores the error codes for the destination device errors that are detected during the connection check processing. The error codes are given below. Error code Description #0000 Normal end #F112 A destination command error occurred during the connection check processing. #FFFF No destination device error detected for some reason.
  • Page 93 9.Program 9.7.2. TCP Connection Status Error and Corrective Action This section explains the status when the TCP connection status error occurs and its corrective action. ●Affects of the TCP connection status error After the TCP connection status error occurs, if this program is executed again without any corrective action or without notifying the error, then the destination device may not be passively opened (hereinafter referred to as an open processing error).
  • Page 94 9.Program ●PLC status when the TCP connection status error occurs When the TCP connection status error occurs, the processing of this program is completed. However, the resend/time monitoring function of the PLC (TCP/IP function), which is described in 9.3.2. Time Monitoring Function, may be operating. This resend processing stops in the following cases.
  • Page 95: Revision History

    10.Revision History 10. Revision History Revision Date of revision Revision reason and revision page code 2013/04/16 First edition...
  • Page 96 2013 -E1-01 0911(-)

This manual is also suitable for:

Cj2h-cpu6 eip seriesCj2h-cpu6 seriesCj2m-cpu seriesCj1w-etn21Cj2m-cpu12W4s1-05c ... Show all

Table of Contents