background image

Cat.No. W313–E1–3

PC Card Unit

SYSMAC
C200HW-PCU01
C200HW-PCS01-EV1

OPERATION MANUAL

Summary of Contents for SYSMAC C200HW-PCS01-EV1

Page 1: ...Cat No W313 E1 3 PC Card Unit SYSMAC C200HW PCU01 C200HW PCS01 EV1 OPERATION MANUAL...

Page 2: ......

Page 3: ...SYSMAC C200HW PCU01 C200HW PCS01 EV1 PC Card Unit Operation Manual Revised January 2000...

Page 4: ......

Page 5: ...OS is a registered trademark of Microsoft Corporation PC DOS is a registered trademark of International Business Machines Corporation PCM Plus is a registered trademark of Phoenix Technologies Ltd In...

Page 6: ......

Page 7: ...ON AND OPERATION 17 SECTION 3 Preparations for Operation 19 3 1 Outline 20 3 2 Procedures 20 SECTION 4 Installation and Switch Settings 23 4 1 Before Installing a PC Card Unit 24 4 2 Component Names a...

Page 8: ...9 1 FINS Communications Service 116 9 2 Using FINS Communications 117 9 3 Using the CMCR Instruction 119 9 4 Using FINS Commands and Responses 124 9 5 Sample Program 128 9 6 FINS Communications From C...

Page 9: ...FINS Response Codes from the PC Card Unit 215 F Differences with the CV series or CS1 series Ethernet Units 217 G Example Using a Memory Card with a Personal Computer 219 H Precautions when Setting U...

Page 10: ......

Page 11: ...how to install Ethernet Cards and use the setup software Section 8 explains how to use SEND and RECV commands to transfer data Section 9 provides information on communicating in Ethernet Systems usin...

Page 12: ......

Page 13: ...section is important for the safe and reliable application of the PC You must read this section and understand the information contained before attempting to set up or operate a PC system 1 Intended...

Page 14: ...ng OMRON PCs Be sure to read this manual before attempting to use the software and keep this manual close at hand for reference during operation WARNING It is extremely important that a PC and all PC...

Page 15: ...etc or memory cassettes Assembling any devices or racks Connecting or disconnecting any cables or wiring Caution Failure to abide by the following precautions could lead to faulty operation or the PC...

Page 16: ...ds after it is inserted and don t insert the the PC Card for at least 10 seconds after it is ejected Don t eject the PC Card while it is being accessed while either the CARD1 indicator or CARD2 indica...

Page 17: ...1 Part 1 Features and Components This part of the manual introduces the PC Card Unit s features describes the components of the PC Card Unit and explains the system configuration...

Page 18: ......

Page 19: ...ion provides an introduction to the PC Card Unit s features and explains the system configuration 1 1 Features 4 1 2 System Configuration 5 1 3 PC Card Unit Basics 6 1 3 1 Functions 6 1 3 2 Memory Car...

Page 20: ...PC card can be installed SRAM cards FLASH cards and ATA interface cards can all be used PC card data written by the PC Card Unit can be read and edited by commer cially available personal computers w...

Page 21: ...c system for using PC cards The second is to use the C200HW PCS01 EV1 PC Card Unit Ethernet Set which allows you to add Ethernet functionality to the basic system Basic System Configuration C200HW PCU...

Page 22: ...o the PC Card Unit 1 3 1 Functions The PC Card Unit has both memory card functions and Ethernet communica tions functions as shown in the following diagram PC Card Unit functions Memory card functions...

Page 23: ...s of CIO DM EM etc to contents of files on memory card 4 File Search Searches data in files on memory card Note Read and write operations for the ladder program cannot be executed 1 3 3 Ethernet Commu...

Page 24: ...ponse is returned automat ically if the recipient of the FINS command is a C200HX HG HE or CVM1 CV Programmable Controller For details refer to Section 9 FINS Commands FINS Communications Between a Co...

Page 25: ...PC Card Unit 10 2 1 1 PC Card Unit 10 2 1 2 Plates and Set Screws 11 2 1 3 Safety Precautions 11 2 2 C200HW PCS01 EV1 Ethernet Set 12 2 2 1 Ethernet Set 12 2 2 2 Plates and Set Screws 13 2 2 3 Setup D...

Page 26: ...components of the C200HW PCU01 PC Card Unit Check the actual product against the drawings shown below 2 1 1 PC Card Unit The PC Card Unit is the basic system that allows PC cards to be used in the C20...

Page 27: ...Unit Plate 1 Plate 2 Plate 4 Plate 3 Set screws x 5 Plate 1 Plate 3 Plate 4 Plate 2 2 1 3 Safety Precautions This sheet describes precautions to ensure safe use of the PC Card Unit Be sure to read the...

Page 28: ...rnet Set Check the actual product against the drawings shown below Note This manual is contained in the Ethernet Set package 2 2 1 Ethernet Set The Ethernet Set is a PC Card Unit basic system that has...

Page 29: ...Bus Connection Unit Plate 1 Plate 2 Plate 4 Plate 3 Set screws x 5 Plate 1 Plate 3 Plate 4 Plate 2 2 2 3 Setup Disk The setup disk contains the basic software and setup software required to use Ethern...

Page 30: ...200HW CE002 cannot be used with a PC Card Unit 2 The C200HW CE011 and C200HW CE012 are designed for a PC Card Unit and cannot be used with any other Units except that the C200HW CE012 also enables con...

Page 31: ...HG HE a Communications Board must be mounted in the C200HX HG HE There are two Communications Boards that can be used Use the C200HW COM01 if only the PC Card Unit is to be used Use the C200HW COM04...

Page 32: ...the computer to the PC Card Unit RS 232C connectors are used Applicable connectors are as follows XM2A 0901 connector OMRON XM2S 0911 connector cover OMRON Personal Computer Prepare an AT or compatibl...

Page 33: ...on This part of the manual describes how to install a PC Card Unit and set up the C200HX HG HE It includes information on memory card formatting the file format and file transfer operations between a...

Page 34: ......

Page 35: ...teps required to install the PC Card Unit and peripheral devices and prepare for operation Be sure you have read this section and understood all of the procedures before attempting to actually make th...

Page 36: ...re 1 Communications Board Mount either the C200HW COM01 or C200HW COM04 E Communications Board to the C200HX HG HE CPU Refer to the C200HW COM01 to 06 E Com munications Board Operation Manual for deta...

Page 37: ...The previous Bus Connection Units C200HW CE001 002 cannot be used with the PC Card Unit Likewise the PC Card Unit s Bus Connection Units C200HW CE011 012 cannot be used with other Units except that th...

Page 38: ......

Page 39: ...pening the Front Cover 29 4 3 2 System Switch Functions 30 4 3 3 Setting the Startup Mode 31 4 3 4 Setting the Card Format and Slot 31 4 3 5 Formatting Memory Cards 32 4 3 6 Setting the Operating Leve...

Page 40: ...two Communications Boards that can be used as shown below Use the Communications Board that matches your system requirements i e the C200HW COM04 E can be used to provide an RS 232C port in addition t...

Page 41: ...lowing 18 function codes can be allocated to expansion instructions 17 to 19 47 48 60 to 69 and 87 to 89 A default instruction is already allocated to each expansion function code One instruction cann...

Page 42: ...wn Arrow key displays function codes in descending order 17 89 88 17 89 INST TBL READ FUN17 ASFT Press CLR to return to the initial display INST TBL CHG FUN18 SCAN INST TBL READ FUN18 SCAN INST TBL CH...

Page 43: ...rogrammable Controller Use the C200HW CE011 or C200HW CE012 Bus Connection Unit to connect the PC Card Unit to the Programmable Controller Plate 1 mounting hole p 39 This screw hole is used to fix Pla...

Page 44: ...is used to supply electrical power from the C200HX HG HE to the PC Card Unit 4 2 3 Indicator Section The indicators show the operating status of the PC Card Unit the PC card slot etc Refer to 12 1 In...

Page 45: ...n be executed in the ladder program When Ethernet is used Status in which IP protocol can be used The RUN indicator may light even when the C200HX HG HE is stopped 2 The RUN indicator flashes when dat...

Page 46: ...Slot 2 2 Starts formatting see note Formatting is started by turning the pin OFF and then ON or ON and then OFF 1 Sets the operating level Level 1 Level 0 Note Pin 2 is valid only in memory card forma...

Page 47: ...ransfer the settings with the Ethernet setup software ON OFF Memory card formatting mode The FMT indicator flashes This mode is used to format the card inserted in the PC card slot SRAM ATA and FLASH...

Page 48: ...y card erases all data from the card Before formatting a memory card always back up all the necessary data from the card Turning pin 2 OFF then ON or ON then OFF starts formatting the memory card Pin...

Page 49: ...ot switch the operating level while the PC Card Unit is operating Otherwise the Unit will fail to operate normally 4 4 Mounting the PC Card Unit This section describes how to mount the PC Card Unit on...

Page 50: ...the upper edge of the bottom of the PC Card Unit to the CPU Backplane as shown in the figure below 2 Insert the connector on the PC Card Unit all the way into the connector on the CPU Backplane When...

Page 51: ...Link Unit If these Units are mounted in other slots the Bus Connection Unit cannot be mounted 1 2 3 1 Hitch the claw on the upper edge of the bottom of the PC Card Unit to the CPU Backplane as shown i...

Page 52: ...U and PC Card Unit in the correct slots in the CPU Backplane The name and function of each component are described below CPU bus interface connector 1 C200HW CE011 Bus Connection Unit CPU bus interfac...

Page 53: ...o do so secure plate 1 by tightening a screw into the plate 1 mounting hole as shown in the figure below 3 Secure the Bus Connection Unit to the C200HX HG HE CPU with a screw as shown in the figure be...

Page 54: ...ce connector 1 This connector connects to the CPU bus interface connector on the PC Card Unit CPU bus interface connector 2 This connector connects to the CPU bus interface connector on the SYSMAC LIN...

Page 55: ...1 by tightening a screw into the plate 1 mounting hole in the front surface of the PC Card Unit as shown in the figure below 3 Secure the Bus Connection Unit to the C200HX HG HE CPU with a screw as sh...

Page 56: ...lot 1 A type I II or III PC card can be mounted in this slot Slot 2 A type I or II PC Card can be mounted in this slot If however a type III PC Card is mounted in slot 1 slot 2 cannot be used Note Alw...

Page 57: ...net card cannot be installed or removed when the power is ON Always turn off the power before installing or removing the Ethernet Card Removing the Memory Card 1 2 3 1 Remove the set screw then remove...

Page 58: ...nit Turn on the C200HX HG HE If the PC Card Unit is started normally the RUN indicator will light If the ERR indicator lights eliminate the cause of the error as described in 12 1 Indicators and the E...

Page 59: ...net ODI driver and the UDP IP protocol are loaded into the Unit AR Restart When the relevant bit on word AR01 is turned from ON to OFF the PC Card Unit is restarted For operating level 0 turn bit 11 f...

Page 60: ......

Page 61: ...5 2 4 Memory Card Compatibility 49 5 3 File Operations CMCR Instruction 49 5 3 1 Summary of CMCR 49 5 3 2 CMCR Format 49 5 3 3 Files Created Using the CMCR Instruction 50 5 3 4 Related SR Words and Bi...

Page 62: ...and the C200HX HG HE CPU If the user specifies the memory address from which data is to be read the num ber of words and a file name data in C200HX HG HE memory can be written to the specified file in...

Page 63: ...slot 2 ON OFF FLASH Card Format card in slot 1 ON ON FLASH Card Format card in slot 2 Note Memory cards can also be formatted using PCMCIA2 1 compliant equipment such as personal computers In this ca...

Page 64: ...flashes This mode is used to format the card inserted in the PC card slot SRAM ATA and FLASH cards can be inserted in the slot 5 2 3 Starting Memory Card Formatting Note Formatting a memory card erase...

Page 65: ...00HX HG HE memory the contents of a file in a memory card in the PC Card Unit Process No 3 File and Memory Compare Compares to C200HX HG HE memory the contents of a file in on a memory card in the PC...

Page 66: ...n the CMCR process For explanations of the various processes refer to Section 5 3 6 Using CMCR Processes 5 3 3 Files Created Using the CMCR Instruction Maximum Number of Files per Card The entire card...

Page 67: ...C200HX HG HE memory to a file on a memory card in the PC Card Unit Control Data Control code Control code C 1 to C 7 Word Port No Process No 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 C 0 Bit Level 0 1 Por...

Page 68: ...of elements i e the number of words for binary and single word comma separation or the number of double length words double word comma separation Specify a number from 0 to FFFF in hexadecimal When ad...

Page 69: ...uble length word 1 0 1 00 06 00 00 12 34 56 78 9a bc de f0 12345678 9abcdef0 17 bytes ASCII text file Delete 1 00 01 Add CSV word 0 0 1 00 04 00 01 12 34 56 78 1234 5678 1234 5678 1234 5678 19 bytes A...

Page 70: ...le word comma separation Specified by no of elements Number of Words Read The number of words read is specified by word or number of elements Single word comma separation binary Specified by word Doub...

Page 71: ...to 10 and the command data and file reading results Function Bit Command data Contents of PC card D Response data 10 9 8 file storage words Size Binary 1 1 12 34 56 78 9a bc de f0 0000 0004 Size CSV w...

Page 72: ...s comma separation in single word units one word 1 Puts comma separation in double word units two words Control Code Input in hexadecimal values the drive and filename for the file to be compared The...

Page 73: ...the offset value is 0000 beginning of file Word Bit Specify the drive and filename in hexadecimal Settings and Results The following table shows examples of settings for bits 9 and 10 and the com man...

Page 74: ...three characters Shift JIS 1 byte alphanu meric code is used Slot 1 is drive G and slot 2 is drive H Command Data Data length Offset Search data 2 or 4 bytes Data Length For word comparison specify 3...

Page 75: ...eparation of a file called G DMDATA DAT at the operating level 0 PC Card Unit is searched for the specified data in C200HX HG HE memory The offset is 0000 and the search data is 5678 The contents of D...

Page 76: ...Unit processing time A Memory Card access time The access time will differ depending on the type of Memory Card used so in this instance it is calculated as 0 Minimum CMCR Instruction Execution Time...

Page 77: ...e DM words from DM 0200 onwards Program Execution condition 00000 25201 Operating level 0 CMCR execution enabled Operating level 0 File write newly created Single word comma separated file Process No...

Page 78: ...ogram 8 Debug the program 9 Check the write data Support Software Startup From the drive in which the SYSMAC Support Software is installed enter SSS and then press the Enter key to start up the SYSMAC...

Page 79: ...read command by turning execution condition IR 00001 from OFF to ON and back OFF Just as for the write command check to see that error output IR 00301 does not turn ON and check the response codes if...

Page 80: ......

Page 81: ...install Ethernet Cards and use the setup software It includes directions on how to use the SEND and RECV instructions to transfer data and provides details on the FINS commands and responses used for...

Page 82: ......

Page 83: ...e you have read this section and understood all of the procedures before attempting to actually make the settings or do any pro gramming 6 1 Outline 68 6 2 Procedures 68 6 3 Communications 70 6 3 1 Ou...

Page 84: ...hese procedures References for further reading are provided for each procedure 1 Communication Board Mount either the C200HW COM01 or C200HW COM04 E Communications Board in the C200HX HG HE CPU Refer...

Page 85: ...the PC Card Unit Ethernet Connection Connect the PC Card Unit to the Ethernet network Personal Computer Setup Connect the PC Card Unit to a personal computer and copy the setup soft ware Setup Softwar...

Page 86: ...HG HE CPUs CV series PCs and computers on the Ethernet network Node to node Data Transfer Response C200HX HG HE PC Card Unit CV Ethernet Unit CVM1 Ethernet Unit C200HX HG HE PC Card Unit FA computer C...

Page 87: ...he command and sends a response All processing is conducted automatically so there is no need to program the PC to respond to FINS commands When a FINS Command is Sent From the PC Card Unit A FINS com...

Page 88: ......

Page 89: ...81 7 5 Setting Up the Ethernet Environment 83 7 5 1 IP Address 83 7 5 2 Subnet Mask 84 7 5 3 ODI Driver 84 7 5 4 Hosts 84 7 5 5 Conversion Table for IP Addresses and FINS Node Addresses 85 7 5 6 FINS...

Page 90: ...the PC Card Unit Setting the System Switch Set the startup mode memory card format operating level etc If only a memory card is to be used set the operating level only Other pins can be left OFF Conne...

Page 91: ...is recommended that the Ethernet Card be installed in slot 1 7 2 3 Installing and Removing an Ethernet Card Note Use an Ethernet card that has a connector more than 3 mm away from the edge of the card...

Page 92: ...s the Ethernet card until its edge is aligned with the eject buttons To avoid accidental removal of the Ethernet Card it is recommended that the Ethernet Card be installed in slot 1 Eject buttons Faci...

Page 93: ...3 by tightening a set screw into the plate 3 mounting hole Plate 3 6 Secure the adapter cable with plates 3 and 4 by tightening set screws as shown below Plate 4 Installing and Removing the Ethernet...

Page 94: ...nstall the Ethernet Set Plate 3 Backplane Removing an Ethernet Card 1 2 3 1 Remove the set screw then remove plate 2 2 Remove the set screw then remove plate 3 3 Press the eject button as shown in the...

Page 95: ...to a 10BASE T network as an example of Ethernet connection 7 3 1 Connecting to the Hub 1 2 3 1 Connect the adapter from the Ethernet card to a twisted pair cable Adapter 2 Connect the twisted pair cab...

Page 96: ...r can be used The computer must have at least one RS 232C port available Free Hard Disk Space At least 1 MB of free space is required after the setup software has been installed Ethernet can be set up...

Page 97: ...ector all the way in then tighten the screws Front cover 3 Connect the 25 pin D SUB connector of the Host Link Cable to the serial communication connector on the personal computer Insert the connector...

Page 98: ...except subdirectories from the setup software floppy disk to the hard disk 1 2 3 1 Insert the setup software floppy disk in the disk drive of your computer 2 Use the COPY command to copy the contents...

Page 99: ...numbers of networks and hosts that can be identified differ according to the class Class Number of networks Number of hosts Class A Small More than 65536 216 Class B Medium 256 28 to 65536 216 Class...

Page 100: ...ied In this case the subnet mask is recognized as the one that has no subnet number or that consists of only the network number and host number To assign a subnet mask to a PC Card Unit select 2 Enter...

Page 101: ...k always specify the local network table If the PC Card Unit is to communicate with a node on another network the relay sta tion must be a CV series PC If routing tables are already set for C200HX HG...

Page 102: ...to nodes on Ethernet network 2 To specify a gateway address select 7 Edit Gateway Address for Unit from the main menu of the setup software Refer to 7 6 Setup Software Operation for details on how to...

Page 103: ...y the conversion correspondence between each pair of a FINS node address and IP address Specify IP addresses in decimal notation Note that if 0 is added to the beginning of each field the address will...

Page 104: ...COM port is not specified COM1 is used as default The setup software is started and the following main menu appears on the dis play 1 Enter IP address for UNIT 2 Enter Subnet address for UNIT 3 Enter...

Page 105: ...ess 2 Specify the IP address of the PC Card Unit Input a decimal number New IP address 123 45 67 89 123 45 67 89 May I setup current data Y N 3 Make sure that the IP address is correct Then enter Y an...

Page 106: ...n to the main menu To cancel the setting enter N and press ENTER to return to the main menu If the specified driver is not in the directory in which SETUP was executed the following message will be di...

Page 107: ...er of Line To Change 0 9 Add Line 10 Delete Line 0 9 Display Previous Item 11 Display Next Item 12 End 13 Specifying a new HOSTS file displays the file edit screen in which nothing is cur rently regis...

Page 108: ...splay will change as shown below Enter New Address and Name 123 45 67 13 HO3 0 123 45 67 13 HO3 1 2 9 Enter Number of Line To Change 0 9 Add Line 10 Delete Line 0 9 Display Previous Item 11 Display Ne...

Page 109: ...another Unit enter the file name New IP address and FINS Node address ip_fins fil May I setup current data Y N 3 Check that the file name is correct Then enter Y and press ENTER The file edit screen w...

Page 110: ...Display Previous Item 11 Display Next Item 12 End 13 The screen only displays 0 to 9 as shown in the figure above To specify the line next to 9 eleventh line select Add Line 10 Enter Number of Line T...

Page 111: ...e editing pro cedure Even if only one of the networks needs to be modified always perform the setting procedures for both of them 1 2 3 1 Select 6 Edit a Routing Table for FINS from the main menu Sele...

Page 112: ...layed in Step 3 To cancel the setting enter N and press ENTER to return to the screen displayed in Step 3 Relay Networks 7 Enter 2 and press ENTER to select 2 Set Relay Network address Select Number f...

Page 113: ...y Network address 3 Exit Select Number for ITEM 1 3 10 Enter 3 and press ENTER to select 3 Exit The screen will return to the main menu 7 6 9 Gateway Address 1 2 3 1 Select 7 Edit Gateway address for...

Page 114: ...hat SETUP2 EXE be used because the PC Card Unit may not operate if the settings are incorrect Enter the following command from the directory in which SETUP EXE was installed FTRANS filename S Z F COM2...

Page 115: ...WODI OC NET N COM or the ODI driver of your Ethernet card READHOST EXE ROUTE FIL or the specified routing table settings file SETUP FIL SETUP2 EXE TCPIP CFG TEMU INF INST BAT 4 Insert the memory card...

Page 116: ...lly transferred there as well The following items are required in order to use SETUP2 EXE at the PC Card Unit Personal computer Host Link Cable RS 232C Terminal software HyperTerminal provided with Wi...

Page 117: ...re F SETUP2 The setup software will start and the main menu will be displayed as follows 1 Enter IP address for UNIT 2 Enter Subnet address for UNIT 3 Enter ODI Driver Path 4 Edit HOSTS File 5 Edit Co...

Page 118: ...ing on the terminal software that is used so refer to the appropriate terminal software manual When the transfer is complete the main menu will be restored Uninstall By executing 8 Uninstall the Ether...

Page 119: ...er to the C200HX HG HE and the personal computer 2 Disconnect the RS 232C cable 3 Change the PC Card Unit s startup mode system switch by setting pins 5 and 6 to OFF Pin 6 Pin 5 Pin 1 Sets operating l...

Page 120: ......

Page 121: ...er data 8 1 Outline 106 8 1 1 Specifying Destination Nodes 106 8 1 2 Communications Specifications 106 8 1 3 Send Receive Data Areas 107 8 1 4 Instruction Status 107 8 1 5 SEND 90 RECV 98 CMCR Data Pr...

Page 122: ...ceived from the nodes Broadcasting is not applicable to RECV 98 Broadcast data Node 1 Node 2 Node 3 Node 4 Node 5 8 1 2 Communications Specifications PC communications are based on the following speci...

Page 123: ...d in binary coded decimal BCD Set the send receive area within the above ranges A data length of 1 000 words is valid only when the remote node supports it If the remote node can only return 256 words...

Page 124: ...ion response code is one byte and differs from the command response end code 2 bytes C200HX HG HE Word SR 237 Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Operating level 0 response code Operating level...

Page 125: ...ecution ends 8 1 5 SEND 90 RECV 98 CMCR Data Processing Timings The table below shows when data for the SEND 90 RECV 98 CMCR instruc tion is sent Send data Send Receive end processing All data that ha...

Page 126: ...destination word of the destination node for the SEND 90 instruction operand The beginning destination word of the des tination node may also need to be changed in some situations In this case set thi...

Page 127: ...ssing bit for beginning destination word 0 OFF Direct addressing 1 ON Indirect addressing No of retries 0 to F 0 to 15 Response monitoring time 00 Default 2 2 seconds 01 to FF approx 0 1 to 25 5 secon...

Page 128: ...ource word of the source node in the RECV 98 instruction operand The beginning source word of the source node may also need to be changed in some situations In this case set this bit to 1 ON indirect...

Page 129: ...de address 1 to 127 8 4 Minimum Transmission Delay Time for SEND RECV Instructions The minimum transmission delay time for SEND RECV instructions is as illus trated below SEND RECV Instruction execute...

Page 130: ...2 remote node cycle time 5 ms 5 ms 256 0 013 5 ms 256 0 013 5 ms local node cycle time 2 remote node cycle time 26 656 ms Actual Measurement Values For communication with a C200HX cycle time of 1 5 ms...

Page 131: ...ata 120 9 3 4 Command Data 121 9 3 5 Response Data 121 9 3 6 Instruction Status 121 9 3 7 SEND 90 RECV 98 CMCR Data Processing Timing 123 9 3 8 FINS Command Example 123 9 4 Using FINS Commands and Res...

Page 132: ...lize the particular functions of the network type that is being used The PC Card Unit executes the FINS communications service using UDP IP When FINS com mands are used for communications between Prog...

Page 133: ...ensure com munications reliability Consequently the FINS communications services using the UDP IP protocols cannot guarantee that any message arrived safely and unaltered at the destination Methods su...

Page 134: ...INS response stored FINS response data storage area For details on how to use FINS commands and responses refer to 9 4 Using FINS Commands and Responses For an explanation of using socket services wit...

Page 135: ...CR for memory card file operations or for details regarding the basic CMCR format refer to 5 3 File Operations CMCR Instruction 9 3 1 CMCR Format for FINS Commands The CMCR instruction s format for is...

Page 136: ...ng to the PC Card Unit in the local node Response Request Bit This bit is normally set to OFF 0 Request response If no response is required set the bit to ON 1 Don t request response Number of Retries...

Page 137: ...ommand For details regarding the contents of response data refer to Section 11 Using FINS Com mands and Responses 9 3 6 Instruction Status Status information for executed SEND 90 RECV 98 and CMCR inst...

Page 138: ...n is executed It is set to 00 during execu tion The instruction response code is one byte and differs from the command response end code 2 bytes C200HX HG HE Word SR 237 Bit 15 14 13 12 11 10 9 8 7 6...

Page 139: ...Data Processing Timing The table below shows when data for the SEND 90 RECV 98 or CMCR instruction is sent Send data Send Receive end processing All data that has been processed by the time the END i...

Page 140: ...send is an odd number set the remaining data to 0 FINS response storage destination 50 words in this example 9 4 Using FINS Commands and Responses With the C200HX HG HE the CMCR instruction is used f...

Page 141: ...01 CONTROLLER DATA READ Valid Valid Valid 170 06 01 CONTROLLER STATUS READ Valid Valid Valid 171 07 01 CLOCK READ Valid Valid Valid 172 02 CLOCK WRITE Not Valid Valid Valid 173 21 01 ERROR CLEAR Valid...

Page 142: ...PC data Memory area Data Data area address Address used in communications Memory area code No of bytes 1st and 2nd bytes 3rd byte CIO area Bit status 00000 to 51115 0000 to 01FF 00 to 0F 00 1 Word con...

Page 143: ...as a word and the address of bit 12 in AR 13 would be 04990C The unit of access bit or word and the data code are specified as shown in the following illustration Memory Area Codes Memory area codes...

Page 144: ...d data are set in advance in the C200HX HG HE s memory area Control Data Word Contents Meaning D0000 1810 Operating level 1 D0001 0002 Number of bytes to send 2 bytes D0002 0064 Number of bytes to rec...

Page 145: ...FINS message When a FINS command from a computer is used the destination s IP address and UDP port number must be set 9 6 2 FINS Command and Response Formats This subsection explains the data formats...

Page 146: ...ber for sending the command It is used for FINS and is different from the IP address used for Ethernet 00 Local PC 01 to 7F 1 to 127 Node in Ethernet DA2 Destination Unit Address Specifies as an absol...

Page 147: ...unit 1 32 0 hex Ethernet PC Card Unit Remote node IP address 196 36 32 100 FINS network node unit 1 64 0 hex The communications parameters specified from the host computer would be as follows Item Se...

Page 148: ......

Page 149: ...1 4 Opening TCP Sockets 135 10 1 5 Socket Services Port Numbers 136 10 1 6 Fragmentation of Transmitted Data 136 10 2 Using Socket Services 138 10 2 1 FINS Commands Used With Socket Services 138 10 2...

Page 150: ...ing Socket Services 10 3 Sample Programs for TCP and UDP Communications and Section 11 FINS Commands and Responses 10 1 2 Socket Operation A socket operates as shown in the following diagram when comm...

Page 151: ...n the node as a client Client TCP socket Active open Connection Passive open Server TCP socket Client and Server When an application which includes data communications processing between two nodes is...

Page 152: ...or other processes The setting status of the UNIX workstation port numbers can be checked in etc services 10 1 6 Fragmentation of Transmitted Data The PC Card Unit fragments data for TCP transmission...

Page 153: ...than the actual length of the data all the data can be received by repeating the receive requests When Using UDP An example of fragmentation and transmission of data using the UDP is shown in the foll...

Page 154: ...Unit Other node Transmission processing FINS command requesting socket services FINS response to request 10 2 2 Procedure for Using Socket Services The PC Card Unit has four sockets that can be used...

Page 155: ...rts the process requested by the parameters in the socket service request command CPU PC Card Unit Communications Other node 4 When the process has been completed the result is stored in the results s...

Page 156: ...0 11 12 Command code Results storage area Parameters Command Code Specifies the process code requested for the socket Socket Number Specifies the socket number for the process between 1 and 4 Results...

Page 157: ...ved 0 Close complete OFF when close has been completed Bit 4 to 12 Not used Bit 13 Socket Classification 1 TCP socket Indicates that the open socket is a TCP socket This has no meaning if the Open Fla...

Page 158: ...cket being used OFF Checks to see if the socket is open before com munications and close processing YES Error Evaluation Check the Instruction Enabled Flag Execute FINS command via CMCR for PC Card Un...

Page 159: ...nd receive and close request com mands are shown in the following diagrams OPEN REQUEST 1 0 1 0 1 0 Instruction Enabled Flag CMCR response code Opening Flag Open Flag Results storage area Running Runn...

Page 160: ...ceived RECEIVE REQUEST command received Receive complete normal end Store normal response code CLOSE REQUEST during RECEIVE REQUEST 1 0 1 0 1 0 1 0 Instruction Enabled Flag RECEIVE REQUEST command rec...

Page 161: ...tting a broadcast address for the destination node address The maximum length of broadcast data is 1 472 bytes Data in multi ple fragments over 1 472 bytes for a UDP socket cannot be broadcast The UDP...

Page 162: ...ter IP address 196 36 32 55 Port 4096 Operating level 1 IP address 196 36 32 101 FINS Network address 01 Node number 01 Unit address 10 PC Card Unit C200HX HG HE PC CMCR Data Flow to the PC Card Unit...

Page 163: ...ork address 01 Node number 01 Unit address 10 Number of retries Number of response bytes to receive 4 bytes Number of bytes to send 18 Operating level 1 or 0810 of operating level 0 1810 0008 0004 000...

Page 164: ...UEST PASSIVE results storage area Response code Remote IP address Remote TCP port number 0005 2714 0001 8204 0 1 2 3 4 5 6 7 8 9 DM 1030 TCP CLOSE REQUEST command data 1A00 Results storage area set to...

Page 165: ...e set to 1 Command code Transmission data length 7 words BCD 2712 0 1 2 3 4 5 6 7 8 9 DM 4010 DM 4020 TCP RECEIVE REQUEST response Respo nse code Respo nse code TCP RECEIVE REQUEST results storage are...

Page 166: ...close work bit Instruction Enabled Flag TCP close bit TCP close work bit Instruction Enabled Flag TCP Closing Flag Results Storage Error Flag Equals Flag TCP open bit TCP close work bit Instruction En...

Page 167: ...s occurred 00024 End of TCP OPEN execution CIO 00000 turns OFF to indicate that execution has been completed The next section of program uses CMCR to execute TCP CLOSE Execution starts when CIO 00001...

Page 168: ...k bit Instruction Enabled Flag TCP receive bit TCP receive work bit Instruction Enabled Flag TCP Receiving Flag Results Storage Error Flag Equals Flag TCP receive bit TCP receive work bit Instruction...

Page 169: ...02 turns OFF to indicate that the instruction execution has been completed The next section of program uses CMCR to execute TCP RECEIVE Execution starts when CIO 00003 turns ON Program address Explana...

Page 170: ...REQUEST is executed for the PC Card Unit when CIO 00001 turns ON UDP SEND REQUEST is executed for the PC Card Unit when CIO 00002 turns ON and 100 bytes of data are sent beginning with DM 2009 UDP REC...

Page 171: ...0 Operating level 1 or 0810 for operating level 0 1810 0008 0004 0001 0110 0000 0 1 2 3 4 5 6 7 8 9 DM 0010 CMCR control data for UDP CLOSE REQUEST Number of bytes to send 8 bytes Number bytes to rece...

Page 172: ...9 DM 1030 UDP CLOSE REQUEST command data 1A00 Results storage area set to DM 1050 041A UDP socket number closed set to 1 Command code Transmission data length 5 words BCD 0059 2703 0001 820B 0 1 2 3...

Page 173: ...nd code Transmission data length 7 words BCD 2702 0 1 2 3 4 5 6 7 8 9 DM 4010 DM 4020 UDP RECEIVE REQUEST response Respo nse code Respo nse code UDP RECEIVE REQUEST results storage area Send data 100...

Page 174: ...close work bit Instruction Enabled Flag UDP close bit UDP close work bit Instruction Enabled Flag UDP Closing Flag Results Storage Error Flag Equals Flag UDP open bit UDP close work bit Instruction En...

Page 175: ...occurred 00024 End of UDP OPEN execution CIO 00000 turns OFF to indicate that execution has been completed The next section of program uses CMCR to execute UDP CLOSE Execution starts when CIO 00001 tu...

Page 176: ...k bit Instruction Enabled Flag UDP receive bit UDP receive work bit Instruction Enabled Flag UDP Receiving Flag Results Storage Error Flag Equals Flag UDP receive bit UDP receive work bit Instruction...

Page 177: ...02 turns OFF to indicate that the instruction execution has been completed The next section of program uses CMCR to execute UDP RECEIVE Execution starts when CIO 00003 turns ON Program address Explana...

Page 178: ......

Page 179: ...8 FORCED SET RESET CANCEL 175 11 1 19 MULTIPLE FORCED STATUS READ 175 11 2 PC Card Unit Commands and Responses 176 11 2 1 PC Card Unit FINS Commands List 176 11 2 2 CONTROLLER DATA READ 177 11 2 3 INT...

Page 180: ...ommand code 2 bytes 1 996 bytes max 2 bytes Note The maximum size of a command or response depends upon the type of net work through which the transmission is relayed The above limits are for FINS com...

Page 181: ...DM Area Word contents DM 0000 to DM 9999 0000 to 270F 00 to 00 82 2 Expansion DM Area Word contents EM 0000 to EM 6143 0000 to 17FF 00 to 00 90 to 98 2 Note 1 The size of the memory area varies depend...

Page 182: ...n Flag status 01 1 PV 81 2 DM Word contents 82 2 Expansion DM Word contents 90 to 98 A8 to AF 2 Response code Refer to Appendix D Response Codes from the C200HX HG HE CPU and Appendix E FINS Response...

Page 183: ...READ Reads the contents of the specified number of non consecutive memory area words starting from the specified word Note If there is an error in the command code or a beginning address no data will...

Page 184: ...ommand and response Set to 0000 Beginning word command and response Set a relative byte address with 00000000 as the starting address The beginning word must be an even num ber The address set in the...

Page 185: ...sponse Set a relative byte address with 00000000 as the starting address The beginning word must be an even num ber The address set in the command will be returned in the response No of bytes command...

Page 186: ...e Command code Response code Refer to Appendix D Response Codes from the C200HX HG HE CPU 11 1 12 CONTROLLER DATA READ Reads the following data Controller model and version Area data PC status Command...

Page 187: ...ords Peripheral Bus Connection response The Peripheral Bus connection is indicated as follows 00 No peripheral connection recognized 80 Peripheral connected Response code Refer to Appendix D Response...

Page 188: ...byte First byte FAL FALS no response The number of the highest priority FAL FALS error is returned as BCD between 00 and 99 decimal to the second byte The first byte is always 00 If no error has occur...

Page 189: ...The rightmost two digits of the year Hour Specify 00 to 23 Day As follows Value 00 01 02 03 04 05 06 Day Sun Mon Tues Wed Thur Fri Sat Response code Refer to Appendix D Response Codes from the C200HX...

Page 190: ...t reset specification Memory area code Bit flag FORCED SET RESET data Response Block Command code Response code Parameters No of bits flags command The number of bits flags to be processed Set Reset s...

Page 191: ...11 1 19 MULTIPLE FORCED STATUS READ Reads the forced status of the specified range of words or timers counters Command Block Command code Beginning word Memory area code Number of units Response Bloc...

Page 192: ...FF 0 No forced status in effect ON 1 Forced ON or forced OFF Timers Counters Status of the Completion Flag will be returned as fol lows 00 No forced status in effect 01 Forced ON or forced OFF Respons...

Page 193: ...s will be filled with spaces 20 IP address subnet mask response There are four bytes returned respectively for the PC Card Unit s IP address and subnet mask UDP port number for FINS response There are...

Page 194: ...er of times that the BROADCAST TEST DATA SEND command has been executed since the last BROADCAST TEST RESULTS READ command was executed it means that an error has occurred Response code Refer to Appen...

Page 195: ...esponse Block Error log data Response code Command code Max no of stored records No of stored records No of records 10 bytes Xn Parameters Max no of stored records response Designates the maximum numb...

Page 196: ...12 bytes fill the remaining bytes with spaces 20 File offset command Designates the offset from the beginning of the file from which to start reading Data length command Designates the number of bytes...

Page 197: ...od 3 letter extension One byte alphanumeric code is used When there are not enough letters to fill all 12 bytes fill the remaining bytes with spaces 20 File offset command The number of bytes from the...

Page 198: ...xisting file names have been specified the PC Card Unit will ignore them and the operation will continue 2 If the specified number of files and the number of file names do not coincide no files will b...

Page 199: ...le name command The original file name for the file New file name command The new name for the file The file will not be copied if an existing file name is given Set as File name of up to eight letter...

Page 200: ...e PC Card Unit 11 2 14 SINGLE FILE WRITE WITH COMMAS Writes a new file to the file device connected to the PC Card Unit or appends to overwrites an existing file stored in the file device Writes speci...

Page 201: ...contents of the existing file will be left unchanged 4 When a SINGLE FILE WRITE is executed the PC Card Unit s time data will be used to record the time and date of the file 5 The PC Card Unit s time...

Page 202: ...receive request is received 0 Receive complete OFF when receive has been completed Bit 2 Sending Flag 1 Sending ON when a send request is received 0 Send complete OFF when send has been completed Bit...

Page 203: ...Number Command The UDP port number for communica tions with the socket is specified as two bytes 0 cannot be specified Packets received at this port are distributed to the socket specified in the UDP...

Page 204: ...lts Storage Area Error Flag will turn ON Number of Reception Bytes Command Results Storage Area The maxi mum number of bytes of data to be received is given in the command The num ber of bytes of data...

Page 205: ...Specify the UDP socket number to be opened as two bytes between 1 and 4 Results Storage Area Command The words 0 to 255 and 256 to 511 of the memory area words 0 to 6143 of the data memory and words 0...

Page 206: ...SGSIZE 004E Could not reach the remote network ENETUNREACH 11 3 6 UDP CLOSE REQUEST Requests processing to close a socket Command Block 04 27 Command code UDP socket number Results storage area Respon...

Page 207: ...memory and words 0 to 6143 each bank of the expansion data memory can be used However do not designate the special auxiliary area Refer to 11 1 4 Memory Area Designations When a bank that does not ha...

Page 208: ...rt number Remote IP address Remote TCP port number Response Block 11 27 Command code Response code Results Storage Format Response code Local port number Parameters TCP Socket Number Command Specify t...

Page 209: ...communication error occurred with the remote node No remote exists ETIMEDOUT 11 3 9 TCP RECEIVE REQUEST Requests that data be received from a TCP socket Command Block 12 27 Command code Results storag...

Page 210: ...0000 Normal 1100 TCP socket number is out of range Number of reception bytes is out of range i e over 1982 1101 The memory area code for the results storage area is out of range 1103 Non zero bit addr...

Page 211: ...ory area code for the results storage area is out of range 1103 Non zero bit address is specified for the results storage area 2201 The specified socket is opened as a UDP socket 220F The specified so...

Page 212: ...turn ON Note Any other processing such as sending or receiving data being carried out when this close command is executed will be forcibly ended and a code will be stored in the results storage area t...

Page 213: ...197 Part 4 Troubleshooting This part of the manual includes information on troubleshooting errors and using the error log...

Page 214: ......

Page 215: ...en when the indicators light It also explains how to use the error log 12 1 Indicators and the Error Log 200 12 1 1 Reading the Error Log 200 12 1 2 Error Log and Indicators 200 12 2 Troubleshooting 2...

Page 216: ...Commands and Responses for details on command usage and response details 12 1 2 Error Log and Indicators The following table describes the error types and codes recorded by the PC Card Unit It also s...

Page 217: ...address is correct Check whether 0 is added to the beginning of the IP address Any address start ing with 0 is interpreted as an octal number Check whether the command parameters are correctly specifi...

Page 218: ...These examples show sending the PING command to the node at IP address 130 25 36 8 The on the example screen represents the host computer prompt User inputs are underlined Comments are placed after s...

Page 219: ...Supports Ethernet C200HW PCS01 EV1 Bus Connection Unit Connects one PC Card Unit C200HW CE011 Connects one PC Card Unit and one SYSMAC LINK or SYSMAC NET Link Unit C200HW CE012 Communications Board CP...

Page 220: ......

Page 221: ...o battery backup Serial port RS 232C 1 channel terminal connection setup PC card interface PCMCIA 2 1 3 3 V low voltage specification not supported Type II 2 slots or Type III 1 slot PC interface SYSM...

Page 222: ...Appendix B Specifications 206 Dimensions Unit mm Backplane Backplane Plate 3 When using an Ethernet card be sure to allow sufficient room to install the cable...

Page 223: ...39 D13 6 D7 40 D14 7 CE1 41 D15 8 A10 42 CE2 9 E 43 RFSH 10 A11 44 IORD 11 A9 45 IOWR 12 A8 46 A17 13 A13 47 A18 14 A14 48 A19 15 WE PGM 49 A20 16 RDY BSY REQ I O Card 50 A21 17 VCC 51 VCC 18 VPP1 52...

Page 224: ...NC 2 SD 7 DR 3 RD 8 ER 4 RS 9 SG 5 CS Connector base FG PC Card Unit side D sub 9 pin female connector Cable Wiring Wire the cable similarly to the following connections The following Connector and C...

Page 225: ...the FINS Commands Reference Manual for details on trouble shooting the error If bit 6 or 7 of the second byte is ON an error has occurred in the PC or computer returning the response Refer to the oper...

Page 226: ...tatus and reset the controller board If the error still exists replace the controller board 04 Node number setting error Make sure the node number is within specified range and that there are no dupli...

Page 227: ...ause it is already being executed Either abort the current IOM break function processing or wait until it is completed and execute the command Check the data link tables for duplicate node numbers 0B...

Page 228: ...file has been specified 07 The specified file already exists Change the name of the file and execute the instruction again 08 Data cannot be changed Check the contents of the memory area being writte...

Page 229: ...sfer between the CPU and an I O Unit Check the Unit Service Boards and cable connections and issue the ERROR CLEAR command 09 SYSMAC BUS 2 error An error occurred during SYSMAC BUS 2 data transfer Che...

Page 230: ...not part of the data link Execute the service from a node that is part of the data link A buffer error has prevented returning a normal response Reset the board If the error persists replace the board...

Page 231: ...Destination IP address not recognized transmission not possible 0202 Specified Unit nonexistent transmission not possible 0301 Network error transmission not possible 0401 Command frame not supported...

Page 232: ......

Page 233: ...munications When commands are transmitted from the Programmable Controller to the host the PC Card Unit uses the CMCR instruction whereas the CV series and CS1 series Ethernet Units use the CMND instr...

Page 234: ......

Page 235: ...sonal computer The personal computer operating environment used in this example is as follows MS Windows 95 EXCEL Built in PC Card driver 1 2 3 1 Insert the Memory Card created on the PC Card Unit int...

Page 236: ......

Page 237: ...ive knowledge of safety precautions and specifications Do not install Ethernet network equipment in the vicinity of noisy equipment When installing in a noisy environ ment ensure that each individual...

Page 238: ......

Page 239: ...HG HE and host link connection from SYSMAC Support Software SSS With remote tool connection via PCU Card Unit Ethernet it is not possible to use SYSMAC Link related functions such as starting and sto...

Page 240: ......

Page 241: ...al bus connection Personal computer SYSMAC Support Software SSS Remote tool connection can only be executed between C200HX HG HE Programmable Controllers with PC Card Units mounted It cannot be execut...

Page 242: ...lowing procedure Note When communicating from a C200HX HG HE Communications Board make sure that the SYSMAC LINK Peripheral Device Initialization Bit AR 2403 is turned ON when the SYSMAC Support Softw...

Page 243: ...the original data is corrupted or erased baud rate The data transmission speed between two devices in a system measured in bits per second BCD Short for binary coded decimal binary A number system whe...

Page 244: ...code stored in the PC to indicate the results i e normal or error of PC com munications control bit A bit in a memory area that is set either through the program or via a Program ming Device to achie...

Page 245: ...10 In a PC all data is ultimately stored in binary form four binary bits are often used to represent one decimal digit via a system called binary coded decimal default A value automatically set by th...

Page 246: ...s messages between PCs on any of various OMRON FA networks Also see CV mode flag A dedicated bit in memory that is set by the system to indicate some type of oper ating status Some flags such as the c...

Page 247: ...rt of the startup process whereby some memory areas are cleared system setup is checked and default values are set input The signal coming from an external device into the PC The term input is often u...

Page 248: ...ode can be any one of a number of devices This kind of network usually operates over a small area such as a group of offices or a factory floor local network table A table that specifies all of the ne...

Page 249: ...nal by a receiving party e g output device or PC offset A positive or negative value added to a base value such as an address to specify a desired value ON The status of an input or output when a sign...

Page 250: ...al servicing Processing signals to and from peripheral devices including refreshing com munications processing interrupts etc present value The current value registered in a device at any instant duri...

Page 251: ...mmunications are taking place See local remote node In network communications the node with which communications are taking place See local node reset The process of turning a bit or signal OFF or of...

Page 252: ...ubnet number SV Abbreviation for set value synchronous execution Execution of programs and servicing operations in which program execution and servicing are synchronized so that all servicing operatio...

Page 253: ...ons transceiver A physical interface to a network that converts signals transfer The process of moving data from one location to another within the PC or between the PC and external devices When data...

Page 254: ...t A bit that can be used for data calculation or other manipulation in programming i e a work space in memory Also see work word work word A word that can be used for data calculation or other manipul...

Page 255: ...R 237 122 SR 252 122 SR related words and bits 50 comma separated value format See CSV command codes 129 COMMAND COM Ethernet network environment 201 Communications Boards 15 mounting 24 procedures 20...

Page 256: ...ponse codes list 215 response code list 126 from another node 119 ladder program 117 routing tables local network table 85 96 relay network table 85 96 setup software 95 FINS commands C200HX HG HE ERR...

Page 257: ...6 Media Attachment Unit See MAU memory card formatting mode pin settings 48 memory cards 40 47 format DOS FAT 47 MS FLASH 47 pin settings 47 setting 31 formatting 32 error troubleshooting 201 pin set...

Page 258: ...tions mounting SYSMAC LINK Unit 21 34 35 SYSMAC NET Link Unit 21 34 35 personal computers 80 Results Storage Error Flag 141 186 RSV 130 S SA1 130 SA2 130 screws Ethernet Set 13 PC Card Unit 11 SEND 7...

Page 259: ...89 SYSMAC LINK 116 SYSMAC NET 116 SYSMAC Support Software 26 system configuration basic 5 Ethernet 6 system switch 29 30 functions 30 startup checking 42 T TCP 8 71 See also sockets precautions 136 TC...

Page 260: ...dicator and a section added on Ether net network environment and echo back test with PING command Page 219 Information added on differences with Ethernet Unit 3 January 2000 Page 16 Changes made to in...

Page 261: ...Manufacturer s support number provided in the documentation for the embedded system Should you have any questions concerning this Agreement or if you desire to contact Embedded System Manufacturer for...

Reviews: