background image

NJI-543C (X) 

HITACHI PROGRAMABLE CONTROLLER 

 

 

Ethernet Module 2(EH-ETH2) 

APPLICATION MANUAL

 

 

Содержание EH-150 Type I

Страница 1: ...NJI 543C X HITACHI PROGRAMABLE CONTROLLER Ethernet Module 2 EH ETH2 APPLICATION MANUAL ...

Страница 2: ...eral repair Investigations and repairs outside the warranty period 1 year will be charged Also we will repair damages caused by any reason not covered by the warranty and investigate the cause of malfunctions for a charge within the warranty period Please contact the place of purchase or one of our service stations Research may not be possible depending on the area of malfunction Ordering parts or...

Страница 3: ...mstances items marked with may result in major accidents In any case they both contain important information so please follow them closely Icons for prohibited items and required items are shown below Indicates prohibited items items that may not be performed For example when open flames are prohibited is shown Indicates required items items that must be performed For example when grounding must b...

Страница 4: ...he terminals while the power is on There is risk of electric shock Structure the emergency stop circuit interlock circuit etc outside the programmable controller hereinafter referred to as PLC Damage to the equipment or accidents may occur due to failure of the PLC However do not interlock the unit to external load via relay drive power supply of the relay output module CAUTION When performing pro...

Страница 5: ...eat place in fire or short circuit the battery There is a risk of explosion or fire PROHIBITED Do not disassemble or modify the unit These actions may result in fire malfunction or malfunction CAUTION Turn off the power supply before removing or attaching module unit Electric shock malfunction or failure may result ...

Страница 6: ...is added to section 6 3 Connection with LADDER EDITOR for Windows NJI543B X Oct 2010 Procedure of uploading of setup file setup dat of EH ETH is added to section 5 4 4 Downloading and Uploading of Setup file NJI543C X Jun 2012 Automatic Sending Receiving function ASR Receiving area byte order error correction ...

Страница 7: ...ss to EH ETH2 Configurator 5 6 5 2 6 Initial screen structure of EH ETH2 Configurator 5 7 5 2 7 Configuration on Ethernet Parameters window 5 8 5 2 8 Ethernet parameters setting error code 5 10 5 3 Configuration of Ethernet parameters by user program 5 11 5 4 Configuration of ASR parameters 5 19 5 4 1 Configuration of ASR General Information 5 19 5 4 2 Configuration of ASR connection 5 21 5 4 3 Co...

Страница 8: ...ontrol register RDCR 8 9 Error clear 1 control register EC1CR 8 10 Error clear 2 control register EC2CR 8 10 Error clear 3 control register EC3CR 8 11 Close mode control register CMCR 8 11 8 3 How to access registers 8 13 8 3 1 Command processing summary and usage 8 15 8 3 2 Software reset function 8 22 8 4 Data Registers 8 23 WX data register 8 23 WY data register 8 24 Chapter 9 Maintenance Check...

Страница 9: ... 4 To close the connection to other station 7 12 5 To close the connection with Close mode control enabled 7 15 6 To refresh receiving area with Optional receiving mode 7 21 7 To execute event sending 7 24 8 To read Status Register 8 18 9 To write to Control Register 8 20 10 To execute software reset 8 22 11 To execute error reset 10 7 ...

Страница 10: ...7 X Ethernet module Ethernet Module 2 EH ETH2 APPLICATION MANUAL NJI 543 X The last character of the manual number may be modified when the product is revised Notes The contents of this manual may be modified without previous notice 1 1 Before to use This module is manufactured carefully But when you receive this Ethernet Module kindly to check the following matters 1 If the model name is correct ...

Страница 11: ...able TCP IP or UDP IP as the communication protocol for each connection The maximum sending or receiving data size on each ASR connection is 1 454 bytes ASR is omission of Automatic Sending Receiving When you use cyclic transmission function and automatic transmission function of ASR you can send receive a data without making a ladder user program Task code communication is original communication ...

Страница 12: ...t is possible for EHV CPU to use 8 pcs of EH ETH2 at once 1 with one basic base unit And it is possible for EH CPU to use 2 pcs of EH ETH2 at once 1 with one basic base unit Can not use it on the extension base units 0 1 2 3 4 5 6 7 Slot No EH ETH2 mountable slot EHV CPU or EH CPU516 548 2 0 1 2 3 4 Slot No EH ETH2 mountable slot Other supported CPUs 1 When you use EH ETH2 together with EH ETH the...

Страница 13: ...ection This is connection which is called message communication for data communication in generally ASR parameters This is general terms of parameter including communication protocol logic port number other node information etc to set each ASR connection Communication parameter Ethernet parameters and ASR parameters Task code This is original communication protocol for H EH series PLC Task code co...

Страница 14: ...xample of FA system consisting of combined EH 150 communication systems CPU LINK Ethernet network DeviceNet network 1 EH ETH2 2 EH LNK 3 EH RMD 4 EH IOCD 5 Hitachi inverter 6 Hitachi servo 1 1 2 3 2 4 5 6 Figure 2 1 An example of FA system configuration with EH 150 series 2 1 ...

Страница 15: ...oise 3 000 V at metal exposed area Conforms to IEC61131 2 Vibration resistance Conforms to IEC60068 2 6 Usage environment No corrosive gases no excessive dust Structure Attaches to an open wall Cooling Natural air cooling Number of modules EH CPU 2 units CPU EHV CPU 8 units CPU I O assignment method COMM 3 2 Performance Specifications The performance Specifications of this module are shown in Tabl...

Страница 16: ... only specifying the attention of destination area of source and time of cyclic There is no need to prepare the user program to take care the operation for sending 2 Event Sending The user program is required to control the everything related with sending operation Receiving data There are two types Receiving mode One is Normal mode The other is Optional mode Normal mode This should be specified w...

Страница 17: ... Refer to Section 4 2 LED indications for details 2 E CLR switch Used to clear error 3 Reset switch Used to restart the module 4 Dip switch Used to set operation mode 5 RS 232C connector No use 6 Ethernet connector RJ45 type connector LINK LED Green Cable is connected Transfer speed LED Orange 10Mbps Green 100Mbps 7 Lock button When dismounting the module from a base unit press this button and lif...

Страница 18: ...figuration mode Via the Ethernet make Communication parameters setting by EH ETH2 Configurator So require setting temporally IP address to connect to EH ETH2 Configurator 3 top octet of temporally IP address is fixed value 192 168 0 By dip switches No 4 to 8 set lowest octet of temporally IP address 192 168 0 0 No 4 to 8 are all off is invalid Therefore the range of assignable temporally IP addres...

Страница 19: ...etected communication error ERR OFF The module does not detect communication error ON The module is sending data in Ethernet port TX1 OFF The module is not sending data in Ethernet port ON The module is receiving data in Ethernet port RX1 OFF The module is not receiving data in Ethernet port ON At least one of task code port is opened TCP IP only TSK OFF None of task code port is opened ON The mod...

Страница 20: ...nking ON OFF 0 0 25 0 5 0 75 1 0 1 25 1 5 1 75 2 0 2 25 2 5 2 75 3 0 3 25 3 50 3 75 s ASR send error At sending data there is an error of data transmission between EH ETH2 and CPU module or there is a request for sending data to EH ETH2 before EH ETH2 has not completed the previous data sending process ASR Information setting error An error has been detected in ASR Information Set correct value an...

Страница 21: ...ue 30 s Logical port number of self station 3004 Task code port 1 Type of service TCP IP Logical port number of self station 3005 Task code port 2 Type of service TCP IP Logical port number of self station 3006 Task code port 3 Type of service TCP IP Logical port number of self station 3007 For Task code communication usage Task code port 4 Type of service TCP IP There are two ways to configure th...

Страница 22: ... setting Section 5 4 1 to 3 3 Downloading Uploading of setup file Section 5 4 4 4 Other Information of firmware version Reset Module button Section 5 2 6 5 2 1 Setting procedure Figure 5 1 shows the outline of setting procedure Connect PC and EH ETH2 with LAN cable and HUB Confirm the network setting of PC After changing the dip switch on EH ETH2 power on PLC Open EH ETH2 Configurator on PC Set Co...

Страница 23: ...cess EH ETH2 Configurator the setting of PC must be the below condition 1 Subnet mask is 255 255 255 0 2 IP address s top 3 octets is 192 168 0 and 4th octet is not duplicated the EH ETH2 s 1 1 EH ETH2 IP address 4th octet is set by dipswitch 4 to 8 Tentatively in case of subnet mask is 255 255 255 0 at PC side and IP address is 192 168 0 128 you do not need to set network setting at PC side Recom...

Страница 24: ...Furthermore PC s OS is Windows2000 or later IP address 1 Open Network in control panel Click TCP IP protocol and Property button 2 Select IP address tag input 192 168 0 128 in IP address 3 Click OK button If you are requested to restart PC execute restarting PC With over the network setting change of the PC is completion 5 4 ...

Страница 25: ...ion mode Bit No 1 2 3 4 5 6 7 8 Description ON OFF OFF IP address 4th octet b 00001 to b 11111 1 to 31 Set Ethernet parameters by EH ETH2 Configurator Table 5 4 shows the example of IP address for Configuration mode in relation to states of dip switches Table 5 4 Example of dip switch setting States of dip switches 4 5 6 7 8 Bin Hex Dec Temporaly IP address for Configuration mode OFF OFF OFF OFF O...

Страница 26: ...ER OP2 OP6 Figure 5 4 STS LED condition Caution You can access EH ETH2 Configurator without I O assignment but you can not use on line connection of LADDER EDITOR for Windows or Control Editor via Ethernet and ASR connection data transmission without I O assignment Open the Communication Setting window from Option menu in the initial screen Figure 5 5 set destination IP address to connect to EH ET...

Страница 27: ... address to connect to EH ETH2 Help About EH ETH2 Configurator 2 work area The names of operation buttons and their explanations are shown below Table 5 5 Operation buttons of initial screen Name Description Set Ethernet parameters Configure Ethernet parameters Refer to the section 5 2 7 for details Set ASR parameters Configure ASR parameters Refer to the section 5 4 1 to 5 4 3 for details Setup F...

Страница 28: ... parameters window 1 2 3 4 5 6 7 8 9 10 1 10 2 10 3 10 4 11 1 11 2 11 3 11 4 1 menu bar 2 input area 3 operation area Figure 5 8 Ethernet parameters window The window consists of menu bar and input area operation area 1 Menu bar File The operations can be executed from this too Help The help window will open 2 Input area Refer to 2 Input items for details 3 Operation area Refer to 3 Operation butt...

Страница 29: ...e timeout of Task code connection is enable or not This value is valid for all Task code connections If this is specified as disable the value of item 9 is not valid Enable 0 Disable 1 9 Timeout value To set the value for timeout of Task code connection and this unit is second This value is valid for all Task code connections Between 0 and 65535 Task code port m m 1 4 10 m Port No To set the logic...

Страница 30: ...Own station address IP address or Subnet mask is incorrect 255 255 255 255 is set for Subnet mask 1201 Test mode IP address is incorrect 0 0 0 0 or 255 255 255 255 is set for IP address of other station for Diagnosis 1202 Test mode Port No is incorrect Illegal value or character is set for port number of other station for Diagnosis 1203 Test mode Port No is in conflict with ASR connection m 1 The ...

Страница 31: ...able of Ethernet parameters I O No offset items 00 Own IP address upper 01 lower 02 Subnet mask upper 03 lower 04 Destination IP address for test upper 05 lower 06 Destination Port No for test 07 Default gateway upper 08 lower 09 No use 2C 2D Logical Port No 2E Task code port 1 Protocol 2F Logical Port No 30 Task code port 2 Protocol 31 Logical Port No 32 Task code port 3 Protocol 33 Logical Port ...

Страница 32: ...t number of own station 3007 30 Task code port 4 Service type 0 TCP IP 1 31 Task code communi cation The value of timeout for Task code port 15 seconds 32 Transfer speed type 0 Auto Nego 1 33 1 Refer to Table 5 6 for the value corresponding to the set contents a Preparation of setting value WM100 to WM136 in total 55 words shown in Figure 5 9 are used as the source area of Ethernet parameters for ...

Страница 33: ...this module H0004 to HFFFF Don t set these value 0 8 Starting execution flag 4 The start of the area 1 9 The completion flag without error b15 b11 b7 b0 2 10 The completion flag with error Unit No Slot No The position of word The description of the frame The area should be set by user The area inhibited to set by user 8 Starting execution flag When to start sending or receiving with FUN200 command...

Страница 34: ...et parameters from this module H0002 Don t set this value H0003 The request to put Ethernet parameters to this module H0004 to HFFFF Don t set these value t 0 7 Starting execution flag 4 The start of the area t 1 8 The completion flag without error b15 b11 b7 b0 t 2 9 The completion flag with error Unit No Slot No The position of word The description of the frame The area should be set by user The...

Страница 35: ...FC080 WM106 H0FA0 DM107 H1001C0A8 DM109 H00000000 DM10B H00000000 DM10D H00000000 IP Address of Self station Subnet Mask IP Address of Other station for Diagnosis Port No of Other station for Diagnosis Default gateway address Task Code Port 1 Logical Port No Task Code Port 1 Protocol Task Code Port 2 Logical Port No Task Code Port 2 Protocol Task Code Port 3 Logical Port No Task Code Port 3 Protoc...

Страница 36: ...C0A8 DM109 H00000000 DM10B H00000000 DM10D H00000000 IP Address of Self station Subnet Mask IP Address of Other station for Diagnosis Port No of Other station for Diagnosis Default gateway address Task Code Port 1 Logical Port No Task Code Port 1 Protocol Task Code Port 2 Logical Port No Task Code Port 2 Protocol Task Code Port 3 Logical Port No Task Code Port 3 Protocol Task Code Port 4 Logical P...

Страница 37: ...0 R111 R1 0 00005 R112 R1 0 To set execution bit by setting R1 1 FUN200 command execution The process of normal completion The process of error completion Sample program 2 To check Ethernet parameters Slot No 0 1 2 for EHV CPU EH ETH2 R1 00001 To set s parameter area The request of Ethernet Parameters getting To set the target area Unit 0 Slot 2 To configure WM140 as the starting area of destinati...

Страница 38: ...M142 Subnet mask upper WM143 lower WM144 IP Address for Diagnosis upper WM145 lower WM146 Port No for Diagnosis WM147 Default gateway upper WM148 lower No use WM149 to WM16C WM16D Logical Port No WM16E Task code port 1 Protocol Omit WM16F to WM172 WM173 Logical Port No WM174 Task code port 4 Protocol WM175 Task code port timeout value WM176 Transfer speed type 5 18 ...

Страница 39: ...iguration of ASR General Information You have to set the values that are used for all ASR connection in this window 1 Window structure At the initial screen of EH ETH2 Configurator click Set ASR parameters button The ASR parameters window will appear ASR parameters window is shown in Figure 5 10 3 Operation area 2 Input area 1 Menu bar 1 2 3 4 5 6 Figure 5 10 ASR parameters window The window consi...

Страница 40: ...of pull down The selection of this item is reflected in the result of the range of I O area check on ASR I O Area Setting 1 1 Refer to the section 5 4 3 for valid combination of CPU and the range of I O area Point Setting AEN Controlled is very useful when to invoke the ASR after finishing the source I O area initialization It is possible to start ASR by setting MDCR AEN to 1 when the initializati...

Страница 41: ...re 5 11 1 Menu bar 2 Connection tab 3 Input area 1 4 Operation area 2 3 8 9 10 5 6 4 7 11 12 13 Figure 5 11 ASR Connection Setting window 1 Menu bar File The operations can be executed from this too Help The help window will open 2 Connection tab To select a connection number to configure 3 Input area Refer to 2 Input items for details 4 Operation area Refer to 3 Operation buttons for details 5 21...

Страница 42: ...pt 0 0 0 0 and 255 255 255 255 7 Port No To set logical port number of target station 1 to 65535 Send Informaion 8 Type To specify the sending type of connection When Event Send is specified 9 and 10 are not valid Event Send Cyclic Send 9 Cyclic Time To specify the time interval of Cyclic Send 0 to 1073741 sec 0 to 17895 min 0 to 298 hour 0 to 12 day 10 Unit This is the unit for Cyclic Time sec mi...

Страница 43: ...s If all parameters are correct they will be saved into set up file and the completion massage box will appear If they are wrong set up file is not updated In this case please check and correct the value and set again The relation between the setting of ASR Connection Timeout and Open Retry Times Interval Both ASR Connection Timeout and Open Retry Times Interval are the parameters to open the conn...

Страница 44: ...e usages is described here 1 Window structure ASR I O Area Setting window is shown in Figure 5 12 1 Menu bar 2 Connection tab 3 Input area 4 Operation area 1 2 3 4 5 6 7 Figure 5 12 ASR I O Area Setting window 1 Menu bar File The operations can be executed from this too Help The help window will open 2 Connection tab To select a connection number to configure 3 Input area Refer to 2 Input items fo...

Страница 45: ... X Y R L M TD CU CL DIF DFN TM EX EY WX WY WR WL WM WN TC TV WEX WEY 6 Top To specify the starting I O number for the sending area The range is same with each I O s ranges 7 Size To specify the I O size count of words or bits for the sending area 1 to 11632 bit type 1 to 727 word type Caution When you use the external I O as the sending or receiving area you have to set I O assignment to the CPU m...

Страница 46: ... 7FFF 0 to 3FF WN 0 to 7FFF 0 to 1FFFF WEX us00 to us7F 2 WEY us00 to us7F 2 Send BIT X 0 to 49A95 1 0 to 1795 1 0 to 49A95 1 3 Y 0 to 49A95 1 0 to 1795 1 0 to 49A95 1 3 R 0 to 7BF 7C0 to FFF 0 to 7BF 7C0 to 7FF M 0 to 7FFFF 0 to 3FFF L 0 to 3FFF 70000 to 73FFF 8 loops 0 to 3FFF 10000 to 13FFF 2 loops TD CU 0 to 2559 0 to 511 CL 0 to 2559 0 to 511 DIF 4 0 to 511 DFN 4 0 to 511 TM 0 to 2047 EX us00...

Страница 47: ...eration mode into Configuration mode The extension of the setup file is et2 is an arbitrary file name Moreover setup file setup dat downloaded from EH ETH can be up loaded to EH ETH2 as it is Please refer to tthe Procedure of selecting setup file of EH ETH of next page about a concrete procedure 1 Window structure Setup file window is shown in Figure 5 13 1 Menu bar 2 Work area 1 3 6 4 7 8 2 5 Fig...

Страница 48: ...EH ETH2 checks the setting contents If there is error error message will be appeared File Convert 5 File Name input box The file name and path of the setup file for EH ETH2 to convert into the one for EH ETH is displayed The file is set by 6 button or drag and drop here 6 Browse button When you click this button the select setup file dialogue will be displayed Specify the setup file to convert 7 F...

Страница 49: ...e Diagnostic port The port number of ASR connection n 1 and the port number of diagnostic is in coincidence conflict 2109 General information No n Other station must be specified ASR connection n 1 is active station but Optional is selected for other station 2202 Receive Information No n Top is incorrect At ASR connection n 1 illegal value or character is set for Top I O address of receive area 22...

Страница 50: ...l layer Combination of task codes Protocol for each task code Data link layer TCP IP UDP IP Communication procedure 1 2 Physical layer IEEE 802 3 RS 232C RS 422 RS 485 EHV CPU Module name EH ETH2 supported EH CPU Figure 6 1 Out line of the communication protocols for H EH series EH ETH2 use uni directional procedure at data link layer At this uni directional procedure only a host computer can star...

Страница 51: ...top processing the last task code sent from a host computer If there is no processing to be stopped this command is ignored H01 to HFE EH ETH2 discards the task code with command H01 to HFE b Through no Through number to add request task code Any number available CPU will reply with adding same through number as in the command from host computer You can use it for debugging or your own purpose so ...

Страница 52: ... Port No Figure 6 4 Network address Table 6 1 Network address detail 1 Loop No L 2 Unit No U Item Loop No Item Unit No CPU LINK loop1 01H CPU LINK ST No 0 00H CPU LINK loop2 02H CPU LINK ST No 63 3FH Without CPU LINK FFH Without CPU LINK FFH Note When loop No is FFH Unit No must be FFH Even the reverse is similar 3 Module No M 4 Port No P Always 00H Always 00H Table 6 2 shows the example of networ...

Страница 53: ...0000 1000 00 12 FFFF0000 00 10 Task code to read CPU status Network address LUMP sequential serial number Indication of request task code Detail information of CPU status Requested task code Reply task code Network address LUMP sequential serial number which is same to request Indication of reply task code See the Appendix B Task Code Specifications for detailed task code command code 6 4 ...

Страница 54: ...order 2 You do not have to open connection before issuing task code Caution Task code port can not transmit data actively regardless of TCP or UDP protocol Task Code ports may stop responding when a EH ETH2 got a problem in network Please set up a timeout value for Task Code ports in order for you to avoid this problem Importance Action of task code port in case of trouble cable disconnection When...

Страница 55: ...55 255 255 0 255 255 255 0 Port number 3004 6 3 1 IP address setting To input IP address directly OS of a personal computer that is newer than Windows 98SE is needed Please set it by inputting the host name of chapter 6 3 2 if you use older OS Setting of LADDER EDITOR for Windows 1 Open LADDER EDITOR for Windows and go off line mode 2 Choose Environment Set in Utility menu in the offline mode 3 Ch...

Страница 56: ...s installed by the following process 1 To keep the current information back up Hosts file Ex Copy it as Hosts org 2 Open the Hosts file by notepad or other text editor 3 Type Host IP address and Host name which were set in EH ETH2 to the last line The host name must be same as the host name at the environment setting of LADDER EDITOR for Windows 1 Here is EH ETH2 as host name 1 Please types it car...

Страница 57: ...via EH ETH2 in Online or on direct Caution After setting Ethernet connection it takes about 45 seconds to display Communication Error message in the following cases This time period is due to Windows internal processing 1 To try to go online or on direct when the setting of EH ETH2 is not correct or to try to go online or on direct when the setting of PC or LADDER EDITOR for Windows is not correct...

Страница 58: ...Port number 3004 After setting click OK button A B C All setting are completed with this process After this Control Editor can communicate via EH ETH2 in Online or on direct Caution After setting Ethernet connection it takes about 45 seconds to display Communication Error message in the following cases This time period is due to Windows internal processing 1 To try to go online or on direct when t...

Страница 59: ...ransmission area transmission buffer C D A CPU module B A After the power ON EH ETH2 opens automatic sending connection here after ASR connection for EH ETH2 and host computer B After the connection opened EH ETH2 waits for a request from user program or cyclic timing Then EH ETH2 reads designated data Several kinds of I O type can be set in the sending area 1 connection is able to handle up to 10...

Страница 60: ...r Caution 1 connection can handle up to 1454 bytes When designated bit size is less than 8 bits 1 byte the rest bits are all 0 7 1 2 Automatic data receiving This function is able to receive data from other EH ETH2 or host PC to internal buffer and write to designated receiving area Users do not have to prepare user program for sending the data from the buffer to receiving area in CPU Ethernet Hos...

Страница 61: ...ed data size is less than designated receiving area size the rest area is not overwritten The previous data is kept When received data size is bigger than designated receiving data size the excess area is omitted automatically Receive Area Information Receiving buffer I O Receiving area No I O Top Size H00 DT1 WR0 DT1 DT2 1 WR 0 10 H01 DT2 WR1 DT3 DT4 H02 DT3 H03 DT4 WR6 DT13 DT14 WR7 DT15 DT16 H0...

Страница 62: ... communication In order EH ETH2 A to communicate with the host computer B EH ETH2 A which is specified as active node must request to open the connection with specifying the destination IP address and port number of B If the host computer B is ready to receive the request the communication is opened and ready to be talked On the other hand when the host computer B is not ready to open the connecti...

Страница 63: ...t PC sends a reply of ready to open connection to Host PC and waits ACK from Host PC Sending SYN ACK flag Sending request to connect SYN RCVD B 3 Host PC receives the reply from the EH ETH2 and sends back ACK Sending ACK flag Connection opened ESTABLISHED Figure 7 7 Basic procedure to open connection Caution In case of the task code communication the way to open is fixed as passive open In case of...

Страница 64: ... specified station Caution In case of initializing you do not need user program In case you need to open the connection manually you must use Status Register SR and Control Register CR with FUN201 command for EH CPU or SCRW command for EHV CPU in your user program Please refer to Chapter 8 Register Structure in details about registers In this manual register and each bit are often described with a...

Страница 65: ... to C1ESR OE1 because it is not ready to be opened Open error 3 Confirm the open error reply and set 0 to CNCR OPN1 and 1 to EC1CR OEC1 Cancellation of the request to open and clear error bit 4 EH ETH2 receives the request to clear and clear C1ESR OE1 by setting 0 Clear the open error bit 5 Examine the error cause and remove Then set 0 to EC1CR OEC1 and set 1 to CNCR OPN1 again after confirmation ...

Страница 66: ...st to open contact R1 Enable the circuit for cancellation the request to open 00006 M210 1 R103 1 R1 0 R3 1 R2 00010 R7E3 WM00B H3 WM00C H0 ADRIO WM00D R103 ADRIO WM00E WM20 WM00F 10 FUN201 WM008 00011 Parameter area setting of FUN201 s for writing CR Request to write CR Area setting unit 0 slot 0 Control bit address is R103 Transmission I O address is starting from WM20 Transmission data size is ...

Страница 67: ...est to open contact R1 Enable the circuit for cancellation the request to open 00006 M210 1 R103 1 R1 0 R3 1 R2 00010 R7E3 WM00B H3 WM00C H0 DM00D ADR WM20 WM00F 10 SCRW WM008 R103 00011 Parameter area setting of SCRW for writing CR Request to write CR Area setting unit 0 slot 0 Transmission I O address is starting from WM20 Transmission data size is 10 words SCRW for writing CR R2 R1 0 00005 0000...

Страница 68: ... EH ETH2 receives the FIN ACK and close after waiting a time designated in Time wait value Sending ACK flag Waiting TIME WAIT connection closed CLOSED B In case Host PC requests to close connection Description Segment EH ETH2 internal status B 1 Host PC requests to close connection to the EH ETH2 Sending FIN flag Connection opened ESTABLISHED B 2 EH ETH2 receives the request to close from Host PC ...

Страница 69: ...R OPC2 Close connection 3 Confirm the connection closed C2CSR OPC2 is 0 and cancel the request to close CNCR CLS2 0 Cancellation of request to close In case EH ETH2 receives a request to close from another station EH ETH2 has two types of operation mode after receiving a request from another stations which is called Close mode control This is switched by Close mode control register bit CMCR a CMCR...

Страница 70: ...act R11 Enable the circuit for cancellation the request to close 00006 M219 1 R103 1 R11 0 R13 1 R12 00010 R7E3 WM00B H3 WM00C H0 ADRIO WM00D R103 ADRIO WM00E WM20 WM00F 10 FUN201 WM008 00011 Parameter area setting of FUN201 s for writing CR Request to write CR Area setting unit 0 slot 0 Control bit address is R103 Transmission I O address is starting from WM20 Transmission data size is 10 words F...

Страница 71: ...tact R11 Enable the circuit for cancellation the request to close 00006 M219 1 R103 1 R11 0 R13 1 R12 00010 R7E3 WM00B H3 WM00C H0 DM00D ADR WM20 WM00F 10 SCRW WM008 R103 00011 Parameter area setting of SCRW s for writing CR Request to write CR Area setting unit 0 slot 0 Transmission I O address is starting from WM20 Transmission data size is 10 words SCRW for writing CR R12 R11 0 00005 00007 TD12...

Страница 72: ...igure 7 12 Procedure to close connection 3 1 When EH ETH2 receives a request to close connection 4 from another station Close requested bit goes high C4CSR CRO4 is 1 Receiving a request to close from another station 2 Confirm the connection opened C4CSR OPC4 is 1 and the request received C4CSR CRO4 is 1 and then set 1 to CNCR CLS4 Request to close 3 When EH ETH2 receives a request to close from us...

Страница 73: ...est to write CR bit Set 0 to request to open contact R11 Enable the circuit for cancellation the request to close 00007 M21B 1 R103 1 R11 0 R13 1 R12 00011 R7E3 WM00B H3 WM00C H0 ADRIO WM00D R103 ADRIO WM00E WM20 WM00F 10 FUN201 WM008 00012 Parameters setting of FUN201 s for writing CR Request to write CR Area setting unit 0 slot 0 Control bit address is R103 Transmission I O address is starting f...

Страница 74: ...uest to write CR bit Set 0 to request to open contact R11 Enable the circuit for cancellation the request to close 00007 M21B 1 R103 1 R11 0 R13 1 R12 00011 R7E3 WM00B H3 WM00C H0 DM00D ADR WM20 WM00F 10 SCRW WM008 R103 00012 Parameters setting of SCRW s for writing CR Request to write CR Area setting unit 0 slot 0 Transmission I O address is starting from WM20 Transmission data size is 10 words S...

Страница 75: ...ffer and data send 1 Program for error detection of communication or other additional operation is required depending on the occasions EH ETH2 have receiving function shown in Table 7 3 Table 7 3 Receiving function Receiving type Receive mode Communication control program Description Normal Not required 2 Receive buffer is refreshed whenever data is received EH ETH2 stored EH ETH2 internal receive...

Страница 76: ...h permit Outline and time chart of Optional receiving mode is shown in Figure 7 13 Data receive N Y Set data in receive buffer to receive area in CPU module Receive mode Optional Receive refresh permit Normal A No B Yes Ethernet EH ETH2 Receive area Receive buffer B CPU module A A B C D E F 0 B D E Receive buffer Data receive receive refresh permit Internal output CPU Figure 7 13 Optional control ...

Страница 77: ...o CPU After the sending completed EH ETH2 sets 1 to Receiving completed bit C2CSR RXC2 Receiving completed 4 Confirm sending completed by C2CSR RXC2 1 and cancel the Ready to receive bit RDCR ASE2 If data should be refreshed continuously the cancellation is not necessary Cancellation of a request to refresh 5 EH ETH2 receives the request to cancel and clear the Receiving completion bit C2CSR RXC2 ...

Страница 78: ...ss of control bit for reading or writing WM5 WMD of the above table b Starting I O No of Destination or Source WM6 WME of the above table is set to WM5 WMD of the above table Status Register SR destination I O Control Register CR source I O I O Description I O Description WM10 Data to read from MDSR WM20 Data to write to MDCR WM11 Data to read from C1ESR WM21 Data to write to CNCR WM12 Data to rea...

Страница 79: ... size is 13 words Setting 1 to control bit for reading SR FUN201 for reading out SR 00005 00006 R1 FUN201 WM000 00004 00003 R100 S R7E3 WM00B H3 WM00C H0 ADRIO WM00D R103 ADRIO WM00E WM20 WM00F 10 M242 1 R103 1 FUN201 WM008 DIF50 Reading out SR at R100 1 Optional transmission is enabled for connection 3 Parameters setting of FUN201 s for writing CR Request to write CR Area setting unit 0 slot 0 Co...

Страница 80: ...ta size is 13 words Setting 1 to control bit for reading SR SCRW for reading out SR 00005 00006 R1 SCRW WM000 R100 00004 00003 R100 S R7E3 WM00B H3 WM00C H0 DM00D ADR WM20 WM00F 10 M242 1 R103 1 SCRW WM008 R103 DIF Reading out SR at R100 1 Optional transmission is enabled for connection 3 Parameters setting of SCRW s for writing CR Request to write CR Area setting unit 0 slot 0 Transmission I O ad...

Страница 81: ... chart of connection 1 is shown as below Register name 1 2 RECR ASE1 Data 3 4 C1CSR TXC1 By user By EH ETH2 Figure 7 15 Procedure of event sending 1 Set 1 to Execution bit for event sending RECR ASE1 Request for event sending 2 EH ETH2 receives the request and sends designated data After completed EH ETH2 sets 1 to C1CSR TXC1 Execution 3 Confirm if it is completed by C1CSR TXC1 1 and cancel the Ex...

Страница 82: ...g out SR FUN201 WM000 00003 00002 R100 S 00006 R7E3 WM00B H3 WM00C H0 ADRIO WM00D R103 ADRIO WM00E WM20 WM00F 10 FUN201 WM008 00007 Reading out SR at R100 1 Parameters setting of FUN201 s for writing CR Request to write CR Area setting unit 0 slot 0 Control bit address is R103 Transmission I O address is starting from WM20 Transmission data size is 10 words FUN 201 for writing CR 00004 R21 Set 1 t...

Страница 83: ...out SR SCRW WM000 R100 00003 00002 R100 S 00006 R7E3 WM00B H3 WM00C H0 DM00D ADR WM20 WM00F 10 SCRW WM008 R103 00007 Reading out SR at R100 1 Parameters setting of SCRW s for writing CR Request to write CR Area setting unit 0 slot 0 Transmission I O address is starting from WM20 Transmission data size is 10 words SCRW for writing CR 00004 R21 Set 1 to Request for event sending bit Set 1 to request...

Страница 84: ...h communication of this module is shown by the status area Figure 8 1 shows the map of the status area The status area is structured with 13 kinds of resisters Each register size is 1 word 16bits To get the data of this status area the dedicated commands FUN201 or SCRW should be used in the user program I O No Status Registers 0 Module status MDSR H1 Connection 1 error status C1ESR H2 Connection 2...

Страница 85: ... 3 Existence response bit AVR The result of general working check for EH ETH2 The data IAV bit of Control Register will be reflected here Bit3 AVR Description 0 1 The data set in Existence confirmation request bit IAV of Control Register are reflected Bit 2 Automatic Sending Receiving enable bit ATR This bit shows the current specified status of Automatic Sending Receiving function is disable or e...

Страница 86: ...d but data in the sending buffer in EH ETH2 and receiving data at other station are not guaranteed Bit5 SNE 6 1 Description 0 No error is detected during the data sending 1 An error is detected during the data sending Method to clear To clear these bits to 0 please set 1 to SNC 6 1 of EC3CR Bit 4 Receive error bit RCE 6 1 These bits are set below condition At data receiving there is a error of dat...

Страница 87: ...meout error is detected during sending data Method to clear To clear these bits to 0 please set 1 to TEC 6 1 of EC1CR Bit 0 Open error bit OE 6 1 These bits show the condition during opening connection Bit0 OE 6 1 Description 0 No error is detected during opening connection 1 An error is detected during opening connection Method to clear To clear these bits to 0 please set 1 to OEC 6 1 of EC1CR 8 ...

Страница 88: ...t for each connection Bit5 SMF 6 1 Description 0 Cyclic send mode 1 Event send mode Bit 4 Reserved This bit is reserved Normally 0 is set Bit 3 Exclusive receive control flag ERF 6 1 These flags show the specified condition of exclusive receive control whether enable or disable Bit3 ERF 6 1 Description 0 Exclusive receive control is disable 1 Exclusive receive control is enable Bit 2 Receive compl...

Страница 89: ...gister size is 1 word 16bits To put the data of this control area the dedicated commands FUN201 or SCRW are prepared for user program I O No Control Registers 0 Module control MDCR H1 Connection control CNCR H2 H3 Ready Event send control RECR H4 Exclusive receive control EXRR H5 Ready receive control RDCR H6 Error clear1 control EC1CR H7 Error clear2 control EC2CR H8 Error clear3 control EC3CR H9...

Страница 90: ...en in this module If this bit programmed to set by user program the value of this bit will not be reflected without starting run of CPU module Bit2 IAV Description 0 Request to clear the existence response bit AVR of status area Initial set 1 Request to set the existence response bit AVR of status area Bit 1 IER LED indication Clear bit EC1 This bit is used to turn IER LED off And also this bit cl...

Страница 91: ... 7 and 6 Reserved These bits are reserved Please set 0 always Bit 13 8 Request bit to close connection CLS 6 1 These bits request to close for each connection Bit13 8 CLS 6 1 Description 0 Request to clear Close request Initial set 1 Request to close connection Bit 5 0 Request bit to open connection OPN 6 1 These bits request to open for each connection Bit5 0 OPN 6 1 Description 0 Request to clea...

Страница 92: ...n 0 ASR connection n is selected Normal mode Initial set 1 ASR connection n is selected Optional mode Ready receive control register RDCR Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 H5 ARE6 ARE5 ARE4 ARE3 ARE2 ARE1 Bit 15 6 Reserved These bits are reserved bits Please set 0 always Bit 5 0 Receive Ready bit ARE 6 1 This bit is effective to the connection which is declared as the connection on which A...

Страница 93: ...E 6 1 clear bit OEC 6 1 These bits request to clear Open error bit OE 6 1 in Connection n error status register Bit5 0 OEC 6 1 Description 0 Nothing is done Initial set 1 Request to clear OE 6 1 bits Error clear 2 control register EC2CR Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 H7 RAC6 RAC5 RAC4 RAC3 RAC2 RAC1 This register is used for to clear the bits related to connection error Bit 15 14 7 and ...

Страница 94: ...bits request to clear Open error bit RCE 6 1 in Connection n error status register Bit5 0 RCC 6 1 Description 0 Nothing is done Initial set 1 Request to clear RCE 6 1 bits Close mode control register CMCR Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 H9 CM6 CM5 CM4 CM3 CM2 CM1 This is the register which chooses the handling when this module receives Close request from other station Bit 15 6 Reserved T...

Страница 95: ... TXC2 OPC2 C3CSR H9 CRO3 SMF3 ERF3 RXC3 TXC3 OPC3 C4CSR HA CRO4 SMF4 ERF4 RXC4 TXC4 OPC4 C5CSR HB CRO5 SMF5 ERF5 RXC5 TXC5 OPC5 C6CSR HC CRO6 SMF6 ERF6 RXC6 TXC6 OPC6 Control Registers Bit name Reg name I O No 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 MDCR 0 AEN IAV EC1 EC0 CNCR H1 CLS6 CLS5 CLS4 CLS3 CLS2 CLS1 OPN6 OPN5 OPN4 OPN3 OPN2 OPN1 H2 RECR H3 ASE6 ASE5 ASE4 ASE3 ASE2 ASE1 EXRR H4 ARP6 ARP5 AR...

Страница 96: ...he request to put value to Control Register HA55A Request to software reset Please don t set up any values other than the above 4 The start of the area 1 9 The completion flag without error b15 b11 b7 b0 2 10 The completion flag with error Unit No Slot No The position of word The description of the frame The area should be set by user The area inhibited to set by user 8 Starting execution flag Whe...

Страница 97: ...3 The request to put value to Control Register HA55A Request to software reset Please don t set up any values other than the above 4 The start of the area t 1 8 The completion flag without error b15 b11 b7 b0 t 2 9 The completion flag with error Unit No Slot No The position of word The description of the frame The area should be set by user The area inhibited to set by user 7 Starting execution fl...

Страница 98: ...ADRIO WR006 WM100 WR007 10 00002 R7E4 R100 1 00003 FUN201 WR000 END 0000n 1st scan 2nd scan 00001 R7E3 WR003 H3 WR004 H0 ADRIO WR005 R100 ADRIO WR006 WM100 WR007 10 00002 R7E4 R100 1 00003 FUN201 WR000 END 0000n FUN201 is in execution so this instruction is not executed Namely data is not written to Control Register from 2nd scan to 3rd scan FUN201 command execute flag clear 0 set normal complete ...

Страница 99: ...ute instruction 00001 R7E3 WR00B H1 WR00C H0 ADRIO WR00D R103 ADRIO WR00E WM110 WR00F 13 00002 R7E4 R103 1 00003 FUN201 WR008 END 0000n 3rd scan Wait execute instruction FUN201 command Keep Execute flag R100 1 Clear normal complete flag and abnormal complete flag FUN201 command Keep Execute flag R100 1 Clear normal complete flag and abnormal complete flag FUN201 command execute flag clear 0 set no...

Страница 100: ... on the result of execution Command execute Command execute Detect of command execution status When control type is H0001 or H0003 and you add the below two circuits just after FUN201 command circuit you can detect of command execution status 00001 R7E3 WR003 H3 WR004 H0 ADRIO WR005 R100 ADRIO WR006 WM100 WR007 10 00002 R7E4 R100 1 00003 FUN201 WR000 R200 is ON During Command execution R200 R100 R...

Страница 101: ...0002 R100 To set execution bit by setting R0 1 FUN201command execution Normal end procedure Abnormal end procedure FUN201 WR000 SR read Request bit R100 WR003 H2 WR004 H22F ADRIO WR005 R100 ADRIO WR006 WM100 WR007 13 R103 R101 R102 Normal End flag Execute flag Abnormal end flag Execute flag During execution R100 R104 R101 R102 Normal end R105 R101 R102 Abnormal end R0 0 Normal end procedure R104 R...

Страница 102: ...o set execution bit by setting R0 1 SCRW command execution Normal end procedure Abnormal end procedure SCRW WR000 R100 SR read Request bit R100 WR003 H2 WR004 H22F DR005 ADR WM100 WR007 13 R103 R101 R102 Normal End flag Execute flag Abnormal end flag Execute flag During execution R100 R104 R101 R102 Normal end R105 R101 R102 Abnormal end R0 0 Normal end procedure R104 R0 0 Abnormal end procedure R...

Страница 103: ...R1 1 FUN201command execution Normal end procedure Abnormal end procedure FUN201 WR008 CR write Request bit R200 WR00B H3 WR00C H200 ADRIO WR00D R200 ADRIO WR00E WM110 WR00F 10 R203 R201 R202 Normal flag Execute flag Error flag Execute flag During execution R200 R204 R201 R202 Normal flag Execute flag Error flag Normal condition R205 R201 R202 Normal flag Error flag Error condition R1 0 Normal end ...

Страница 104: ...command execution Normal end procedure Abnormal end procedure SCRW WR008 R200 CR write Request bit R200 WR00B H3 WR00C H200 DR00D ADR WM110 WR00F 10 R203 R201 R202 Normal flag Execute flag Error flag Execute flag During execution R200 R204 R201 R202 Normal flag Execute flag Error flag Normal condition R205 R201 R202 Normal flag Error flag Error condition R1 0 Normal end procedure R204 R1 0 Abnorma...

Страница 105: ...onfigure R110 as the control bit No need to set starting area No need to set sending size R113 Execute flag During execution Normal condition Error condition Sample program 10 To execute software reset Slot No 0 1 2 for EHV CPU EH ETH2 00001 R7E3 WR023 HA55A WR024 H0 DR025 0 WR027 0 00002 R7B0 00003 SCRW WR020 R110 Error detected 1 scan on after RUN 00004 R110 R110 Execute flag R111 R112 Normal fl...

Страница 106: ...tion mode 1 The other mode Bit 5 Reserved These bits are reserved bits Usually 0 are set Bit 4 Ethernet information configuration error bit EIE Illegal Ethernet information is set In the case of this bit set 1 IER LED turns on Bit4 EIE Description 0 There is no error 1 The illegal Ethernet information configuration set up is detected Bit 3 Existence response bit AVR The result of general working c...

Страница 107: ... 1 to 4 individually Bit7 4 TnR Description 0 Nothing is done Initial set 1 Task code port No m 1 to 4 is reset Bit 2 3 Reserved These bits are reserved Please set 0 always Bit 1 IER LED indication Clear bit EC1 This bit is used to turn IER LED off And also this bit clear IERR bit of Module status register bit1 Bit1 EC1 Description 0 Nothing is done Initial set 1 Request to turn IER LED off and cl...

Страница 108: ...ews 4 Cables Check if it is no problem Tighten the screws Connect firmly Tighten the screws Is the cable disconnected Check if LINK LED of Ethernet connector is lighting Change the cable Connection of transmission cable Is the cable applied irregular weight or tension Check if it is no problem Check the wiring route and if it s fixed properly Appearance Is the module very dusty Is there any unusua...

Страница 109: ...ged in a connector firmly Check if it is not breaking wire 5 Connection opening error active open station 1 1 The requested station is not in network Check if the station is in the same network Check the cables for both own and the other station 2 Wrong setting at the own station Check if the IP address and logical port number at the own station 3 Wrong setting at the other station Check if the ot...

Страница 110: ...H2 WM004 H2F ADRIO WM005 R100 ADRIO WM006 WM10 WM007 1 R100 1 00002 R100 S Execute SR read by R100 1 R100 Set FUN201 s parameter area for SR read Mounted position of EH ETH2 unit 0 slot 0 Set control bit I O No R100 Set head of I O No WM10 Set transmission sizes 1 word Set SR read control bit R7E3 2 How to turn off LED There are 3 ways to turn off ERR LED or IER LED a By E CLR button ERR LED and I...

Страница 111: ...o R100 Set head of I O No WM10 Set read size 1 word Set SR read control bit 1 R7E3 00004 M200 Check the status of ERR and IER LED if detecting an open error at connection 1 If each LED turns on set the lights out instruction bit M110 Set 1 to request to write to CR bit if it passes for five seconds after detecting an open error Validate the lights out demand cancellation circuit 00006 R103 1 R104 ...

Страница 112: ...to request to write to CR bit if it passes for five seconds after detecting an open error Validate the lights out demand cancellation circuit 00006 R103 1 R104 0 R1 0 R3 1 0000x R7E3 WM00B H3 WM00C H0 DM00D ADR WM20 WM00F 10 SCRW WM008 R103 0000y Parameter area setting of SCRW s for writing CR Request to write CR Area setting unit 0 slot 0 Transmission I O address is starting from WM20 Transmissio...

Страница 113: ...his open error bit as occasion demand 2 Transmission error detected When send error occurs at the ASR connection bit 5 of Connection n error status register CnESR send error bit SNEn is 1 3 Receive error detected When receive error occurs at ASR connection bit 4 of Connection n error status register CnESR receive error bit RCEn is 1 4 Receive area error detected When the size of received data exce...

Страница 114: ...st bit 9 ASR4 close request bit 10 ASR5 close request bit 11 ASR6 close request bit 0 No request 1 Request 12 Task code port1 status bit 13 Task code port2 status bit 14 Task code port3 status bit 15 Task code port4 status bit 0 Closed 1 Open WRF021 F023 F025 F027 F029 F02B F02D F02F Bit Description 0 ASR1 open error status bit 1 ASR2 open error status bit 2 ASR3 open error status bit 3 ASR4 open ...

Страница 115: ...issing in CPU module Configure COMM assignment by your programming software Y N Start of PLC system setup EH ETH2 is mounted in slot 0 to 7 EH ETH2 can be mounted in slot 0 to 7 Reexamine the mounted slot position N Y EH ETH2 is mounted more than 9 units in basic base EH ETH2 can be mounted up to 8 units in basic base Reexamine the mounted slot position and system Y N Power on PLC system Complete ...

Страница 116: ...the mounted slot position and system Y N Power on PLC system Complete of PLC system setup c In case of EH CPU448 448A 316A 308A or EH CPU516 548 with EH BS3 5 8 STS LED blinks I O configuration is missing in CPU module Configure COMM assignment by your programming software Y N Start of PLC system setup EH ETH2 is mounted in slot 0 to 2 EH ETH2 can be mounted in slot 0 to 2 Reexamine the mounted sl...

Страница 117: ...nline EH ETH2 Configurator Check if communication setting of EH ETH2 Configurator is correct N Y Complete of various kinds setting Set up an appropriate value according to the error message Y N Abnormal setting There is response of ping command N Y The network is not on line physically or logically Check the below items Communication cable and HUB etc Wrong IP address in the host computer Duplicat...

Страница 118: ...s on line the requested station will reply as below In this sample the DIP Switch configuration is Bit 1 ON Bit 8 ON the other OFF which means temporal IP address is 192 168 0 1 Procedure 1 Select Start Programs Accessories Command Prompt 2 Type ping 192 168 0 1 3 1 If the network is on line EH ETH2 will reply as below 3 2 If the network is off line EH ETH2 will reply as below 10 4 ...

Страница 119: ...ed devices If you still have the same problem contact your local Hitachi supplier 1 Depending on the timeout setting it takes several minutes to detect an error 1 There is the possibility that is set up to a utility mode Set normal operation mode DIP SW all OFF N Y Normal operation mode 2 If connection status open or close to be checked an additional user program is required Data receiving failed ...

Страница 120: ... off and on at the other station After the EH ETH2 is reset Open request will be sent N Set the Ethernet information correctly and reset the EH ETH2 N Please check the following points at the other node Power supply The connection is specified as passive connection Turn off and on the power of whole network and all connected devices If you still have the same problem contact your local Hitachi sup...

Страница 121: ...unning it communicates normally In this case clear the error with ladder program Refer to following sample program 11 1 For instance the cyclic time is one second and transmission time is 0 8 0 9 second Refer to Appendix A 2 Response performance of ASR communication for calculating the response time Sample program 11 To execute error reset Slot No 0 1 2 For EHV CPU EH ETH2 When the error occurs af...

Страница 122: ...e format which EH ETH2 sends network is below 0 1 2 3 4 5 1023 Byte Command Message transmission number Message H01 H0000 H00 H01 H02 HFC Test procedure a Set communication parameter according to the Figure 10 1 as below b Press the reset button of EH ETH2 2 c Press the reset button of EH ETH2 1 The test will start 1 1 Right I O assignment is set to CPU module EH ETH2 1 test object Setting except ...

Страница 123: ... start Other station Own IP address 192 168 0 254 EH ETH IP address 192 168 0 1 Send receive test logical port number Own station other station 4000 Dec EH ETH2 test object Setting except Dip switch is factory setting Dip switch setting Bit 5 6 ON Others OFF Own IP address 192 168 0 1 Send receive test other station IP address 192 168 0 254 Send receive test logical port number Own station other s...

Страница 124: ...H CPU5 means EH CPU548 or EH CPU516 A 2 Response performance of ASR communication The following data is response time of the ASR communication Since response time depends on many other factors please use these values as sample data for your system designing Table A 2 shows the interval time of ASR event sending of 120 or 360 words and shows the interval time of ASR receiving of 120 or 360 words Ta...

Страница 125: ...e The response performance of the ASR I O area setting in table A 3 is shown below Send time of word data TSW 200 120 200 120 200 120 200 120 200 120 2 2 2 2 2 10 Send time of bit data TSB 1 240 1 240 1 240 1 240 1 240 1 240 1 240 1 240 1 1 1 1 1 1 1 1 8 Receive time TR 200 100 200 100 200 100 200 100 200 100 200 100 2 2 2 2 2 2 12 T TSW TSB TR 10 8 12 30 Response time 30ms T 30ms 30 900ms Therefo...

Страница 126: ...task code function and response command function Each task code is explained using the format shown below Task code Response task code Task code number Task code description Classification Response CPU control memory read memory write or I O control Function Execution condition Shows the task code execution conditions Details are described on the next page Format Format of the request task code an...

Страница 127: ... code H10 1 Execution condition example 1 CPU status STOP RUN HALT ERROR READ occupancy Occupancy WRITE occupancy status Executable Not executable In example 1 the task code can only be executed when the CPU is in the STOP or ERROR status and the memory is WRITE occupied 2 Execution condition example 2 CPU status STOP RUN HALT ERROR READ occupancy Occupancy WRITE occupancy status In example 2 the ...

Страница 128: ... completion 1 28 Timer counter set value modification 1 4 Memory read 31 Program read with address designation 1 33 Final ladder search 1 35 Read memory assignment 1 5 I O control 40 Monitoring with I O number designation N continuous points 42 Forced set reset with I O number designation N continuous points 44 Monitoring with I O number designation N random points 45 Forced set reset with I O num...

Страница 129: ...ication Response Function Indicates that there is an error in the task code requested for execution Task code undefined parameter error etc Format H01 a b a Task code requested for execution b Return code Description Return code details are shown below Return code Description H01 Task code is undefined H02 Function selection code is undefined H04 Abnormal address H05 Abnormal step number or word n...

Страница 130: ...ot be executed Format H03 a b a Task code requested for execution b Return code Description Return code details are shown below Return code Description H01 This is ROM memory H02 Does not match parameter area H03 Occupancy code does not match READ occupied H04 Occupancy code does not match WRITE occupied H05 Another station is in the process of debugging H06 Already READ occupied in four stations ...

Страница 131: ...is retried from a request task code when BUSY is returned Format H05 a a Task code that requested the execution Response task code H08 Network error Classification Response Function Indicates that a communication error has occurred Format H08 a b a Task code requested for execution b The network address that detected the error Description Indicates that there was a communication error or the desig...

Страница 132: ...ads error code 5 H04 Reads CPU name Response 1 Read CPU status subcommand H00 a H10 b c a Response task code H00 when executed normally For task codes other than the normal task codes refer to the response list by task code at the end of this chapter b The read CPU status c User program version H00 to HFF This value is counted up only when memory writing has occurred and the WRITE occupancy is can...

Страница 133: ... CPU 4 Read error code subcommand H03 a H10 b a Response task code H00 when executed normally b CPU error code 2 digit hexadecimal This is the same code as the contents of special internal output WRF000 5 Read CPU name subcommand H04 a H10 b a Response task code H00 when executed normally b CPU name 16 ASCII code characters If it is less than 16 characters Null H20 are added until 16 characters ar...

Страница 134: ...ormal When this flag is 1 error details may be determined by reading the CPU error code refer to 4 bit 4 to 6 Unused 0 bit 7 Battery error flag Displays whether or not the CPU backup battery is normal 1 Battery is not installed or voltage is low 0 Battery normal bit 11 to 8 CPU type flag 0011 EH CPU 0111 EHV CPU16 32 64 1011 EHV CPU128 2 Memory status response to the subcommand H01 Item Descriptio...

Страница 135: ...ut WRF000 self diagnostic error code can be read 5 CPU name response to the subcommand H04 EH CPU H 302 EHV CPU16 EHV CPU16 EHV CPU32 EHV CPU32 EHV CPU64 EHV CPU64 EHV CPU128 EHV CPU128 Example Function selection subcommand H00 Request 1 0 0 0 Response 0 0 1 0 0 3 0 1 0 1 CPU status User program version H01 EH CPU running Function selection subcommand H01 Request 1 0 0 1 Response 0 0 1 0 0 2 0 0 2...

Страница 136: ...occupied by another station a not executable response will be made If the CPU is WRITE occupied by the local station execution is possible Format Request H11 a a Function selection subcommand 1 H00 Stop designation 2 H01 Run designation Response a H11 a Response task code H00 when executed normally For task codes other than the normal task codes refer to the response list by task code at the end o...

Страница 137: ...mand WRITE occupancy H05 READ occupancy WRITE occupancy H06 1 1 1 1 READ occupancy WRITE occupancy H00 READ occupancy WRITE occupancy 1 It cannot be executed while the CPU is READ occupied by another station Format Request H16 a a Function selection subcommand 1 H01 READ occupancy 2 H02 WRITE occupancy 3 H05 Modifies the local station occupancy mode from WRITE occupancy to READ occupancy 4 H06 Mod...

Страница 138: ...ication modification from READ occupancy to WRITE occupancy subcommand H06 Modifies the CPU occupancy mode of the local station to WRITE occupancy This command cannot be executed when the local station is not occupying the CPU This command cannot be executed when another station is occupying the CPU 5 Occupancy cancel subcommand H00 Cancels the local station CPU occupancy When canceling the WRITE ...

Страница 139: ...k code H00 when executed normally For task codes other than the normal task codes refer to the response list by task code at the end of this chapter Description With forced cancel if there are modification in the parameter area the same processing as parameter modification completion processing is performed refer to the task code H27 as well as the canceling of memory occupancy 1 Forced cancel of ...

Страница 140: ...1 Cancels the occupancy of the local station The occupancy of other stations are maintained A B C A C READ occupied by peripherals A B and C The occupancy by the local station B is forcibly canceled Example Function selection H00 Function selection H01 Request Response 1 7 0 0 1 7 0 1 0 0 1 7 0 0 1 7 B 15 ...

Страница 141: ... H31 in BCD e Week H00 Sunday H01 Monday H02 Tuesday H03 Wednesday H04 Thursday H05 Friday H06 Saturday f Time H00 to H23 in BCD g Minutes H00 to H59 in BCD h Seconds H00 to H59 in BCD Response a H18 b c d e f g h 1 Added as response data only when the function selection is H00 a Response task code H00 when executed normally For task codes other than the normal task codes refer to the response lis...

Страница 142: ...Response 0 Normal execution 0 1 8 1 9 9 1 0 3 2 1 0 4 0 8 0 5 3 0 1991 March 21 Thursday 8 o clock 5 minutes 30 seconds Function selection subcommand H01 Request 1 8 0 1 1 9 9 1 0 4 2 0 0 6 1 6 5 0 3 0 1991 April 20 Saturday 16 o clock 50 minutes 30 seconds Response 0 Normal execution 0 1 8 B 17 ...

Страница 143: ...st by task code at the end of this chapter Description 1 The composition of user memory The user memory has the composition as shown in the diagram to the right Parameter area A stores the I O assignment memory assignment and other information while parameter area B stores the timer information etc Parameter area Parameter area A Parameter area B HI FLOW area HI LADDER area User memory 2 Descripti...

Страница 144: ...necessary when connecting a programming device 2 Initialization of the HI FLOW area subcommand H01 Only the HI FLOW area is initialized EH 150 does not support HI FLOW 3 Initialization of the HI LADDER area subcommand H02 Only the HI LADDER area is initialized 4 Zero clear of all user memory areas subcommand H03 Writes zero to all areas equivalent to the load capacity of the memory When the subcom...

Страница 145: ... RUN HALT ERROR READ occupancy Occupancy WRITE occupancy status Format Request H23 a b c d a Memory area designation subcommand 1 H00 Parameter area A 2 H01 HI FLOW area 1 3 H02 HI LADDER area 4 H03 Parameter area B b User memory address absolute address c Number of steps to be written H01 to H3C maximum 60 steps d Write data 1 step is equivalent to 4 bytes 1 EH 150 does not support HI FLOW Respon...

Страница 146: ...A subcommand H00 Writes the designated data 1 in parameter area A Note After executing this command always execute the task code H27 parameter change completion when the memory write processing is completed 2 HI FLOW area subcommand H01 Writes the designated program 1 to the HI FLOW area Note EH 150 does not support HI FLOW 3 HI LADDER area subcommand H02 Writes the designated program 1 to the HI ...

Страница 147: ...Memory capacity of the HI LADDER area designated in 8 digit hexadecimal 1 EH 150 does not support HI FLOW Response a H26 a Response task code H00 when executed normally For task codes other than the normal task codes refer to the response list by task code at the end of this chapter Description Request H26 H00 Parameter area memory capacity HI FLOW user memory capacity HI LADDER user memory capaci...

Страница 148: ...based on the parameter information stored in parameter area A of the user memory so that the I O and communication actions are performed according to the new I O assignment 2 When the initialization of all user memory areas zero clear change in parameter area A or the writing of memory assignment is performed always execute this task code when the memory write processing is completed 3 If the I O ...

Страница 149: ...hile a modification is performed in a status other than STOP or ERROR the special internal output R7EA modify in progress while running will turn on Format Request H28 H02 a b c d e f1 f2 g1 g2 a Subcommand H02 fixed b Timer counter number H0000 to H01FF 0 to 511 c Change code H00 Modify not performed H01 Modify time base only H02 Modify set value number 1 only H03 Modify time base and set value n...

Страница 150: ...ber 1 I O code Type I O code I O number f2 Set value number 1 I O number Constant H07 H000000 to H00FFFF g1 Set value number 2 I O code WX H08 H000000 to H004FF9 g2 Set value number 2 I O number WY H09 H000000 to H004FF9 WR H0A H000000 to H0043FF 1 Response WL H0B H000000 to H0003FF H001000 to H0013FF WM H0C H000000 to H0003FF a Response task code H00 when executed normally 1 The WR area will vary...

Страница 151: ...ormat Request H31 H00 a b c a Dummy must be fixed to H00 b Head address absolute address in the CPU module c Number of steps H01 to H3C 60 steps maximum Response a b H31 b 1st step Nth step a Response task code H00 For task codes other than the normal task codes refer to the response list by task code at the end of this chapter b Program contents Description Request H31 H00 Head address Number of ...

Страница 152: ... Specifications Example Reads three steps starting with address H1AB0 Request 3 1 0 0 1 A B 0 0 3 Number of steps Head address Response 0 0 3 1 4 4 1 0 0 8 1st step 0 0 4 0 8 0 4 0 0 0 2nd step 4 2 D 0 8 0 0 0 3rd step B 27 ...

Страница 153: ...AD occupancy Occupancy WRITE occupancy status Format Request H33 Response a H33 b c d a Response task code H00 when executed normally For task codes other than the normal task codes refer to the response list by task code at the end of this chapter b Circuit number 4 digit hexadecimal c Head address 4 digit hexadecimal d Number of steps 4 digit hexadecimal Note When there is no program b Circuit n...

Страница 154: ...l circuit H33 H00 H33 Circuit number of the final circuit Head address Number of steps Example Assume the final circuit number as 100 H64 the head address as H1C80 and the number of steps as 10 H0A Request 3 3 Response 0 0 3 3 0 0 6 4 1 C Number of steps Head address 8 0 0 0 0 A Circuit number B 29 ...

Страница 155: ...TE occupancy status Format Request H35 H00 Response a H35 b c d a Response task code H00 when executed normally For task codes other than the normal task codes refer to the response list by task code at the end of this chapter b Parameter area memory capacity H00000280 fixed c HI FLOW user program memory capacity 8 digit hexadecimal d HI LADDER use program memory capacity 8 digit hexadecimal EH 15...

Страница 156: ...memory capacity HI FLOW user memory capacity HI LADDER user memory capacity Memory assignment table Example Assume that 640 H0280 steps are assigned as the parameter area 1 K H0400 steps as the HI FLOW memory capacity and 3 K H0C00 steps as the HI LADDER memory capacity Request 3 5 0 0 Response 0 0 3 5 0 0 0 0 0 2 8 0 0 0 0 0 0 4 0 0 Parameter area HI FLOW 0 0 0 0 0 C 0 0 HI LADDER B 31 ...

Страница 157: ... WRITE occupancy status Not occupied Format Request H40 a b c a I O code refer to the I O code chart b I O number refer to I O number decimal hexadecimal conversion chart c Number of bits H01 to HF0 1 to 240 Number of words H01 to H78 1 to 120 Response a H40 b a Response task code H00 when executed normally For task codes other than the normal task codes refer to the response list by task code at ...

Страница 158: ...tects the head of the monitor data according to the requested I O code and I O number then in response returns the monitor data for the number of bits requested B When the I O type code is word H00 H40 1st word H40 I O code I O No N points Request Response 1st word Nth word Data memory The CPU detects the head of the monitor data according to the requested I O code and I O number then in response ...

Страница 159: ... to H0001FF H000000 to H0009FF CL H06 0 to 511 EH 150 0 to 2559 EHV CPU H000000 to H0001FF H000000 to H0009FF WX H08 0000 to 4FF9 H000000 to H004FF9 WY H09 0000 to 4FF9 H000000 to H004FF9 TC H0D 0 to 511 EH 150 0 to 2559 EHV CPU H000000 to H0001FF H000000 to H0009FF DIF H0E 0 to 511 H000000 to H0001FF DFN H0F 0 to 511 H000000 to H0001FF TM H22 0 to 2047 H000000 to H0007FF TV H23 0 to 2047 H000000 ...

Страница 160: ...f bits H01 to HC8 1 to 200 Number of words H01 to H64 1 to 100 1 Refer to the task code H40 d Set reset data d Set reset data Bit data Number of points 8 1st point 2nd point 8th point bit7 0 Binary image H00 to HFF 1 When the number of set reset points is less than 8 points set 0 to the open bits Word data Binary image H0000 to HFFFF H L 1st word Nth word Word number value Response a H42 a Respons...

Страница 161: ...ecution condition CPU status STOP RUN HALT ERROR READ occupancy Occupancy WRITE occupancy status Not occupied Format Request H44 a b c b c 1st point word Nth point word a Number of bits number of words H01 to H3F 1 to 60 b I O code c I O number Response Refer to the task code H40 a H44 Monitor data 1st point 1st word b b Monitor data Nth point Nth word a Response task code H00 when executed normal...

Страница 162: ...s the monitor data for the number of bits requested I O code N points I O No I O code Request 1st point Nth point Nth point B When the I O code is word H00 H44 H44 I O No Response 1st Word Word Data memory The CPU detects the head of the monitor data according to the requested I O code and I O number then in response returns the monitor data for the number of words requested I O code N points I O ...

Страница 163: ...OR READ occupancy Occupancy WRITE occupancy status Format Request H45 a c b d 1st point 1st word a Number of bits number of words H01 to H28 1 to 40 b I O code c I O number Refer to the task code H40 d Data c b d Nth point Nth word Bit data 0 0 0 0 or 1 Word data H0000 to HFFFF Response a Response task code For task codes other than the normal task codes refer to the response list by task code at ...

Страница 164: ...pancy status Not occupied Format Request HA0 a b c a I O code b I O number c Number of bits H01 to HF0 1 to 240 Number of words H01 to H78 1 to 120 Refer to the task code H40 Response a HA0 b a Response task code H00 when executed normally For task codes other than the normal task codes refer to the response list by task code at the end of this chapter b Monitor data b Monitor data Bit data Number...

Страница 165: ...etects the head of the monitor data according to the requested I O code and I O number then in response returns the monitor data for the number of bits requested B When the I O type code is word H00 HA0 1st word HA0 I O code I O No N points Request Response 1st word Nth word Data memory The CPU detects the head of the monitor data according to the requested I O code and I O number then in response...

Страница 166: ...b c d a I O code b I O number c Number of bits H01 to HC8 1 to 200 Number of words H01 to H64 1 to 100 d Set reset data d Set reset data Bit data Number of points 8 1st point 2nd point 8th point bit7 0 Binary image H00 to HFF Refer to the task code H40 When the number of set reset points is less than 8 points set 0 to the open bits Word data Binary image H0000 to HFFFF H L 1st word Nth word Word n...

Страница 167: ...T ERROR READ occupancy Occupancy WRITE occupancy status Not occupied Format Request HA4 a b c b c 1st point word Nth point word a Number of bits number of words H01 to H3F 1 to 60 b I O code c I O number Refer to the task code H40 Response a HA4 Monitor data 1st point 1st word b b Monitor data Nth point Nth word a Response task code H00 when executed normally For task codes other than the normal t...

Страница 168: ... the monitor data for the number of bits requested I O code N points I O No I O code Request 1st point Nth point Nth point B When the I O code is word H00 HA4 HA4 I O No Response 1st word Word Data memory The CPU detects the head of the monitor data according to the requested I O code and I O number then in response returns the monitor data for the number of words requested I O code N points I O N...

Страница 169: ...U status STOP RUN HALT ERROR READ occupancy Occupancy WRITE occupancy status Not occupied Format Request HA5 a c b d 1st point 1st word a Number of bits number of words H01 to H28 1 to 40 b I O code c I O number Refer to the task code H40 d Data c b d Nth point Nth word Bit data 0 0 0 0 or 1 Word data H0000 to HFFFF Response a Response task code For task codes other than the normal task codes refe...

Страница 170: ...de mismatch H04 Local station is WRITE occupying CPU READ occupancy maximum exceeded H06 Already READ occupied by the other four stations Occupied by another station H08 Another station is WRITE occupying CPU WRITE occupancy H02 Normal execution H00 Not executable H03 Occupancy code mismatch H03 Local station is READ occupying CPU Occupied by another station H08 CPU is occupied by another station ...

Страница 171: ... Not executable H03 Occupancy code mismatch H03 Local station is READ occupying CPU Not occupied H07 Local station is not occupying CPU CPU is running H0B CPU is running Undefined H04 to HFF Abnormal task code H01 Undefined subcommand H02 Undefined subcommand is set H23 Write to parameter H00 Normal execution H00 area A Abnormal task code H01 Abnormal address H04 Transfer address is outside the sp...

Страница 172: ...cal station Not occupied H07 Local station is not occupying CPU CPU is running H0B CPU is running and modify during RUN mode is not set Undefined H01 to HFF Abnormal task code H01 Undefined subcommand H02 Undefined subcommand is set None Abnormal task code H01 Abnormal number of steps words H05 Task code input parameter length is too short H27 End of parameter Normal execution H00 change Not execu...

Страница 173: ...ined subcommand H02 Undefined subcommand is set H40 None Normal execution H00 Abnormal task code H01 Abnormal number of steps words H05 The requested number of points is outside the designated range Abnormal I O code H06 The requested I O type code is undefined or is an I O that cannot be forced to be set Abnormal I O No H07 The requested I O type code is undefined or is an I O that cannot be moni...

Страница 174: ...The requested I O type code is undefined or is an I O that cannot be forced to be set Abnormal I O No H07 The requested I O No is outside the designated range HA4 None Normal execution H00 Abnormal task code H01 Abnormal number of steps words H05 The requested number of points is outside the designated range Abnormal I O code H06 The requested I O type code is undefined Abnormal I O No H07 The req...

Страница 175: ...0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 192 168 0 1 Network address Host address Figure C 2 The example of Class C IP address Ethernet In general it is possible to use the address area called private internet address when to make the local network system Following is the description of RFC1918 Class A 10 0 0 0 10 255 255 255 Class B 172 16 0 0 172 31 255 255 Class C 192 168 0 0 192 1...

Страница 176: ...ocol TCP TCP is the protocol of transport layer with connection and stream type With the connection type a logical connection is established before starting transmission of data and the transmission of data is done under this status It is required to release the logical connection if the data transmission is completed Be careful it is not recommended to repeat the establishing and releasing the co...

Отзывы: