Home

3G8F7-SLK21-E

image

Contents

1. I 7 3 1 Example Routing Table Settings 87 What is Network Interconnection Section 7 1 7 1 What is Network Interconnection Network interconnection enables commands and responses for the message service to be sent and received across multiple networks including FA and OA networks The four networks listed below can be interconnected to achieve this FA Networks e Controller Link Networks e SYSMAC NET Link Networks e SYSMAC LINK Networks OA Networks Ethernet Networks 7 1 1 Interconnecting SYSMAC LINK Networks SYSMAC LINK Networks can be connected through CV series PCs CS1 series PCs or computers with FinsGateway SYSMAC LINK Network SYSMAC LINK Network CS series CV series PC CS series C200HX HG HE or PC or IBM computer with CV series PC FinsGateway See note IBM PC AT or IBM PC AT or compatible compatible Note A data bridge is created between SYSMAC LINK Units mounted on the same PC 7 1 2 Interconnecting Different Types of Networks CV series PCs CS series PCs or computers with FinsGateway can be used to connect a SYSMAC LINK Network with another network SYSMAC NET Link Controller Link or Ethernet SYSMAC LINK Network Ethernet o EIE 4 MU CS
2. 6 3 6 NETWORK STATUS READ Reads the operating status of the entire SYSMAC LINK Network Command Block 06 02 code Response Block 06 02 31 bytes 8 bytes 62 bytes Command Response Participation Actual Continuous Cyclic code code data communications cyclic error error counter cycle time status Polling node address Cyclic transmission Cyclic operation 72 Commands and Responses for the Support Board Section 6 3 Parameters Participation data response These 31 bytes indicate the status of individual nodes within the network i e their participation in the network As shown in the following diagram that status is expressed in four bits corresponding to the node address Bit 7 6 5 4 3 2 1 0 Byte 1 Node 2 Node 1 Participation Status of Individual Nodes Byte 2 Node 4 Node 3 0 Byte 3 Node 6 Node 5 I 0 Not part of network Jk 1 Part of network Byte St Node 62 Node 61 d c Ve Redes 0 Normal node 1 Non responding node No response to polling Actual communications cycle time response The actual communications cycle time is returned in units of 100 us in hexadecimal Polling node address response The current polling node s node address is returned in hexadecimal Cyclic operation response Indicates the status of cyclic operation in the net Wo
3. 2 x i y Late 1 Communications cycle time i e Datalink transmissions ae Receive processing FinsGateway SlkReadDatalink User application Computer at node 1 Data link I O response time There are three points shown in the diagram above where processing is delayed increasing the data link I O response time 1 2 3 1 The input arrives in the PC just after I O refreshing causing a delay of up to one cycle before the input is read into the PC 2 Data exchange occurs just after the PC at node 2 passes the token that makes it the polling node causing a delay of up to one communications cycle time before the data is transferred in data link processing 3 The data arrives at the Data Link Area of the Support Board mounted at the computer at node 1 but processing is delayed until the user application executes the SlkReadDatalink library function This delay will vary depend ing on the contents of the user application Note 1 The I O response time may be increased by noise or other factors 2 The data send processing time for the area marked by the asterisk in the diagram will be affected by the processing capacity of the computer that is used 3 The communications cycle time may fluctuate 4 Refer to the SYSMAC LINK Units Operation Manual W202 W367 for de tails on the time required for data exchanges between the SYSMAC LINK Unit and the PC 64 SE
4. Command Response Text code code When multiple networks are connected there are limits to the amount of data that can be transferred via the SYSMAC LINK Network and the host link func tion Commands and Responses for the Support Board Section 6 3 6 3 Commands and Responses for the Support Board 6 3 1 Command Codes Command Data link operation mode code Active Inactive 04 01 Not valid Valid DATA LINK START 69 02 Valid Not valid DATA LINK STOP 69 05 01 Valid Valid CONTROLLER DATA READ 70 06 01 Valid Valid CONTROLLER STATUS READ 70 02 Valid Valid NETWORK STATUS READ 72 03 Valid Valid DATA LINK STATUS READ 74 08 01 Valid Valid ECHOBACK TEST 75 02 Valid Valid BROADCAST TEST RESULTS READ 75 03 Valid Valid BROADCAST TEST DATA SEND 76 21 02 Valid Valid ERROR LOG READ 76 03 Valid Valid ERROR LOG CLEAR 77 6 3 2 DATA LINK START Starts the SYSMAC LINK Network data links Command Block 04 01 Command code Response Block 04 01 Command Response code code The DATA LINK START command can be received for manually set data links An error will occur if manually set data links are specified and yet data link tables do not exist The node that receives this command and starts the data links will become the data link startup node Note The Support Board can participate in a
5. PEMSLKADDRESS pEmAddress Pointer to the starting address structure for reading data LPWORD IpWriteData Pointer to the buffer to store the read data DWORD dwSize Read data size unit words SLK_SUCCESS is returned if the function ends normally SLK_ERROR is returned if the function ends in an error Detailed error informa tion can be obtained using SlkGetLastError Refer to 4 2 Structure Descriptions for information on the starting address struc ture for reading data The function will end in an error in the following cases Error cause Detailed error information A value of 0 was specified for the argument s ERR READ BUFFER SIZE read data size Read data size error Access is requested to 3 or more different ERR MEMORY AREA memory areas for one SLK handle Multiple memory area specification error The memory name specified in the argument ERR NO MEM TYPE does not exist No such memory Network Status Read Reads the network status INT SlkGetNetworkStatus PSLKHANDLE hSLK BYTE byNet PNSTBUFFER pBuffer 41 Library Functions Section 4 1 Arguments Return Value Description Variable name Description PSLKHANDLE hSLK The SLK handle obtained with SlkOpen Network address of the Board to read network status PNSTBUFFER pBuffer Pointer to the buffer structure to store the read data SLK_SUCCESS is returned if the function ends normally SLK_ERROR is r
6. Minutes S Day Hour Year Month econds The time is recorded in BCD with one byte each for the year the rightmost two digits month day hour seconds and minutes of the time the error occurred Note The SYSMAC LINK Support Board reads and uses the computer s time informa tion If the time cannot be read from the computer all error log times will be set to 0 When these error log records are read they will be dated 0 s 0 min 0 hr 0 day 0 month 2000 9 3 2 Error Codes The following table lists the error codes in 4 digit hexadecimal and the contents of the errors All error codes and detail codes are in hexadecimal Error Contents Detail code Correction Recorded code i Hex 1st byte Hex 2nd byte Hex EEPROM 0001 CPU Unit watchdog timer 00 00 Replace the CPU Unit Yes error 0002 CPU Unit service monitor Monitor time ms Check the environment Yes error settings 0003 CPU Unit RAM error 01 Cyclic 00 Check the environment Yes 02 Event settings 04 CPU bus link 0004 CPU Bus Unit ID number 00 00 Check the I O tables Yes error 0005 Unit number error Unit set value CPU Unit Check the unit number settings Yes detected value and recreate the I O tables 0006 CPU error Bit 11 Unit missing in registered Check the unit number settings Yes I O tables and recreate the I O tables Bit 12 Hard test number detected Bit 13 Illegal number detect
7. Computer User application SlkSendFins SlkRecvFins FinsGateway SYSMAC LINK PCI Embedded Edition SYSMAC LINK Support Board r SYSMAC LINK Network A maximum of 4 PCI Bus SYSMAC LINK Support Boards can be mounted to one computer Consequently multiple user applications can be executed simulta neously Computer User application User application ral a FinsGateway SYSMAC LINK PCI Embedded Edition SYSMAC LINK SYSMAC LINK Support Board Support Board SYSMAC LINK Network Specifications and Configurations Section 1 2 1 2 Specifications and Configurations 1 2 1 System Configuration Coaxial System CS1W SLK21 C200HW SLK23 24 CV500 SLK21 C1000H SLK21 V1 IBM PC AT or SYSMAC LINK Unit SYSMAC LINK Unit SYSMAC LINK Unit SYSMAC LINK Unit compatible compatible C200HX HG CVM1 or CV series PC C1000H or C2000H PQ CS series Coaxial cable 3G8F5 SLK21 E 3G8F7 SLK21 E SYSMAC LINK SYSMAC LINK ISA Support Board PCI Support Board Optical System C200HW SLK13 14 CV500 SLK11 C1000H SLK11 CS1W SLK11 IBM PC AT or SYSMAC LINK Unit SYSMAC LINK Unit SYSMAC LINK Unit SYSMAC LINK Unit compatible C1000Hor CS series C200HX HG HE PC CV series PC C2000H PC PC H PCF Optical Fiber Cable Daisy chain connection 3G8F7 SLK11 E SYSMAC LINK PCI Support Board Backup powe supply
8. 1 2 3 1 Cut the coaxial cable to the desired length LA mm L mm 12 mm Approx 24 5 mm Approx 24 5 mm Pi Connecting Coaxial Systems Section 2 1 2 Strip 15 mm of the cable sheathing Strip the cable carefully so that the wire mesh shield is not cut or otherwise damaged 15mm 3 Place the ferrule on the cable in the proper direction as shown in the follow ing diagram Ferrule MANN Tt WE Cable 4 Spread out the wire mesh shield at the end of the cable and insert the sleeve Use the stripping tool to firmly push the sleeve until the flange fits snugly against the wire mesh shield Shield Ferrule Sleeve Sleeve 5 At this stage the polyethylene core and center conductor will be slightly long Cut off the portion A in the diagram that protrudes past the stripping tool so that the polyethylene core is flush with the outer surface of the strip ping tool Stripping tool VEA M B jt Blad Ferrule Shield Sleeve 6 Press the stripping tool s blade B in the diagram so that the blade cuts into the polyethylene core and rotate the tool several times Hold the blade down and pull the tool off of the cable direction D as shown in the diagram aetate utu teret et 21 Connecting Coaxial Systems Section 2 1 7 Use a pair of scissors to trim off the excess wire mesh shield as shown in t
9. Multi drop bus Transmission speed 2 Mbps Maximum transmission distance 1km Transmission media Coaxial cable 5C 2V Node connection method BNC connectors Applicable Programming Devices FinsGateway s SLK data link setting utility See note 1 Maximum number of nodes 62 nodes Communications functions Data links and message service Number of data link words Transmission area per node 508 words max 254 words in the CIO LR Area and 254 words in the DM Area Number of data link words that can be used with one PCI Board total transmission 2 966 words max Data link areas FinsGateway s event memory Message length 552 bytes max including the header RAS functions Polling node backup function Self diagnosis function hardware checking at startup Echoback test and broadcast test using FINS commands Watchdog timer Error log function Error control Manchester code check CRC check CCITT X16 X12 X5 1 Note The Board s data link tables can be set using CX Net in CX Programmer Use the FinsGateway s SLK data link setting utility or the SYSMAC LINK Support Software 1 2 4 General Specifications External dimensions SYSMAC LINK PCI Support Board Coaxial system 3G8F7 SLK21 Optical system H PCF cable 3G8F7 SLK11 106 x 140 mm W x L Weight 109 g excluding mounting bracket 120 g excluding mounting bracket
10. Number of Send and receive 2 966 words max total in areas 1 and 2 data link words words per node Send words per 508 words max 254 CIO LR Area words and 254 DM Area words max node Allocation of Manual setting Area 1 CIO Area or LR Area data link areas Area 2 DM Area The allocation is set in the data link table Automatic setting Data area Word Units number of data link nodes addresses 5 4 8 CIO LR 1000 to 32 words 16 words 8 words 1063 DM D00000 to 64 words 32 words 16 words D00127 51 Setting Data Links Section 5 2 5 2 Setting Data Links 5 2 1 Selecting Manual or Automatic Settings The data link mode manual or automatic is specified by using a Programming Device to set the data link mode parameter in the startup PC s PC Setup in the DM Parameter Area Note 1 The data link mode can be selected only with a SYSMAC LINK Unit Refer to the SYSMAC LINK Units Operation Manual W202 W376 for more details 2 Data links must be set manually when the SYSMAC LINK Support Board has been set as the startup node 3 The data link mode can be set in the data link startup node only The data link mode setting is determined by the data link mode of the startup node even if the data link mode settings of the nodes participating in the data links are different from the settings in the startup node 4 In manual setting a data link table must be set in the d
11. 14 ERR INTERNAL FAILURE Unexpected error 15 ERR NOT RING MODE Not in Optical Token Ring Mode 16 ERR NETWORK ADDRESS Network address specification error 30 Service not defined 32 Memory insufficient cannot execute 34 Network busy cannot execute 35 Reception buffer overflow 36 Data size error 37 FINS header error 38 Reception timeout 39 SID setting error 41 Destination address not in routing tables cannot execute 42 Routing table setting error cannot execute 43 um Too many gateways 67 2 Illegal window handle error 69 Message registration duplication error SECTION 5 Data Links This section describes how to use data links in a SYSMAC LINK Network 35 1 What Data Links Sarrera u eas e RS GERADE VE ex aes xU repe 5 1 1 Data Link Specifications 888 3 2 Setting Dat Links ies ee Eh Dae bee IDEE EET TR EAT 5 2 1 Selecting Manual or Automatic Settings 5 2 27 Manual Setting iussi movet oh boty Sa E We BR aed 5 2 3 Data Link Table Settings Manual Settings 5 2 4 Automatic Setting Select AI 2 eee eee 5 2 5 Data Area Allocation with Automatic Settings 5 3 Starting and Stopping Data Links 0 0 0 eee ee 5 3 1 Using a Programming Device or a Ladder Program
12. 38 an SLK handle SlkClose Board Close Closes the application interface and 39 releases the SLK handle SlkSendFins FINS Message Send Sends a FINS message 39 SlkRecvFins FINS Message Receive Receives a FINS message 40 SlkWriteDatalink Data Link Data Write Writes data to a data link area 40 SlkReadDatalink Data Link Data Read Reads data from a data link area 41 SlkGetNetworkStatus Network Status Read Reads the network status 41 SlkSetMessageOnArrival FINS Message Reception Makes settings to notify the specified 42 Notification Registration to window with a Windows message when Window a FINS message is received SlkSetThreadMessageOnArrival FINS Message Reception Notification Registration to Thread Makes settings to notify the specified 43 thread with a Windows message when a FINS message is received SlkClearMessageOnaArrival FINS Message Reception Clears windows message notification 43 Notification Clear when a FINS message is received SlkGetLastError Detailed Error Information Gets an error code generated when an 44 Acquire SLK library function is used 4 1 1 SlkOpen Function Call Format Arguments Return Value Description Supplemental Information 38 Board Open Opens the application interface and gets an SLK handle PSLKHANDLE SlkOpen BYTE byAppUnitAdr INT piRetErr Variable name byAppUnitAdr Unit address allocated to the application piRetErr Error in
13. Current consumption 0 45 A max at 5 VDC Without power supply 0 52 A max at 5 VDC With power supply 0 33 A max at 5 VDC Installation environment conditions 10 Same as for computer 1 2 Specifications and Configurations Section 1 2 1 2 5 Dimensions Coaxial Model 3G8F7 SLK21 E 161 6 140 126 107 Unit mm 11 Specifications and Configurations Section 1 2 Optical Model H PCF Cable 3G8F7 SLK11 E 126 140 163 Unit mm 12 Specifications and Configurations Section 1 2 1 2 6 Indicators Optical System ERA PS AUN Coaxial System pi Ez H PCF Cable LHE INS Status Explanation Operating Lit The Board is operating normally Not lit A Board operating error watchdog timer error has occurred ERR Error Red Lit One of the following errors has occurred Communications error Node address setting error duplicate setting Optical system connection error EEPROM error Hardware error Data link table error Routing table error Network parameter error Not lit Operating normally no errors in the setting tables INS Participating Yellow Lit Participating in network in network Not lit Not participating in network LNK Sending data Yellow Lit Sending data link participating in data link link Flashing Error in the data link table settings Not
14. Data exchange occurs just after the computer at node 1 receives the token that gives it the right to send data so processing is delayed about one com munications cycle time until the data is transferred in the next data ex change 2 The data link transmission just misses the PC s data exchange at node 2 so processing is delayed about one PC cycle until the data is read into the PC during the PC s next data exchange If the cycle time of the PC at node 2 is longer than the communications cycle time the delay would be approx imately two PC cycles 1 The I O response time may be increased by noise or other factors 2 The data send processing time for the area marked by the asterisk in the diagram will be affected by the processing capacity of the computer that is used 3 The communications cycle time may fluctuate 4 For details regarding the time required for data exchanges between the SYSMAC LINK Unit and the PC refer to the SYSMAC LINK Units Operation Manual W202 W367 63 Data Link I O Response Time Section 5 6 5 6 2 PC to Computer In the following diagram illustrating the maximum data link I O response time a CS series PC is used for the PC node 2 and the PC s cycle time is greater than or equal to the communications cycle time Input Input device 7 refresh r Input ON response time iras Nee S Data exchange o i 1 cycle x Late
15. Network divided into two Communications disabled Do not pull on the Optical Fiber Cable The maximum tension that can be applied to the cord is 10 kg about 22 Ibs and the maximum tension that can be applied to the cable is 50 kg about 110 Ibs DTL Cable Do not bend the cable past its natural bending radius The minimum radius for bends is 10 cm To prevent the Optical Fiber Cable from being pulled too forcefully always use the cable mounting bracket and provide space behind the Board as shown in the following diagram Do not exceed the maximum tension for the cord and cable Cord 0 kg Do not apply any tension Cable 5 kg about 11 Ibs p l EL Cord Cable Back of the computer 140 mm Do not place objects on top of the Optical Fiber Cable The maximum pressure that can be placed on the cord and cable is as follows Cord 30 kg 10 cm Cable 50 kg 10 cm Inspect the connector before installing it e When connecting or disconnecting the Optical Fiber Cable be sure to hold the connector firmly Do not pull on the cable itself 28 Backup Power Supply Wiring Optical Systems Only Section 2 3 2 3 Backup Power Supply Wiring Optical Systems Only A node bypass function can be used with an Optical Ring SYSMAC LINK Sys tem H PCF cable by supplying a backup power supply to the Units and Boards This will prevent the entire network from going down if a node m
16. Terminator Terminator F type Adapter Connector 5C 2V Coaxial cable 2 1 3 Attaching the Connector to the Board Attachment Procedure 1 2 3 1 Align the Mounting Bracket and Board and attach the bracket with the pro vided screw The Mounting Bracket has a small pin that fits into the Board when it is aligned correctly as shown in the following diagram 2 If the Board isn t at the end of the network connect it to the adjacent nodes with two cables The cables can be connected to either socket in the Board s F type Adapter If the Board is at one end of the network connect it to the adjacent node and 18 Connecting Coaxial Systems Section 2 1 install a Terminator in the other socket The Terminator can be connected to either socket in the Board s F type Adapter Boards in the middle of the network Boards at the ends of the network Terminator 3 Push the F type Adapter into the Board s BNC connector and turn the fitting clockwise until it locks 4 Align the Mounting Bracket and clamp to secure the cable s and attach the clamp with the provided screw The clamp has a small pin that fits into the Mounting Bracket when it is aligned correctly as shown in the following dia gram Insulating cover 6 Do not bend the cable too sharply when handling it The minimum bending radius is about 45 mm about 6x the coaxial cable radius 19 Connecting Coaxial Systems Section 2 1 Provide wi
17. cannot be performed If it is write protected turn off the write protect switch and execute the instruction again 02 The data is protected Execute the instruction again after issuing the PROGRAM AREA PROTECT CLEAR command to the PC An attempt was made to simultaneously download and upload a file Check the file name and either interrupt servicing or wait for servicing to complete before re executing the command The data link tables cannot be written manual because the Unit is set for automatic generation Change the data link mode to manual The number of files exceeds the maximum permissible unneeded files or use different disk or Memory Card that has free space Too many files open Close open files and re execute the command 05 A non existing program no has been specified Check the program number and be sure that it is set correctly 06 A non existent file has been specified 07 03 The specified file already exists Change the name of the file and execute Write the file s again after erasing the instruction again 08 82 Data cannot be changed Check the contents of the memory area being written to Response Codes Section 6 4 Main code Sub Probable cause Remedy code 22 Not executable in 01 The mode is wrong executing Check the operating mode current mode Data links are active
18. 1 MAC LINK Unit or Board using the SYSMAC LINK Support Software or the FinsGateway s SLK Data Link Setting Utility e Each node s send area size and location can be allocated freely e t is possible to change the order in which data is received from the other nodes e Nodes can be set as send only or receive only Automatically Setting Data Links The following diagram shows an example of automatic setting Node Node 1 Node 2 4 IN A Area 1 Bit areas 1 1 1 2 a 2 2 3 4 4 3 e 3 2 1 1 gt 1 2 2 2 3 4 3 e 3 Automatically set data links when you want to create data links easily Use a Programming Device such as a Programming Console to set the auto matic data link mode in the startup PC s PC Setup or DM parameter area e The CIO or LR Area can be selected for area 1 and the DM Area can be se lected for area 2 A computer cannot be used as the startup node if the data links are being auto matically set A computer can only participate in the data links if the data links are being auto matically set 5 1 1 Data Link Specifications Item Description Number of 62 nodes max 2 nodes min data link nodes
19. 1 54 3 2 0 0 0 0 0 0 O t Error log entries recorded 0 No 1 Yes 1 Error log overflow 64 entries Count 1 to Count 8 response These 8 bytes count how many times the fol lowing events have occurred since the power was turned ON Each counter can count from 0 to 255 i e 0 to FF in hexadecimal Count 1 Number of CRC errors Count 2 Number of token re sends Count 3 Number of token returns Count 4 Number of token timeouts Count 5 Number of polling timeouts Count 6 Number of polling node changes Count 7 Number of active node changes Count 8 Number of communications controller data transfer function stops Network participation status list response These 8 bytes contain flags that indicate which nodes are participating in the network A node is participating in the network active when the corresponding bit is ON Bt 765 4 3 2 1 0 1 1817165 4 3 2 1 The numbers in the boxes indicate the node Byte 2 16 15 14 13 12 11 10 9 addresses The bit status of a particular Byte 3 24 23 22 21 20 19 18 17 node address shows whether or not that Byte 4 32 31 30 29 28 2726 25 node is participating in the network Byte 5 40 39 38 37 36 35 3433 Byte 6 48 47 46 45 44 43 42 41 Byte 7 56 55 54 53 52 51 50 49 Byte 8 62 61 60 59 5857 The 2 bits marked with a are always 0 0 Not part of network 1 Part of network
20. 2 General Precautions cem pba Geiss Rares a ete ete a hale ae Safety Precautions Bo wes SEI ES PISA SEA E HERD ME UE We Sq Se 4 Operating Environment Precautions 0 0 0 ee eee ences 5 Application Precautions 0 0 0 cece SECTION 1 Outline of Functions Te SER oe PE AER Pek Loe el Wares 1 2 Specifications and Configurations 0 0 eee eee eee eee 1 3 Basic Procedures eo eA See bs BEERS eee te 1 4 Applications Precautions 3 8 SECTION 2 2 1 Connecting Coaxial Systems 0 0 0 cece eee eens 2 2 Connecting Optical Systems H PCF 2 3 Backup Power Supply Wiring Optical Systems SECTION 3 Creating Applications Using the C Library Sel Basic o caw be o CRGO ERR REA SRN ath th WS hse RUP SLE AR Ron 322 Using the C Library ek ee eine ORES SEAR OES Ra eee ee ee ey SECTION 4 C Language Function Reference 421 Library Functiols ede oe HD Pe EA ORE ERE ES 4 2 Structure Descriptions 0 cece ee ee mmm 4 3 Detailed Error Information 0 0 SECTION 5 D ta Links UD VI HOP 5 l What Are Data Tanks y E
21. 20 25 Sen eee 15m 3200 CN152 20 25 20m 3200 CN202 20 25 Over 20m S3200 CN 20 25 Specify length m when ordering 116 Standard Models Appendix Specifications Length Model Optical Fiber Cable Connectors 2 m S3200 CN201 25 25 3200 COCF2511 5m 53200 501 25 25 A CF2511 10m 3200 CN102 25 25 15m 3200 CN152 25 25 20m 3200 CN202 25 25 Over 20m S3200 CN 25 25 Specify length m when ordering Note Special training is required to assemble Optical Fiber Cables and con nectors with epoxy adhesive Contact your OMRON dealer for details on other optical fiber cords and cables 117 access modes SYSMAC LINK Support Board SYSMAC Compolet AIMAX FA applications creating B backup power supply connection optical system specifications wiring BNC Connectors Board ID Switch precautions broadcast test reading results sending results C library functions overview Microsoft Visual C cables coaxial standard models optical fiber backup power supply connectors standard models with connectors precautions cleaning communications between different PCs cables optical fiber polling node SYSMAC LINK timing communications cycle number of event frames number of polled nodes polling token computer specifications configuration software Index connections backup power
22. 3 3 Routing Tables on PC 2 Local Network Table Relay Network Table No Loc SIOU No End Relay Netwk unit Netwk PCID Netwk Node 1 010 03 1 030 010 005 2 020 02 2 3 3 Routing Tables on PC 3 Local Network Table Relay Network Table No Loc SIOU No End Relay Netwk unit Netwk PCID Netwk Node 1 010 04 1 020 010 004 2 030 07 2 3 3 Routing Tables on Computer Local Network Table Relay Network Table No Loc SIOU No End Relay Netwk unit Netwk PCID Netwk Node 1 020 00 1 010 020 003 s 030 020 003 92 Setting Routing Tables Section 7 3 Routing Tables on PC 4 Local Network Table Relay Network Table No Loc SIOU No End Relay Netwk unit Netwk PCID Netwk Node 1 020 01 1 010 020 003 2 2 030 020 003 Routing Tables on PC 5 Local Network Table Relay Network Table Loc SIOU No Netwk unit 1 05 2 3 Routing Tables on PC 6 Local Network Table No End Relay Netwk PCID Netwk Node 1 010 030 015 2 020 030 015 3 Relay Network Table Loc SIOU Netwk unit 1 030 06 2 3 No End Relay Netwk PCID Netwk Node 1 010 030 015 2 020 030 015 3 93 SECTION 8 Communications Timing This section explains SYSMAC LINK Network communications in detail Refer to this section for network communications that require accurate communications timing 5 1 Network Parameters os ba Pas B
23. 4 Boards can be mounted Note Refer to the SYSMAC LINK PCI Support Board Installation Guide W389 Turn OFF the power of all the nodes on the network before connecting or discon necting a cable Note Refer to Section 2 Wiring Use the specified cable only Note Refer to 1 2 Specifications and Configurations Set routing tables at all the nodes in all the networks when multiple networks are connected to one PC Note Refer to Section 7 Network Interconnections When a routing table is transferred written to a PC all CPU Bus and Commu nications Units are reset The routing tables must not be transferred to a PC while the system is running When using a manually set data link delete the data link tables from all nodes not participating in the data link The polling node must not be restarted or reset during data link operation If the SYSMAC LINK Support Board is the polling node and data links are operat ing on the network wait at least three seconds after closing the Board before opening the Board again If the SYSMAC LINK Support Board is the polling node and data links are operat ing on the network wait at least three seconds after removing the Board from the network before adding Board to the network again Observe the following precautions e The SYSMAC LINK Support Board can be used only with the specified com puter operating systems Note Refer 1 2 Specifications and Configurations e Set the IRQ interrup
24. 5 3 2 Using Support Software 2 0 0 eee eee 5 3 3 Using the SYSMAC LINK Unit s DIP Switch C Series Units Only 5 3 4 Using FINS Commands 0 E aa E eee ee 5 3 5 Data Link Timing 8 5 4 Checking Data Link Status D Reg ee ee ee a 5 4 1 LED Indicators eee ee ks ek Oe Se i WA E E PE E ee ae 5 4 2 Data Link Status Area 2 eee eee 5 4 3 Checking by Manipulating Bit Word Status 5 5 Data Link Performance sesi e ee 5 6 Data Link I O Response Time 85 9 6 1 Computerto PC gic ans Sees POSS aA See hens Se OSS Ea MESES 5 6 2 PCto Computer obese oe aa ed rece ed i tube bes 49 What Are Data Links Section 5 1 5 1 What Are Data Links 1 2 3 Manually Setting Data Links 50 Data link areas Data link tables A data link is a function that automatically exchanges the data in predetermined areas between nodes PC lt gt PC or PC amp Computer on one network Data links can be created freely among CS series PCs C200HX HG HE PCs CV series PCs and IBM PC AT or compatible computers Two data link areas area 1 and area 2 can be set in the Board SYSMAC LINK data links can be set in two ways manually or automatically Data link areas can be manually set by inputtin
25. 5 5 Manual Settings Note Optical System Number of nodes Data link area CIO LR only DM only CIO LR and DM 2 nodes 20 ms 21 ms 21 ms 4 nodes 20 ms 21 ms 22 ms 8 nodes 21 ms 21 ms 22 ms 16 nodes 21 ms 22 ms 22 ms When the communications cycle time varies due to noise or other factors use the Support Software to set a fixed communications cycle time between 5 and 255 ms If a fixed time is not set the communications cycle time T will be calcu lated automatically with the following formula The communications cycle time is expressed in ms units and fractions are rounded off Coaxial System T ms Maximum node address x 0 085 Number of event frames allowed x 0 654 Number of polled nodes x 0 75 Number of linked nodes x 0 056 Total number of data link area words x 0 01 1 322 ms Optical System T ms Maximum node address x 0 1115 Number of event frames allowed x 0 77 Number of polled nodes x 0 75 Number of linked nodes x 0 056 Total number of data link area words x 0 01 1 322 ms Example Calculations The example calculations are based on the following network specifications Maximum node address 62 Number of polled nodes 4 Number of event frames allowed 10 Number of linked nodes 32 Total number of data link words 2 000 Coaxial System T ms 62x0 085 10x 0 654 4 x 0 75 32 x 0 056 2 000 x 0 01 1 322 ms 37
26. 9 1 1 Using the RUN ERR and INS Indicators earlier in this section and check Board operation before using the following table Probable cause Probable remedy Lit Data link operating normally Flashing There is an error in the data link tables When the ERR indicator is flashing reset the data slowly link tables When manual setting is used either data link tables Refer to 5 2 2 Manual Setting and set data link have not been created for the startup node or there tables for the startup node is an error in the data link tables Flashing The data link table s communications cycle time Change the data link table s communications cycle quickly setting is too short time setting to automatic calculation or set a longer manual setting Not lit Manually set data links are already operating on the Refer to 9 5 Handling Precautions same Network Automatically set data links are already operating on the same Network Refer to 9 5 Handling Precautions Node Cannot Participate in Data Link in the data links The following table describes the LNK indicators when a node cannot participate Data link participation depends on the SYSMAC LINK Support Board operating normally and participating in the Network Refer to 9 1 7 Using the RUN ERR 101 Status Information and Troubleshooting Section 9 2 and INS Indicators earlier in this section and check Unit operation before using the followin
27. C language response codes event frames F F type Adapter standard models features data links message service SYSMAC LINK network FINS commands BROADCAST TEST DATA SEND BROADCAST TEST RESULTS READ command codes CONTROLLER DATA READ CONTROLLER STATUS READ data format DATA LINK START DATA LINK STATUS READ DATA LINK STOP ECHOBACK TEST 120 ERROR LOG CLEAR ERROR LOG READ errors format headers issuing from PC NETWORK STATUS READ parameters response codes configuration errors response data format sending from computer starting and stopping data links FinsGateway SLK Data Link Setting utility starting and stopping data links SYSMAC LINK Embedded Edition G I gateway count GCT H PCF Cable Optical System ICF indicators troubleshooting LNK RUN ERR amp INS information control field inspection inspection items tools and equipment inter network connections inter network connections definition other OMRON networks routing tables SYSMAC LINK L library C library functions overview SlkClearMessageOnArrival SlkCloseQ SIkGetLastError SIkGetNetworkStatus 51 SlkReadDatalink SIkRecvFins SlkSendFins SIkSetMessageOnArrival SIkSetThreadMessageOnArrival SlkWriteDatalink reading error information Index specifications structure descriptions EMSLKADDRESS PEMSLKADDRESS NSTBU
28. Check the data link status before execution 02 The mode is wrong inactive Check the operating mode Data links are active Check the data link status before execution 03 The PC is in the PROGRAM mode Check the PC s mode and the computer mode 04 The PC is in the DEBUG mode Check the PC s mode and the computer mode 05 The PC is in the MONITOR mode Check the PC s mode and the computer mode 06 The PC is in the RUN mode Check the PC s mode and the computer mode 07 The specified node is not the control Check which node is the control node node 08 The mode is wrong and the step Check whether the step has active status cannot be executed or not 23 No Unit 01 A file device does not exist where Mount the Memory Card or disk specified 02 The specified memory does not exist Check the specifications of the installed file memory 03 No clock exists Check the model number 24 Start stop not 01 The data link tables either have not Set the data link tables correctly possible been created or are incorrect 83 Response Codes Section 6 4 Main code Sub code Probable cause Remedy 25 Unit error 84 02 Parity checksum error occurred Transfer correct data into memory because of incorrect data 03 setting error The registered I O Either change the actual configuration to configuration differs from the actual match the registered one or generate
29. Model Specifications Optical Fiber 53200 1062 Crimp cut tool for the Assembly Tool 3200 COCF2011 2511 Connectors Optical Power Tester S3200 CAT2700 With S3200 CAT2702 Head Unit and adapter for the 3200 COCF2011 2511 Connectors Master Fiber Set S3200 CAT2001H One meter cable for use with the 53200 2702 Head Unit This manual does not provide details on Optical Fiber Cable preparation For details refer to the instructions provided with the S3200 CAK1062 Assembly Tool 25 Connecting Optical Systems H PCF Cable Section 2 2 2 2 2 Wiring the Optical Fiber Cables Note All of the nodes in the Optical SYSMAC LINK Network are connected in a line daisy chain configuration with H PCF Optical Fiber Cables Begin connection with the rightmost connector SL1 of the highest node in the network and connect to the leftmost connector SL2 in the next lower node as shown in the following diagram The nodes can be connected in any order but connect the nodes in the order of node addresses i e node 1 node 2 node 62 as much as possible to reduce the effect on the communications time if a wire breaks Always cover the unused connectors on the highest and lowest nodes in the net work with the enclosed Optical Connector Covers Optical Connector Cover Optical Connector Cover Included Mpcuced lt Higher Lower F c Refer to 2 2 1 Devices Required for Connection for details
30. No number of participating disconnected nodes 33 to 48 nodes decreased 0206 0223 Additional information 4 for Bits 00 to 15 correspond to No number of participating disconnected nodes 49 to 62 nodes decreased 0206 0300 Packet discarded Not set Conduct an echoback test Yes find the cause of the error 0601 Unit error Not set Check the operating Yes environment 110 Note 1 Errors indicated by error codes 0101 through 0116 are recorded only when the frame was discarded because transmission was impossible Cleaning and Inspection Section 9 4 2 Error Status The status of each bit indicates that an error has occurred as given in the diagram below Token timeout error Polling timeout error Communications controller hardware error Polling node was changed Nodes in Network changed added or removed Communications controller send error Duplicate node address setting error 9 4 Cleaning and Inspection 9 4 1 Cleaning Conduct the following periodic cleaning to keep the SYSMAC LINK Support Board in optimum condition Wipe the Unit with a dry soft cloth daily If glue vinyl or tape is left on the Board for long periods of time it will stain Remove these items during cleaning N Caution Do not use volatile solvents such as benzine or paint thinner or chemical cloths for cleaning They will damage the quality of the coating on the Board 9
31. ON at nodes LNK ON Participating data links Ba nee uc data link Flashing Data link table setting error Flashing The data link table s communications cycle quickly time setting is too short OFF Not in data links or data links are inactive The LNK indicator will be lit at all node participating in the data links as long as operation is normal 5 4 2 Data Link Status Area The data link status area can be used to check for errors when data link does not operate normally even though no abnormality has been detected by the comput er or the SYSMAC LINK Support Board Data link status can be monitored using the SLK Data Link Setting Utility in Fins Gateway or it can be stored in FinsGateway event memory Refer to the Fins Gateway online help and installation guide for details See 9 2 Status Information and Troubleshooting for troubleshooting proce dures First word 2nd node 1st node Sy 1 4th node 3rd node 2 6th node 4th node 3 8th node 7th node PC Operating Status to 0 Stopped 1 Running PC program being executed 14 30th node 29th node 15 32nd node 31st node CPU Unit Error Status 16 34th node 33rd node Bor 17 36th node 35th node Data Link Communications Error Status 0 Normal to 1 Error Data link data not received normally Data Link Participation Status 27 56th node 55th node 0 Not parti
32. Operation Manual W202 W367 for details 2 A computer SYSMAC LINK Support Board cannot be the startup node for an automatically setting data links 3 A computer can participate in automatically set data links Data link tables are not required in the computer the data link tables in the startup node will be used 54 Starting and Stopping Data Links Section 5 3 5 2 5 Data Area Allocation with Automatic Settings The following table shows the allocation of the data link area when automatic settings are used The numbers following the symbol are the node addresses of the nodes in the data link CIO LR Area DM Area CIO LR 4 words CIO LR 8 words ho Uu a addresses addresses DM 8 words DM 16 words DM 32 words DM 64 words 1000 to 1003 D00000 to D00007 1 1 1 1 1004 to 1007 D00008 to D00015 2 1008 to 1011 D00016 to D00023 3 2 1012 to 1015 D00024 to D00031 4 1016 to 1019 D00032 to D00039 5 3 2 1020 to 1023 D00040 to D00047 6 1024 to 1027 D00048 to D00055 7 4 1028 to 1031 D00056 to D00063 8 1032 to 1035 D00064 to D00071 9 5 3 2 1036 to 1039 D00072 to D00079 10 1040 to 1043 D00080 to D00087 11 6 1044 to 1047 D00088 to D00095 12 1048 to 1051 D00096 to D00103 13 7 4 1052 to 1055 D00104 to 000111 14 1056 1059 000112 000119 15 8 1060 1063 000120 to 000127 16 Not
33. READS es a 9 4 Cleaning and Inspection o siea en eea aa E E E a 9 5 gt Handling Precautions i er E e E anes re Ride ARP A Appendix Standard Mod l siss oss Heise webbie e slate bite lee Eu s we Main EN S xu Se RS IW Index 0 00 0909 090 090 09 069 0909 0909 09 909 09 09 090909 0909 00 909 069 9 099 09 09 09 9 06 Revision viii About this Manual This manual describes the operation of the 3G8F7 SLK11 E and 3G8F7 SLK21 E SYSMAC LINK Support Boards and includes the sections described below SYSMAC LINK Support Boards are used to connect IBM PC AT or compatible computers to a SYSMAC LINK Network The following three manuals are directly related to application of the SYSMAC LINK Network Contents Cat No suffixes omitted 3G8F7 SLK11 E SLK21 E Operating procedures for SYSMAC LINK PCI Support W390 SYSMAC LINK PCI Support Board connections SYSMAC LINK Support Boards are Boards Operation Manual this used to connect IBM PC ATs or compatibles to a manual SYSMAC LINK Network 3G8F7 SLK11 E SLK21 E Installation and setup procedures for SYSMAC LINK W389 SYSMAC LINK PCI Support PCI Support Board connections SYSMAC LINK Board Installation Guide Support Boards are used to connect IBM PC ATs or compatibles to a SYSMAC LINK Network 3G8F5 SLK21 E SYSMAC Installation setup and operating procedures for W220 LINK ISA Support
34. Se RR eek ad 9 3 2 Error Codes ii Seow Rad othe mbeeLirs 9 4 Cleaning and Inspection 0 0 cece eee e 9 4 Cleaning cies sh eases a obs ws be Sle a ele eR eA Se etal Greta 9 4 2 Inspection dn eGo ke ha IPM eee 9 5 Handling Precautions 0 0 0 Ie 9 5 1 Replacing the Unit zc sp soe ARE ORE EES 9 5 2 Replacing the Board 99 Troubleshooting Using Indicators Section 9 1 9 1 9 1 1 Using the RUN ERR and INS Indicators Troubleshooting Using Indicators This section describes the errors shown by the SYSMAC LINK Support Board s Indicators RUN ERR INS indicators and possible remedies Optical System ERR PS FILIN LHE INS Coaxial System Status Description RUN Lit The Board is operating normally ERR Lit An error has occurred INS Lit Participating in network LNK Lit Sending data link participating in data link Flashing Error in the data link table settings P S Lit Backup power supply is ON Optical Units only The SYSMAC LINK Support Board s RUN ERR and INS indicators can be used to check whether SYSMAC LINK Support Board startup and Network participa tion are operating normally Note Be sure to turn OFF the computer before performing any of the following Error history e Disconnecting the Board or connectors e Securing Board or connectors
35. allocated to each node and the 73 Commands and Responses for the Support Board Section 6 3 count is expressed in hexadecimal The count can range from 0 to 255 i e 0 to FF in hexadecimal and the counting stops at 255 Bit 7 6 5 4 3 2 1 0 Byte 1 Number of error occurrences for node 1 Byte 2 Number of error occurrences for node 2 Byte 3 Number of error occurrences for node 3 Byte 62 Number of error occurrences for node 62 6 3 7 DATA LINK STATUS READ Reads the data link operational status Command Block 06 03 Ne eh Command code Response Block 06 03 31 bytes Command Response Refresh time Refresh time Status code code present value max value Status flags Parameters Status flags response The overall data link status is returned in one byte of data as shown in the following diagram Bt 6 5 4 3 2 10 00000 pe 1 Data link table setting error 1 No data link table Data link table setting method Data link operating status 0 Manual settings 0 Stopped 1 Automatic settings 1 Operating Refresh time present value and refresh time maximum value response These words contain the present value and the maximum value of the cycle time between data link area refreshes Both values are returned in units of 1 ms in hexadecimal within a range of 0005 to OOFF 5 to 255 decimal S
36. and or message service procedure 1 2 3 Data Link Procedure 1 2 3 Create data link tables using the FinsGateway utilities and transfer the data to the Board Note When the data link tables and routing tables are transferred to the SYSMAC LINK Support Board they are saved in backup memory EEPROM on the Board It is not necessary to set the data again when the power is turned OFF and ON 14 Applications Precautions Section 1 4 Message Service Procedure 1 2 3 2 Read and write to the data link area using the utility applications that use the C library Note The data links can also be started by sending the data link activation command with the FINS message service or by using a PC software switch operation 1 Create routing tables using the SYSMAC LINK Support Software or the FinsGateway utilities and transfer the tables to the Board Note When the data link tables and routing tables are transferred to the SYSMAC LINK Support Board they are saved in backup memory EEPROM on the Board It is not necessary to set the data again when the power is turned OFF and ON 2 Send and receive FINS messages using the utility applications that use the C library 1 4 Applications Precautions Board ID Switch Cables Routing Tables Data Links Other Precautions If more than one SYSMAC LINK Support Board is mounted to a computer set a unique Board ID on each Board Up to
37. at Node 1 Depends on the processing capacity of the computer that is used Communications Cycle Time See 5 5 Data Link Performance Transmission Delay Time Number of words transferred x 0 008 0 112 ms Receive Processing at Node 2 Number of words transferred x 0 00125 2 3 ms Send Processing at Node 2 Number of words transferred x 0 00125 3 0 ms 1 The I O response time can increase due to noise or restrictions on the num ber of frames that can be transmitted while data links are operating 2 Refer to the SYSMAC LINK Units Operation Manual W367 for details on the time from reception at the SYSMAC LINK Unit until transmission SECTION 9 Troubleshooting and Maintenance This section provides information on troubleshooting errors that occur during SYSMAC LINK Support Board operation as well as daily inspection cleaning and other maintenance procedures 9 1 Troubleshooting Using Indicators 0 eee eee 9 1 1 Using the RUN ERR and INS 9 1 2 Troubleshooting with the LNK 9 2 Status Information and Troubleshooting 9 2 1 Troubleshooting with the SlkGetNetworkStatus Function 9 2 2 Error Processing eas ee eh Bee ARS E IQ EERE OS 9 3 JBrfonLog uuo sa eben A Sie Boa BA Pieces Rhee UE PR Oe 9 3 1 Error bog Table isse de as
38. communications cycle 5 to 255 10 The network parameters become valid immediately after being set 1 Always stop the data link before changing network parameters 2 Specify a value for the maximum node address that is equal to or greater than the highest node address in the SYSMAC LINK Network 97 Message Service Delay Times Section 8 2 8 2 Message Service Delay Times The following diagram illustrates the maximum message service transmis sion delay time In this example the MEMORY AREA READ FINS command is sent to the PC at node 2 a CS1 series PC by the user application at the computer at node 1 51 98 User application SIkRecvFins rue p QUAIN TS Receive processing at Send processing at node node 1 response 1 command Transmission delay 1 response Communications cycle mand Receive processing at NENNEN node 2 command n Transmission delay m Send processing at node 2 response PC at node 2 Note Maximum transmission delay Max transmission delay time Send processing node 1 Communications cycle time Transmission delay time for command Receive processing node 2 PC processing time node 2 Send processing node 2 Communications cycle time Transmission delay time for response Receive processing node 1 Send Receive Processing
39. e Setting hardware switches Probable cause Probable remedy Lit Not Lit n Unit operating normally Network lit participation normal Not Lit cre es The SYSMAC LINK Support Board is If the ERR indicator still lights when the lit faulty Board is mounted on another computer replace the SYSMAC LINK Support Board Not Not Not Power is not being supplied correctly to Check the power supply voltage and lit lit lit the computer supply at the recommended voltage The SYSMAC LINK Support Board has Secure the SYSMAC LINK Support become loose Board firmly The SYSMAC LINK Support Board is Refer to the Installation Guide and mount mounted in the wrong slot the Board correctly The SYSMAC LINK Support Board is If the indicators do not light when the faulty Board is mounted in another computer replace the SYSMAC LINK Support Board Lit Lit Not 0211 Hex same node address is being used by Reset so that each node address is used lit two different Units only once within the same Network The Board is connected to a Controller Link network Check the networks and correct the cable connections 100 Troubleshooting Using Indicators Indicators Error Probable cause RUN Lit ERR Lit history 021A Hex Routing table setting error Section 9 1 Probable remedy Reset the routing table correctly referring to 7 3 Setting Routing Tables When no
40. following procedure to start the SLKPCI UNIT service from the FinsGateway Settings so the Board will participate in the network a Click the Basic Tab in the FinsGateway Settings b Click the Services Icon C Select SLKPCI UNIT and click the Start Button 8 Using the SLK Data Link Setting Utility in the FinsGateway or the SYSMAC LINK Support Software read the network parameters and make sure the Network is operating normally 9 Using the SLK Data Link Setting Utility in the FinsGateway register data link tables and routing tables in the new Board 10 Change the Board to the polling node from the FinsGateway Settings re versing the procedure in step 6 above The RUN and INS indicators should light on the Board The LNK indicator may also light 11 Check that the data links are operating normally by using the SLK Data Link Setting Utility in the FinsGateway 2 rN Note The following procedure can be used to start the SLK Data Link Setting Utility 1 2 3 FinsGateway 1 Click the Basic Tab in the FinsGateway Settings 2 Click the Networks Icon 3 Select the desired Board and click the Properties Button 4 Click the Data Links Tab 5 Click the Set Data Links Tab Refer to FinsGateway online help for details 113 Appendix Standard Models SYSMAC LINK Support Boards for PCI Bus Applicable Connection type Model number Remarks computer IBM PC AT or Coaxial 3G8F7 SLK21 E Include compatible FinsGatewa
41. has the lowest node address in the network is the polling node Units at nodes other than the polling node are called polled nodes The polling node controls the token checks the network and performs other relevant tasks Should the polling node break down the node with the next lowest node address is auto matically selected as the polling node to prevent the entire network from shutting down Note There are times when the node with the lowest node address will not be the pol ling node depending on the order in which the nodes are started models set tings and node status 8 1 2 Communications Cycle The communications cycle is the cycle for repeating SYSMAC LINK Network processing The time required for one communications cycle is called the munications cycle time and each communications cycle is divided into a token cycle and a polling cycle as shown in the following diagram Communications cycle Communications cycle T 4 Token cycle Polling cycle Token cycle Polling cycle Token Cycle The token cycle is the period during which the token is sent from the polling node to the nodes in order and returned to the polling node During this cycle any nodes with data to send will send that data Data link data will also be sent during this cycle Polling Cycle The polling cycle is the period during which the polling node checks the status of the nodes in the network The polling node checks whether each
42. links cannot be stopped from nodes which do not have active data links Indicators Probable cause Probable remedy LN Nott Data ink stopped normally pulo 9 2 Status Information and Troubleshooting The SYSMAC LINK Support Board contains status information which reflects the current status of communications and the Board This status information can be read using the STATUS READ or DATA LINK AREA READ FINS command The cause of the error can be found by reading the status information This section explains the contents accessed by the SlkGetNetworkStatus func tion and tells how to troubleshoot error information obtained 9 2 1 Troubleshooting with the SlkGetNetworkStatus Function The following network status is read by SlkGetNetworkStatus Type Variable name Contents byConnectionMethod Indicates the type of connection Coaxial or Optical being used Bit E n 9 9 p v n Not specified Connection type 0 Coaxial 1 Optical byMyNodeAddr Local node address Stores the local node address set for the SYSMAC LINK Support Board byMyUnitAddr A value of 0 will always be read for a SYSMAC LINK Support Board byMyNetAddr A value of 0 will always be read for a SYSMAC LINK Support Board 102 Status Information and Troubleshooting Section 9 2 Variable name Contents BYTE abyNodeList 32 Network participation status Stores a list of the nodes participating in
43. lit Data link is stopped or Unit is not participating in data link PS Power supply Green Lit Backup power supply is ON See note ON Not lit Backup power supply is OFF Note Only Optical Units are equipped with the P S indicator 1 2 7 Product Components System Model Contents Coaxial system 3G8F7 SLK21 SYSMAC LINK Support Board x 1 CD ROM x 1 Installation guide x 1 F type connector x 1 Insulating cover x 1 Cable mounting bracket x 1 Board ID switch number indicator label x 1 User registration card software license agreement x 1 Optical system 3G8F7 SLK11 SYSMAC LINK Support Board x 1 H PCF cable CD ROM x 1 Installation guide x 1 Optical cable bracket x 1 Power supply connector x 1 Board ID switch number indicator label x 1 User registration card software license agreement x 1 Note 1 The following software is supplied on the CD ROM e SYSMAC LINK PCI Driver e FinsGateway SYSMAC LINK PCI Embedded Edition e Setup Diagnostic Utility e C library 2 The computer s operating system is not provided with the Support Board The operating system must be acquired separately 13 Basic Procedures Section 1 3 1 2 8 Software Configuration x User application FinsGateway utilities Software C library FinsGateWay SYSMAC LINK Support Board Note An SLK data link setting utility is included in the FinsGateway utilities Make the data link table settings
44. name PSLKHANDLE The SLK handle obtained with SlkOpen 43 Library Functions Section 4 1 Return Value SLK_SUCCESS is returned if the function ends normally SLK_ERROR is returned if the function ends in an error Detailed error informa tion can be obtained using SlkGetLastError 4 1 11 SlkGetLastError Detailed Error Information Acquire Function Gets detailed error information generated when a SYSMAC LINK library func tion is used Call Format INT SlkGetLastError PSLKHANDLE hSLK Arguments Vaialenam peas c hSLK The os pce E A handle obtained with os pce E A Return Value Detailed error information is returned if the function ends normally SLK ERROR is returned if the function ends in an error Description Refer to 4 3 Detailed Error Information for details on the return value 44 Structure Descriptions Section 4 2 4 2 Structure Descriptions 4 2 1 SLKHEADER PSLKHEADER Structure This structure stores heading information for a FINS message It is used by SlkSendFins and SlkRecvFins Variable name Contents BYTE BylcfBits FINS header ICF Set the following for the FINS message Command response and response needed not needed 0x80 128 Command requiring response 0x81 129 Command not requiring response 0xCO 192 or OxC1 193 Response BYTE byNetAddr Source destination network address For SlkSendFins set the destination netw
45. necessary settings haven t been made 09 Service cannot be executed because Check the command format of and make necessary settings haven t been made the necessary settings in the command data 0A The specified action or transition Execute the command again using an number has already been registered action or transition number that hasn t been registered 0B Cannot clear error because the cause Eliminate the cause of the error and of the error still exists execute the ERROR CLEAR command 30 Access right error 01 The access right is held by another Execute the command again after the node access right has been released Either a peripheral device at the other The command can be executed after the node is executing an SFC online edit ACCESS RIGHT FORCED ACQUIRE or or the other node is executing an ACCESS RIGHT RELEASE command is ACCESS RIGHT ACQUIRE or completed Releasing the access right ACCESS RIGHT FORCED ACQUIRE might affect processes in progress at the command node that held the access right 40 Abort 01 Command was aborted with ABORT command 85 SECTION 7 Network Interconnections This section describes the method used to connect multiple networks 7 1 What is Network Interconnection 0 00 eee eee 7 1 1 Interconnecting SYSMAC LINK Networks 7 1 2 Interconnecting Different Types of Networks 7 2 Routine Tables see ER E EE RUPEE e ER ea nee 7 3 Setting Routing Tables
46. node is actually participating in the network whether there are any new nodes participating and So on and notifies all the nodes of the results of the check 8 1 3 Network Parameters Network parameters are also used to control network operations Network pa rameters are read from the polling node and distributed to all other nodes when 96 Network Parameters Section 8 1 Maximum Node Address No of Polled Nodes Per Communications Cycle No of Event frames per Communications Cycle the SYSMAC LINK Network is started In this way all nodes on the network al ways have the same network parameter settings If nodes are connected to the network halfway during network operation the network parameter settings will also be distributed to these nodes when they are connected The following three network parameters can be specified This parameter specifies the maximum node address of nodes to be checked by the polling node The default is 32 for Wired Networks and 62 for Optical Ring Networks Reducing the setting of this parameter reduces the number of nodes checked by the polling node and can thus avoids unnecessary check opera tions However if the network contains nodes with node addresses greater than the setting of the parameter these nodes will not be connected to the network This parameter specifies the number of nodes to be checked polled by the pol ling node during each polling cycle The default is 4 Increasing
47. on available Optical Fiber Cables 1 Always use the specified Optical Fiber Cables 2 The maximum distance between nodes depends on the method used to at tach the connector to the cable 2 2 3 Installing Connectors Connection Procedure 26 1 2 3 A special connector is used to connect the Optical Fiber Cable to the SYSMAC LINK Support Board This manual does not provide details on attaching Connectors to the Optical Fi ber Cable Connect the nodes in order beginning with the highest node in the network and continuing on to lower nodes Always turn OFF the computer and backup power supply before connecting Optical Fiber Cables or the backup power supply connector e Special tools are required to attach Optical Fiber Cables to the connectors The cable may disconnect from the connector if the proper tools and methods are not used during cable assembly 1 The Optical Fiber Cable s power supply line is not used so it can be cut 2 As shown in the following diagram secure the Optical Fiber Cable and se cure the clamp to the mounting bracket Secure the two cables simulta neously for nodes except the end nodes Pay attention to the orientation of the mounting bracket and the connector position when connecting the cable Connecting Optical Systems H PCF Cable Section 2 2 Connection Precautions from the highest node in the network to the rightmost connector SL1 and the cable from the next lower node t
48. on top of the power supply cable e Verify that the connector is installed properly before using the power supply e Check the wiring configuration carefully before turning ON the power Connect the power supply cable to the cable connector and then secure it to the Board as shown in the following diagram Be sure that the power supply polarity is not reversed Note It is difficult to connect or disconnect the backup power supply connector after the Optical Fiber Cable s mounting bracket has been installed Insert the con nector before installing the mounting bracket SECTION 3 Creating Applications Using the C Library This section describes how to create applications user programs that control the SYSMAC LINK Support Board 3 1 Basic Flow 3 1 1 Data Link Procedure 3 1 2 Message Service Procedure 3 2 Using the C Library 31 Basic Flow Section 3 1 3 1 Basic Flow This section describes the basic procedural flow in creating the applications user programs necessary to use the SYSMAC LINK Support Board data link function and the message service function Create the applications according to the flowcharts in this section The following explanations assume that the driver and C library have already been installed If they have not been refer to SYSMAC LINK PCI Support Board Installation Guide W389 before proceeding 3 1 1 Data Link Procedure The basic procedure for using data links is outlined in the following
49. remedies do not eliminate the error replace the faulty memory 10 Terminator not connected in SYSMAC Connect the terminator correctly BUS System Response Codes Section 6 4 Main code Sub code Probable cause Remedy 26 Command error 01 The specified area is not protected The program area is not protected so it This response code will be returned if isn t necessary to clear protection an attempt is made to clear protection on an area that is not protected 02 An incorrect password has been Specify a password that is registered specified 04 The specified area is protected Execute the command again after executing the PROGRAM AREA PROTECT CLEAR command for the PC To many commands at destination The destination has received more than 5 commands Either interrupt servicing or wait for servicing to complete before re executing the command 05 The service is being executed Execute the command again after the service has been completed or aborted 06 The service is not being executed Execute the service if necessary 07 Service cannot be executed from Execute the service from a node that is Source node because the source node part of the data links is not part of the data links A buffer error has prevented returning Reset the board If the error persists a normal response replace the board 08 Service cannot be executed because Make the necessary settings
50. series CV series PC CS series ee 9r PC or IBM computer with IBM PC AT or FinsGateway See note compatible Note A data and communications protocol gateway is created be tween a SYSMAC LINK Unit and a SYSMAC NET Link or Con troller Link Unit mounted on the same PC Note 1 bridge is used between Communications Units Boards to connect the same type of networks 2 A gateway is used between Communications Units Boards to connect dif ferent types of networks Bridge function Gateway function SYSMAC LINK SYSMAC LINK SYSMAC LINK Controller Link PC PC X X Data Data Data and communications protocol gateway 88 Routing Tables Section 7 2 e Computer Bridges and Gateways FinsGateway automatically implements the bridge or gateway functionality It does not need to be programmed by the user The FinsGateway however does not connect all networks Refer to the Fins Gateway online help for details Computer FinsGateway SYSMAC LINK Controller Link Support Board Support Board SYSMAC LINK Controller Link e Communications across bridges or gateways can include up to three net works including the local network data generating network Network 1 local network Network 2 Network 3 Although 2 012 bytes of data including the header can be sent and r
51. short circuit ing in external wiring Insufficient safety measures against short circuiting may result in burning e Disconnect the functional ground terminal when performing withstand voltage tests Not disconnecting the functional ground terminal may result in burning Do not attempt to take the Boards apart to repair the Boards or to modify the Boards in any way Be sure that all the mounting screws terminal screws and cable connector screws are tightened to the torque specified in this manual Incorrect tighten ing torque may result in malfunction Use crimp terminals for wiring Do not connect bare stranded wires directly to terminals Connection of bare stranded wires may result in burning Double check all the wiring before turning ON the power supply Incorrect wir ing may result in burning e Wire correctly Double check all the connectors before mounting the Board Be sure that the communications cable connectors and other items with lock ing devices are properly locked into place Improper locking may result in mal function Use a special packing box when transporting the Board Handle the product carefully so that no excessive vibration or impact is applied to the product dur ing transportation Application Precautions 5 e Check the user program for proper execution before actually running it on the Unit Not checking the program may result in an unexpected operation Observe the following pr
52. supply coaxialsystems inter network optical systems H PCF Cable connectors attaching to cables BNC Connectors installation models standard CX Net starting and stopping data links D DAI DA2 data area allocations datalink area allocations automatically set communications cycle basic procedure communications cycle description I O response time computer to PC PC to computer manually set communications cycle from computer node from Programming Device tables monitoring data link status area LED indicators manipulating bit word status precautions procedures reading status setting specifications starting troubleshooting starting and stopping with CX Net with DIP switch with FINS commands with FinsGateway with Programming Device or ladder program with SYSMAC Support Software status area stopping SYSMAC LINK Support Board tables manual settings timing precautions 119 Index troubleshooting status with indicators network SYSMAC LINK features data structure commands responses DataFlowNavi delay times message service destination network address node number unit address dimensions DIP switch SYSMAC LINK Unit DNA E echoback test error log table errors clearing error codes error log error log table network relay processing data link status other status reading reading with
53. the maximum amount of data that can be transferred through the network The maximum size that can be specified for the send buffer dwSize is 542 bytes When 1 is specified for the Service ID SID the SID is automatically increm ented and attached The SID value incremented within the function is retained within that one process only The incremented value is not managed on the net work handle or thread level The function will end in an error in the following cases Detailed error information A FINS message send buffer size of less than 2 ERR SEND BUFFER SIZE bytes was specified in the argument Send message size error The argument s Service ID SID was not set 39 between 1 and 255 SID setting error 39 Library Functions Section 4 1 4 1 4 SIkRecvFins FINS Message Receive Function Receives a FINS message Call Format INT SlkRecvFins PSLKHANDLE hSLK PSLKHEADER pHeader LPVOID lpMessage DWORD dwSize DWORD dwTimeLimit Arguments Variable name Description PSLKHANDLE hSLK The SLK handle obtained with SlkOpen PSLKHEADER pHeader Pointer to the header information structure for the FINS message LPVOID lpMessage Pointer to the receive buffer for the FINS message DWORD dwSize Size of FINS message receive buffer DWORD dwTimeLimit Reception wait time unit ms Return Value Description The size of the FINS message that was receive is returned as the number of by tes if th
54. this setting increases the communications cycle time but reduces the time required to recognize that nodes have been removed from or added to the network On the other hand reducing this setting shortens the communica tions cycle time but delays a network response when a node is disconnected from or connected to the network This parameter specifies the maximum number of event frames communica tions other than data links such as message service transmissions that can be transferred during a communications cycle Specify a value in units of 128 bytes The default is 10 128 x 10 1 280 bytes Increasing this setting increases the communications cycle time but allows for more event communications such as the message service If this setting is too low event communications will be restricted and errors will occur See 5 5 Data Link Performance for the actual effects of network parameter changes on communication cycle times 8 1 4 Specifying Network Parameters Note Set the network parameters from the FinsGateway s SLK Data Link Setting util ity This section describes only the allowable setting range for each network pa rameter Refer to the FinsGateway online help for setting procedures The following table shows the setting range and default for network parameters Network parameter Setting Default range value Maximum node address 2 to 62 62 Number of polled nodes per communications cycle 1 to 61 4 No of event frames per
55. use the message service provided by a SYSMAC LINK Support Board Section 7 describes the method used to connect multiple networks Section 8 explains details on SYSMAC LINK Network communications Refer to this section for network communications that require accurate communications timing Section 9 provides information on troubleshooting errors that occur during SYSMAC LINK Support Board operation as well as daily inspection cleaning and other maintenance procedures The Appendix provides a list of standard models NNARNING Failure to read and understand the information provided in this manual may result in personal injury or death damage to the product or product failure Please read each section in its entirety and be sure you understand the information provided in the section and related sections before attempting any of the procedures or operations given ix PRECAUTIONS This section provides general precautions for using the SYSMAC LINK PCI Support Board and related devices The information contained in this section is important for the safe and reliable application of the SYSMAC LINK PCI Support Board You must read this section and understand the information contained before attempting to set up or operate a SYSMAC LINK PCI Support Board 1 Intended Audience yr coren 246 658 SO we See Ses PRG BOR SE eee Es 2 Genetal Precautions bea WL ean ea a eee ia Aaa 3 Safety Precautions xa Sh ale
56. 0 HCCO103 Note The Optical Fiber Cable model numbers are as follows 3200 HLILIL Tensioner option None Standard with tension member N Without tension member Cable length B A 10 x 108 m Cable color B Black O Orange Cable specification L With power supply line C Without power supply line Type B Cord C Cable Connectors Name Model Specifications Connector S3200 COCF2011 Use to connect a cable to a node Full lock connector for crimp cut cable S3200 COCF2511 Use to connect a cable to a node Half lock connector for crimp cut cable Inline Adapter S3200 COIAT2000 Use to connect or extend cables Use one adapter for each connection Note 1 Either full lock or half lock connectors can be used in a SYSMAC LINK Net work but we recommend full lock connectors to prevent accidental discon nections during operation 2 The maximum distance between nodes is slightly shorter for connectors with crimp cut cables compared to connectors assembled with adhesive 24 Connecting Optical Systems H PCF Cable Section 2 2 Also the maximum distance is reduced due to extension loss when Inline Adapters are used to extend cables Optical Fiber Cables with The following Optical Fiber Cables are available with Connectors already at Conn
57. 125 um 3 0 db km 62 5 125 3 5 db km 9 5 Handling Precautions The SYSMAC LINK Support Board is a Network device If the Board is dam aged it will affect the entire Network so always ensure repairs are undertaken immediately We recommend that you have a spare SYSMAC LINK Support Board on hand so that repairs may be conducted quickly 9 5 1 Replacing the Unit Note Observe the following precautions when replacing the Board e Always turn OFF the power to the computer before replacing the Board e Check that the new Board is not faulty f you suspect that a poor connection is the cause of a malfunction clean the connector terminals using a clean soft cloth and industrial grade alcohol Re move any lint or threads left from the cloth and remount the Board e When returning a faulty Board for repairs always attach a detailed fault report to the Unit and return to you nearest OMRON outlet as listed at the back of this manual In order to prevent faulty operation be sure to turn off the power to all nodes be fore replacing the Board 9 5 2 Replacing the Board Note 112 1 When replacing the Board do not reconnect that node to the Network before carrying out the procedures listed below In particular a node with a low node address setting will become the polling node and communicate the ini tial network parameter status to other nodes so there is the chance that net work parameters in the entire Networ
58. 15 Standard Models Indoor H PCF Optical Fiber Cables Appendix Specifications H PCF cables Black 10m S3200 HCCB101 50m S3200 HCCB501 100m S3200 HCCB102 500 S3200 HCCB502 1 000 m S3200 HCCB103 10m S3200 HCCO101 50m S3200 HCCO501 100 m S3200 HCCO102 500 m S3200 HCCO502 1 000 m S3200 HCCO103 Note The Optical Fiber Cable model numbers are as follows 3200 HLILILI Tensioner option None Cable length B A 10 x 108 m Cable color B Black O Orange Cable specification L Standard with tension member N Without tension member With power supply line C Without power supply line Type B Cord C Cable Indoor H PCF Optical Fiber Cable with Connectors The following Optical Fiber Cables are available with Connectors already attached These cables have power supply lines and tension members which aren t used in the SYSMAC LINK Network Specifications Length Model Optical Fiber Cable Connectors 2 m 3200 CN201 20 20 3200 COCF2011 5m 3200 CN501 20 20 10 3200 CN102 20 20 poo euM 15m 3200 CN152 20 20 20m 3200 CN202 20 20 Over 20m S3200 CN 20 20 Specify length m when ordering Optical Fiber Cable Connectors 2 m S3200 CN201 20 25 3200 COCF2011 5m 3200 CN501 20 25 10 3200 CN102
59. 24 VDC C200H APSOS3 Auxiliary Power Backup power Supply Unit supply 100 VAC C1000H APS01 Auxiliary Power Supply Units Note 1 A maximum of 4 PCI Bus SYSMAC LINK Support Boards can be mounted Different types of connection systems can be mounted simultaneously 2 Bus SYSMAC LINK Support Boards can also be used with ISA Bus SYSMAC LINK Support Boards If PCI Bus and ISA Bus SYSMAC LINK Support Boards are used together however a separate ISA Bus FinsGate way SYSMAC LINK Driver is required 1 2 2 PCI Bus SYSMAC LINK Support Board Models Sytem Mode SYSMAC LINK PCI Optical H PCF Cable 3G8F7 SLK11 Support Board Coaxial Coaxial Cable 3G8F7 SLK21 1 2 3 Communications Specifications Optical System Type Optical H PCF cable Model 3G8F7 SLK11 Communications method N N token bus method Code Manchester code Modulation Baseband code Synchronization Flag synchronization conforms to HDLC frames Transmission path format Daisy chain method Specifications and Configurations Section 1 2 Items Specifications Transmission speed 2 Mbps Maximum transmission distance 20 km Maximum distance between nodes Crimp cut 800 m Adhesive 1 km See note 1 Transmission media H PCF cable optical two core cable Node connection method Connected via a special full lock connector connector A half lock connector can also be used Maxi
60. 4 2 Inspection SYSMAC LINK Support Boards must be inspected on a regular basis to ensure correct operation Inspections should be conducted once every 6 to 12 months If the Board is subject to extremes in temperature or humidity inspections should be conducted on a more regular basis Tools and Equipment Need for Inspection The following tools and equipment will be needed to perform inspection and ad justments e Assorted flat blade and Phillips screwdrivers Circuit tester or digital voltmeter Industrial grade alcohol and clean cotton cloth e Synchroscope Pen chart recording oscilloscope e Thermometer hygrometer Optical tester 111 Handling Precautions Section 9 5 Inspection Items Inspect the following items to see if they deviate from the prescribed standards If any items do deviate from the standard either adjust so they are within the op erating range or adjust the Board accordingly Item Description Inspection instrument Ambient condi Temperature 5 to 45 C Thermometer tions Humidity 896 to 80 no Hygrometer condensation or freezing Dust free Sight Installation Board securely attached Sight Communications cable connectors tight Communications cables securely locked into place Communications cabling used for external wiring intact no breaks Optical fiber Optical loss increasing Confirm that optical loss deterioration has not increased since installation 50
61. 924 ms gt 38 Optical System T ms 62 0 1115 10x 0 77 4 0 75 32 x 0 056 2 000 x 0 01 1 322 ms 40 727 ms 41ms The communications cycle time present value and maximum value can be read or set with the Support Software or a command 1 Refer to Section 8 Communications Timing for details on the network pa rameters 2 The data link may no operate correctly if the communications cycle time is changed to a value shorter than the value that was automatically set by the system 3 If the LNK indicator on the front of a CS1W SLK11 21 SYSMAC LINK Unit is flashing quickly about 10 times second either change the data link table s 61 Data Link I O Response Time Section 5 6 Changing the Communications Cycle Time Note communications cycle time setting to automatic calculation or set a longer manual setting When the communications cycle time is set to automatic calculation the com munications cycle time can be changed by changing the network parameters maximum node address number of event frames allowed number of polled nodes with the Support Software The communications cycle time is set to auto matic calculation the communications cycle time will change just after the net work parameters are changed The following table shows the default values and setting ranges of the network parameters Network parameter Default value Setting range Maximum node address 62 2 to 62 Number of e
62. Ae RIS ERU e PN RU RR 8 1 1 SYSMAC LINK Communications 8 1 2 Communications Cycle 8 1 3 Network Parameters cece eee mmm 8 1 4 Specifying Network Parameters 8 2 Message Service Delay Times 95 Network Parameters Section 8 1 8 1 Network Parameters This section explains how to use SYSMAC LINK Network communications and how to adjust the network parameters to match the system 8 1 1 SYSMAC LINK Communications The token bus method is used for communications in the SYSMAC LINK Net work With this method a piece of data called a token is passed between the various nodes in the network The only node that can transmit data at any given time is the one that currently holds the token thereby preventing interference or conflicts in the transmission of data within the network The token travels from in node address order beginning with the node with the lowest node address without regard to the order in which the nodes are con nected When the token reaches the node with the highest address it is passed back to the node with the lowest address to start the cycle over again If a node has data to send it will send that data and then pass the token to the next node If the node has no data to send it will just pass the token to the next node Polling Node Each SYSMAC LINK Network always has a Unit that controls communications within the network This Unit is called the polling node Normally the node that
63. Arguments Variable name PSLKHANDLE hSLK Makes settings to notify the specified thread with a Windows message when a PSLKHANDLE hSLK DWORD Description The SLK handle obtained with SlkOpen DWORD dwThreadld Thread ID to receive event notification UINT uMsg Return Value Message to use for notification WM USER to Ox7FFF SLK SUCCESS is returned if the function ends normally SLK ERROR is returned if the function ends in an error Detailed error informa tion can be obtained using SlkGetLastError Description Both SlkSetMessageOnArrival and SlkSetThreadMessageOnArrival cannot be registered at the same time The function will end in an error in the following cases Error cause Detailed error information A null pointer is specified for the window handle specified as the argument ERR WINDOWHANDLE PARA Window handle error An illegal value is specified for the window handle specified as the argument 67 Illegal window handle The message specified in the argument is over Ox7FFF ERR MESSAGE PARA Message type error A message has already been registered for FINS message reception 69 Duplicated message registration error 4 1 10 SIkClearMessageOnarrival FINS Message Reception Notification Clear Function Clears windows message notification when a FINS message is received Call Format INT SlkClearMessageOnArrival PSLKHANDLE hSLK Arguments Variable
64. Board SYSMAC LINK Support Boards for ISA bus Operation Manual connections SYSMAC LINK Support Boards are used to connect IBM PC ATs or compatibles to a SYSMAC LINK Network CV500 SLK11 21 SYSMAC Installation setup and operating procedures for the W202 LINK Units Operation Manual SYSMAC LINK Units are used to connect CV series PCs to a SYSMAC LINK Network CS1W SLK11 21 SYSMAC Installation setup and operating procedures for the W367 LINK Units Operation Manual Optical Ring SYSMAC LINK Units SYSMAC LINK Units are used to connect CS1 series PCs to a SYSMAC LINK Network Depending on the system you may also need the SYSMAC or CV Support Software or a Programming Console Please read this manual and related manuals carefully and be sure you understand the informa tion provided before attempting to install and operate a SYSMAC LINK Support Board Section 1 outlines the functions of the SYSMAC LINK Support Board including applications and the dif ferences between the SYSMAC LINK Support Board and the SYSMAC LINK Unit Section 2 describes how to wire the power supply cables and communications cables to the SYSMAC LINK Support Board Section 3 describes creating applications user programs that control the SYSMAC LINK Support Board Section 4 details the C language library functions supported by the SYSMAC LINK Support Board Section 5 describes how to use data links in a SYSMAC LINK Network Section 6 explains how to
65. CTION 6 Message Service This section explains how to use the message service functions provided by a SYSMAC LINK Support Board 6 1 Introduction uoo s eR mederi eR UE ATO IRE 6 1 1 Message Service 6 1 2 Message Service Functions 888 6 2 FINS Command Response Format 0 0 0 eee eee eee ae 6 2 L Headers cse cet DR UE teed ot SOAS hays thas baw 6 2 2 Parameters etos pe ees Chk ue Go So ee Gee Ve 6 2 3 Data Formats siere sh ce p i aa Da SR Sa aed 6 3 Commands and Responses for the Support Board 6 3 1 Command Codes 0 cece eee nen eae 6 322 LINKE STARE PG Rie be PEARSE So a AES 623 3 DATA LINK STOP wets eg eed ess aed ecb ee acter bc 6 3 4 CONTROLLER DATA READ aiora Koea Koan eee eee 6 3 5 CONTROLLER STATUS READ 0 0 00 6 3 6 NETWORK STATUS READ 0 00 0 6 3 7 DATALINK STATUS READ 0 0 eee n 6 3 8 BCHOBACK TEST sme sv ee HERE y RA EE 6 3 9 BROADCAST TEST RESULTS READ 6 3 10 BROADCAST TEST DATA SEND 6 3 11 ERROR LOG READ len ERREUR a gr a Pew 6 3 12 ERROR LOG CLEAR ei cosh oe spo o wees ode ERA gg 6 4 Response Codes sete ies Eg ert Bast Sad BUR eLEESIFPveLf
66. Command Response Format Section 6 2 6 2 FINS Command Response Format This section explains the format of the FINS commands and responses speci fied by the S kSendFins library function When actually sending or receiving message service data the contents speci fied by the library function parameters are attached as a header When the mes sage service is used however there is normally no need to pay special attention to headers 6 2 1 Headers Although parameters are used to designate the source the destination and oth er required information there are some cases where a header must be manually added before the command code Refer to the operation manuals for individual systems to determine if a header is required The header format described be low is attached before the command code and the other parameters described for individual commands in the rest of this manual Command Data Structure 00 02 th Sos we Me este ICF RSV GCT DNA DA1 DA SNA SA1 SA SID Command Text code Header Response Data Structure Details ICF RSV GCT DNA DA1 00 02 Vl Gl te ile ae ICF RSV GCT DNA DAI DA2 SNA SA1 SA2 sip Command Response Text code code Header Information control field Individual bits of the ICF are used as follows Set to 0 FENTE R
67. E Cat No W390 E1 1 SYSMAC 3G8F7 SLK11 E Optical Fiber Cable 3G8F7 SLK21 E Coaxial Cable SYSMAC LINK PCI Support Boards OPERATION MANUAL OMRON 3G8F7 SLK11 E Optical Fiber Cable 3G8F7 SLK21 E Coaxial Cable SYSMAC LINK PCI Support Boards Operation Manual Produced March 2001 OMRON products are manufactured for use according to proper procedures by a qualified operator and only for the purposes described in this manual The following conventions are used to indicate and classify precautions in this manual Always heed the information provided with them Failure to heed precautions can result in injury to people or dam age to property N DANGER Indicates an imminently hazardous situation which if not avoided will result in death or serious injury Z N WARNING Indicates a potentially hazardous situation which if not avoided could result in death or serious injury Z N Caution Indicates a potentially hazardous situation which if not avoided may result in minor or moderate injury or property damage OMRON Product References All OMRON products are capitalized in this manual The word Unit is also capitalized when it refers to an OMRON product regardless of whether or not it appears in the proper name of the product The abbreviation Ch which appears in some displays and on some OMRON products often means word and is abbreviated Wd in docu
68. FFER PNSTBUFFER SLKHEADER PSLKHEADER maintenance cleaning inspection message service basic procedure delay times features functions driver calls procedures specifications Microsoft Visual Basic Microsoft Visual C library functions overview N network interconnections definition other OMRON networks routing tables SYSMAC LINK parameters maximum node address specifying reading status relay error node bypass function O operating system specifications optical fiber cables See also cables accessories connectors connections precautions models standard P parameters FINS commands headers PC reading controller status PLC Reporter 32 polling cycle polling node number of polled nodes precautions application applications Board ID cables data link timing general handling operating environment routing tables safety procedures data link message service overview data link initial message service R RAS functions replacing Board Unit response codes configuration response to FINS commands troubleshooting routing tables creating examples precautions setting RSV S SA1 SA2 service ID settings data link tables Setup Diagnostic Utility SID SNA software configuration source network address node number 121 Index unit address specification
69. INK Communications Units on the same CS series PC or CV series PC a message service can be created with nodes in the intercon nected networks through that PC Up to three network levels are possible Note SYSMAC NET Link Unit cannot be mounted in a CS series PC Improved Error Handling RAS Functions Error Log and Data Link Status Display Polling Node Backup Node Bypass Function An error log enables quick handling of errors by recording the time the error oc curred and error details The current SYSMAC LINK Unit and Support Board sta tus are also available as are the data link and network status When an error occurs in the polling node that controls the SYSMAC LINK Net work another node automatically becomes the polling node This prevents an error at a single node from influencing other nodes on the network achieving a highly reliable system In an Optical SYSMAC LINK Network data communications can be continued by bypassing the node even when a node in the communications line malfunc tions or the PC or computer power supply is turned OFF This prevents the whole network system from being affected by a node malfunction or power interruption To use the bypass node function backup power must be supplied to the SYS MAC LINK Units Support Boards Optical transmission path Bypass Power interruption IBM PC AT or compatible 24 VDC or 100 VAC Backup Power 1 1 3 What Is a S
70. NK Support Board is recorded in the Board s RAM or EEPROM The entries that are stored in EEPROM will be retained even when the computer is turned OFF or reset The error log can be read or cleared using a Programming Device FinsGateway or Controller Link Support Software or the message service 9 3 1 Error Log Table Errors are recorded in an error log table in the Board s RAM with one record for each error and a maximum of 39 records Serious errors are also recorded in the Board s EEPROM so that when the pow er to the Board is turned OFF or reset a record of the error will remain The error log table in EEPROM is automatically read to the Board s RAM when the power is turned ON again Item Specification No of records 39 max Data code Binary The time date information is in BCD Length of each record 10 bytes Configuration of records Error code 2 bytes Refer to 9 3 2 Error Codes Detail code 2 bytes Refer to 9 3 2 Error Codes Time 6 bytes Refer to the Time Information From the oldest record to the most recent Record order If the number of records exceeds 39 the oldest record will be deleted and the most recent error recorded 106 Error Log Section 9 3 Error Log Table Configuration Time Information ee Fee N 1 record 1 record 1 record Maximum 39 records Record Configuration 1st byte 10th byte Error code Details
71. PROM is damaged Refer to 7 3 Setting Routing Tables and reset the routing tables correctly If the error recurs replace the SYSMAC LINK Support Board There is an error in the routing table setting When using a routing table refer to 7 3 Setting Routing Tables and reset the routing tables correctly If no routing tables are being used delete the tables The Data link table error flag is ON The data link table data in the EEPROM of the CPU Unit is damaged Refer to 5 3 Starting and Stopping Data Links and reset the data link tables correctly If the error recurs replace the SYSMAC LINK Support Board There is an error in the data link table settings When using manually set data links refer to 5 3 Starting and Stopping Data Links and reset the data link tables correctly When manually set data links are not being used delete the data link tables The Network parameter error flag is ON 9 3 Error Log Network parameters in EEPROM are damaged Refer to 8 1 3 Network Parameters and correct the settings If the error recurs replace the SYSMAC LINK Support Board There is an error in the network parameter settings or node address of the local node is larger then the maximum address set within the network parameters Refer to 8 1 3 Network Parameters and correct the network parameters or the node address settings Information on errors that occur in the SYSMAC LI
72. R Area The setting range is 0 to 254 If the total send words area size is 0 the node will not send DM Area Set the size of the local node s send area in the data It will only DM Area The setting range is 0 to 254 words receive data Refresh Data link starting CIO LR Set the starting address of the local node s data link area in the CIO LR parameters word addresses Area Area The setting range is 0 to 2550 See note 1 DM Area Set the starting address of the local node s data link area in the DM Area The setting range is 0 to 32767 See note 1 Node refresh order Sets the order of the node addresses when the local node refreshes data in the data link area defined with the data link starting word addresses above The local node address indicates the send area Other node addresses indicate areas that receive data from other nodes For example if 3 2 1 is input the data link area is allocated to nodes 3 2 and 1 starting from the data link starting word address When the local node address is 1 data will be received from node 3 received from node 2 and then sent from the last area Note 1 Always include the local node in the node refresh order 2 When the node address of a node is omitted from the node refresh order data will not be received from that node Note 1 The actual range of addresses in the CIO LR and DM Areas depends upon the PC being used Refer to the PC s Operation Manual for deta
73. Y 6 4 1 Configuration in nE a a E hm 6 4 2 Network Relay Errors 2 2 itga eects 6 4 3 Response Codes and Troubleshooting 65 Introduction Section 6 1 6 1 Introduction A message service is a command response system used for data transmission between nodes on a network i e computer to computer PC to computer or computer to PC The message service can also be used to control operations such as mode changes The message service is implemented by executing from the user program the library functions for sending or receiving messages 6 1 1 Message Service Specifications Communications from an computer are executed according to the specifications shown in the following table Specifications Direction of transmission 1 1 Message transmission or reception 1 N Message transmission broadcast Data length 522 bytes max including FINS header Data content Any command response data can be sent or received Depends on the message being sent 6 1 2 Message Service Functions FINS commands can be sent to specified nodes and FINS responses can be received by executing C library functions from the user program to send and re ceive messages Functions Features Sending Messages This library function and driver call send command response data SIlkSendFins library Can be issued with respect to any Units at a PC or to the Support Board or use
74. YSMAC LINK Support Board A SYSMAC LINK Support Board is used to directly connect an IBM PC AT or compatible with an ISA or PCI slot to a SYSMAC LINK Network A SYSMAC LINK Support Board supports data links a message service and RAS functions in the same way as a SYSMAC LINK Unit Overview Section 1 1 The Support Board is mounted in an expansion slot in the computer The follow ing Support Boards are available depending on the type of connection cable Coaxial System 3G8F7 SLK21 E for PCI slot or or 3G8F5 SLK21 E for ISA slot compatible SYSMAC LINK Support Board SYSMAC LINK Unit Coaxial SYSMAC LINK Network Optical System H PCF Cable 3G8F7 SLK11 E for PCI slot SYSMAC LINK Support Board IBM PC AT or An ISA Board is not available compatible SYSMAC LINK Unit Optical H PCF Cable SYSMAC LINK Network Overview Section 1 1 1 1 4 Features of SYSMAC LINK PCI Support Boards The SYSMAC LINK PCI Support Board can be used to configure various com munications applications using FinsGateway SYSMAC LINK PCI Embedded Edition User application PLC Reporter 32 DataFlowNavi for Access AIMAX FA etc C library Compolet FinsGateway SYSMAC LINK PCI Embedded Edition PCI Bus SYSMAC LINK Support Board The Board is equipped with the FinsGateway SYSMAC LINK PCI Embedded Edition and C library Win32 DLL as standard features With just the Board it self user a
75. ables are deleted from nodes that are not participating in the data links Automatically Set Data Links Set the appropriate settings in the data link startup PC s DM parameters or CPU Bus Unit system setup area 55 Starting and Stopping Data Links Section 5 3 5 3 1 Using a Programming Device or a Ladder Program Set the software switches AR or DM Start Bit in the PC to ON using a Program ming Device or from the ladder diagram program User program Startup node A A 7 SYSMAC LINK P I CS series PCs Turn ON the Start Bit in DM 30000 100 x N N unit number CV series PCs Turn ON the Start Bit in DM 1500 25 N N unit number T d ETE 2005580 Programming Device B The data links will start when the Start Bit changes from OFF to ON or is already ON when power is turned ON The data links will stop when the Start Bit changes from ON to OFF Note 1 Refer to the SYSMAC LINK Units Operation Manual W202 W367 for de tails on starting and stopping data links using a Programming Device or lad der program 2 The data in the DM Area is retained even when the power is turned OFF Therefore settings can be made in the DM Area in advance so that the data links will start as soon as the power is turned ON When CV series PC is being used specify the Start Bit in the Holding Area We recommend turning ON the Start Bits in multiple
76. ained with SlkOpen PEMSLKADDRESS pEmAddress Pointer to the starting address structure for writing data LPWORD IpWriteData Pointer to the buffer to store the write data DWORD dwSize Write data size unit words 40 Library Functions Section 4 1 Return Value Description 4 1 6 SlkReadDatalink Function Call Format Arguments Return Value Description 4 1 7 SlkGetNetworkStatus Function Call Format SLK_SUCCESS is returned if the function ends normally SLK_ERROR is returned if the function ends in an error Detailed error informa tion can be obtained using SlkGetLastError Refer to 4 2 Structure Descriptions for information on the starting address struc ture for writing data The function will end in an error in the following cases Error cause Detailed error information A value of 0 was specified for the argument s write data size ERR WRITE BUFFER SIZE Write data size error Access is requested to 3 or more different memory areas for one SLK handle ERR MEMORY AREA Multiple memory area specification error The memory name specified in the argument does not exist ERR NO MEM TYPE No such memory Data Link Data Read Reads data from a data link area INT SlkReadDatalink PSLKHANDLE hSLK PEMSLKADDRESS pEmAd dress LPWORD IpReadData DWORD dwSize Type Variable name Description PSLKHANDLE hSLK The SLK handle obtained with SlkOpen
77. alfunctions or the power supply to the PC or computer is turned OFF Optical transmission path Bypass Power supply down m Backup power supply 24 VDC or 100 VAC Each node requires a backup power supply for the node bypass function Sever al nodes can be connected to a single power supply or each node can be con nected to an independent power supply If several nodes are connected to a single power supply be sure to wire each node separately as shown in the dia gram Note Use a separate power supply as the backup power supply Do not use the same power supply being used as the I O power supply equipment such as motors power supply or control power supply 2 3 1 Backup Power Supply Specifications The input specifications for the backup power supply to the SYSMAC LINK Unit and Support Board are described below When providing a backup power sup ply make sure that the following specifications are satisfied Item Specifications Power supply voltage 24 VDC Allowable power supply 20 4 to 26 4 VDC 24 VDC 15 to 10 voltage fluctuation range Consumption current 24 VDC 400 mA max per node Inrush current 2 5 A max when 24 VDC rising time is 5 ms An OMRON S82K series Power Supply Unit is recommended Note 1 If connecting multiple nodes to one power supply or if the distance between the power supply and the node is great carefully consider the maximum cur rent and voltage needed to satisfy the spec
78. ameter error 1 Data link table error 1 Routing table error BYTE byStatus6 Reserved area Stores undetermined data 103 Status Information and Troubleshooting Section 9 2 BYTE Variable name byStatusFlag Contents Data link operation status and data link mode Stores the data link operation status data link mode etc Bit fH E d 1 Not specified Current Data Link Mode 0 Manual settings 1 Automatic settings Data Link Operating Status 0 Stopped 1 Running BYTE abyDataLinkStatus 62 Data link status Stores the data link status Nodes are listed in the same order in which they are entered in the data link table for refreshing Bit 7 0 151 node nj 2 d node 2 _ 8 d node 60 6151 node 61 62nd node Node Data Link Status Tas 4 3 E t o Not specified 5 4 4 PC Operating Status 0 Stopped 1 Running PC program being executed CPU Unit Error Status 0 No error 1 Error Data Link Communications Error Status 0 Normal 1 Error Data link data not received normally Data Link Participation Status 0 Not participating or data links stopped 1 Participating 104 Status Information and Troubleshooting Section 9 2 9 2 2 Error Processing Data Link Status abyDataLinkStatus Bit status Probable cause Probable remedy The CPU Unit Error Status flag is ON A fatal PC error non fatal PC error or a watchdog timer er
79. ard s version number Connection Type and Shared RAM Size response Bit T B G n 0 0 0 Not used C Shared RAM size Always 0 for the SYSMAC LINK Support Board Connection type 0 Coaxial 1 Optical Node address response The Support Board s node address is returned be tween 01 and 3E Hex 1 to 62 6 3 5 CONTROLLER STATUS READ Reads the SYSMAC LINK Support Board s operating status controller status 70 Commands and Responses for the Support Board Section 6 3 Command Block 06 01 Response Block 06 01 00 00 00 00 00 aot zd f T 7 omman esponse code Status 1 Status3 Status 5 Count 1 Count8 Network code ti tat participation peratng status Status2 Status4 Status 6 status Total 6 bytes Total 8 bytes Parameters Operating status response The operating status of the data links is as fol lows 00 Hex Data links inactive 01 Hex Data links active Status 1 response Indicates the status of test operation as follows Always 00 with a SYSMAC LINK Support Board Bit 1 0 765432 0 0 0 0 0 0 0 Status of test 0 Stopped 1 Executing Status 2 response Indicates the circuit status as follows Bit 3 1 2 0 0 0 0 Z Powe
80. ata link startup node and in automatic setting automatic data link setting parameters must be set in the data link startup node Data links will not be started unless the settings are correct 5 2 2 Manual Setting Transfer the data link tables that were created on the Support Software to the SYSMAC LINK Units and the SYSMAC LINK Support Boards of all nodes partic ipating in the data links Transferring from a Programming Device C200HX HG HE PCs CV series PCs a SYSMAC SYSMAC j n n Nodes LINK Unit Nodes LINK Unit _ gt SYSMAC LINK CPUUnit Unit RS 232C A ni ni IBM PC AT or Support Software gt compatible Transfer CS series PCs SYSMAC Nodes LINK Unit Data link tables 1 _ CPU Unit LAC Note 1 Data link tables cannot be set in the SYSMAC LINK Support Board using the CX Net in the CX Programmer Use the SLK Data Link Setting Utility in Fins Gateway or the SYSMAC LINK Support Software version 2 00 or higher 2 When transferring the data link tables to a SYSMAC LINK Unit in a CV se ries PC set the System Protect Keyswitch on the CPU Unit to NORMAL With a CS series PC set pin 1 of the CPU Unit s DIP switch to OFF 3 The SYSMAC Support Software cannot be connected directly to a CS se ries PC 52 Setting Data Links Section 5 2 Transf
81. ation node is cleared when the BROADCAST TEST RESULTS READ command is executed 6 3 10 BROADCAST TEST DATA SEND Broadcasts test data to all nodes in a specified network Command Block 08 512 bytes max Command Test data code There is no response to this command The control data must be set as follows when this command is issued Destination node address FF Hex for broadcasting the data Destination unit address FE Hex to SYSMAC LINK Support Boards Units Response required not required flag 1 response not required The transmission and reception status is checked by comparing the number of times this command is issued with the number of receptions parameter of the BROADCAST TEST RESULTS READ command For details refer to 6 3 9 BROADCAST TEST RESULTS READ 6 3 11 ERROR LOG READ Reads the PC s error log Command Block 21 02 Command Beginning No of code record no records Response Block 21 02 10 bytes 10 bytes T A Lt Command Response Max no of No of No of Errorlog Error log code code stored records stored records data data records to read Parameters Beginning record no command Specifies the first record to be read in two bytes four digits in hexadecimal The first record number is 0000 hexadeci mal 76 Response Codes Section 6 4 No of records to read command and
82. ation node not part of Network Add to Network T 02 No node with the specified node Check the destination node s node address address 03 Third node not part of Network Check the third node s node address Broadcasting was specified Check the control data and specify only one node as the third node 04 Busy error destination node busy Increase the number of transmit retry attempts or re evaluate the system so that the destination node is not so busy receiving data 05 Response time out message packet Increase the number of transmit retry at was corrupted by noise tempts Response time out response watch Increase the value for the response watch dog timer interval too short dog timer interval in the control data Frame lost in transmission Check the error log and correct the process 03 Communications 01 Error occurred in the communications Take corrective action referring to controller error controller ERC indicator is lit communications controller errors and remedies table at end of this section 02 CPU Unit error occurred in the PC Clear the error in the CPU Unit refer to the the destination node PC s operation manuals 03 A controller error has prevented a Check network communications status and normal response from being returned reset the controller board If the error still exists replace the controller board 04 Unit address setting error Make sure the unit address and unit number are within the specified ran
83. bese ee Reb RS PERDRE eds 4 Operating Environment Precautions 0 0 0 cee Ie 5 Application Precautions 5 eee cent e xi Safety Precautions 1 2 3 xii Intended Audience This manual is intended for the following personnel who must also have knowl edge of electrical systems an electrical engineer or the equivalent e Personnel in charge of installing FA systems e Personnel in charge of designing FA systems e Personnel in charge of managing FA systems and facilities General Precautions Z N WARNING The user must operate the product according to the performance specifications described in the operation manuals Before using the product under conditions which are not described in the manual or applying the product to nuclear control systems railroad systems aviation systems vehicles combustion systems medical equipment amusement ma chines safety equipment and other systems machines and equipment that may have a serious influence on lives and property if used improperly consult your OMRON representative Make sure that the ratings and performance characteristics of the product are sufficient for the systems machines and equipment and be sure to provide the systems machines and equipment with double safety mechanisms This manual provides information for programming and operating the SYSMAC LINK PCI Support Board and related devices Be s
84. ble the total communications distance can be up to 20 km 1 km max between nodes when using the adhesive polishing method which allows long distance and large scale networks Communications between Different Models of PCs The following SYSMAC LINK Units are available for communications between different PCs Wired Units and Optical Units however cannot be used together in the same SYSMAC LINK Network Coaxial System e SYSMAC LINK Unit for CS series Programmable Controllers Overview Section 1 1 e SYSMAC LINK Units for C200HX HG HE Programmable Controllers e SYSMAC LINK Units for CVM1 and CV series Programmable Controllers e SYSMAC LINK Units for C1000H and C2000H Programmable Controllers e SYSMAC LINK ISA Support Board for IBM PC AT or compatibles e SYSMAC LINK PCI Support Board for IBM PC AT or compatibles Optical System with H PCF Cables e SYSMAC LINK Unit for CS series Programmable Controllers e SYSMAC LINK Units for C200HX HG HE Programmable Controllers e SYSMAC LINK Unit for CVM1 and CV series Programmable Controllers e SYSMAC LINK Unit for C1000H and C2000H Programmable Controllers e SYSMAC LINK PCI Support Board for IBM PC AT or compatibles Flexible Inter network Connections The SYSMAC LINK Network can be connected to another network Ethernet SYSMAC NET Link SYSMAC LINK or Controller Link network through a CS series or CV series PC By installing Ethernet SYSMAC NET Link or SYSMAC LINK or SYSMAC L
85. bles N End Relay O Netwk PCID Netwk Node 1 B A b 2 b No End Relay Netwk PCID Netwk Node 1 C B e N End Relay 0 Netwk PCID Netwk Node 1 A B 2 B e N End Relay O Netwk PCID Netwk Node 1 A B No End Relay Netwk PCID Netwk Node 1 A C f 2 B C f On closer examination of the relay network table for PC 3 we see that the relay network is B and the relay node is c when network A is the destination and that the relay network is B and the relay node is e when network C is the destination 91 Setting Routing Tables Section 7 3 Example 3 The network structure example in the figure below shows routing tables for all nodes Unit 5 Node 1 SNT SYSMAC NET LINK Unit snT PC CLK LINK Unit or Board 1 SLK LINK Unit Network 10 P PC Unit 2 CLK SNT 05 SNT SLK Node 3 Node 15 Network 20 Network 30 CLK puter CLK 4 SLK 5 SLK 6 Unit 0 Unit 1 Unit 5 Unit 6 Node 1 Node 2 Node 5 Node 10 Routing Tables on PC 1 Local Network Table Relay Network Table No Loc SIOU No End Relay Netwk unit Netwk PCID Netwk Node 1 010 05 1 020 010 004 2 2 030 010 005
86. cipating or data links stopped 28 58th node 57th node 1 Participating 29 60th node 59th node 30 62nd node 61st node Unpredictable status Note The first word is set in the Fins Gateway settings Refer to Fins Gateway online help for details 59 Data Link Performance Section 5 5 Status Values Description Data link 0 Not participating in data links Indicates the corresponding node s data link participation participation or data links inactive status 1 Participating in data links Communications 0 Normal Indicates if data link data for node was received normally or error 1 Error not CPU Unit error 0 No error Indicates if an error has occurred in the PC 1 Error Always 0 for SYSMAC LINK Support Board nodes PC status 0 Program execution stopped Indicates if the PC program is being executed or not 1 Program being executed Always 1 for SYSMAC LINK Support Board nodes Note 1 Communications errors will be indicated for node that are not participating in the network 2 When a communications error occurs in the local node or it is separated from the network the local node retains the most recent status information it received for the other nodes in the network 5 4 3 Checking by Manipulating Bit Word Status Although the data link function itself may be operating correctly the data link areas may have been input incorrectly After you have confirmed that the data link funct
87. d Test data code Response Block 08 01 512 bytes max Command Response Test data code code Parameters Test data command response For the command up to 512 bytes of data can be specified to be sent to a specified node For the response the test data that was sent by the command is returned unchanged Some kind of error occurred if the data returned in the response is different from the data that was sent in the command 6 3 9 BROADCAST TEST RESULTS READ Reads for each node the results number of receptions of BROADCAST TEST DATA SEND command that has been sent to all nodes in a specified net work For details on the BROADCAST TEST RESULTS SEND command refer to 6 8 10 BROADCAST TEST DATA SEND Command Block 08 02 pet Command code 75 Commands and Responses for the Support Board Section 6 3 Response Block 08 02 Command Response Number of code code receptions Parameters Number of receptions response The number of times that broadcast test data has been received at the command destination node from the time that the last BROADCAST TEST RESULTS READ command was sent until this one was sent is returned An error will be generated if that number of receptions differs from the number of times that the BROADCAST TEST DATA SEND command was issued during that same period The number of receptions value being retained at the destin
88. d additional precautions Failure to abide by the following precautions could lead to serious or possibly fatal injury Always heed these precautions e Always ground the system to 100 Q or less when installing the system to pro tect against electrical shock e Always turn OFF the power of the computer before attempting any of the fol lowing Performing any of the following with the power supply turned on may lead to electrical shock e Installing or removing the Support Board e Assembling the Units e Setting DIP switches or short circuiting pins Connecting or disconnecting any cables or connectors Failure to abide by the following precautions could lead to faulty operation of the computer or the system or could damage the SYSMAC LINK PCI Support Board or related devices Always heed these precautions Fail safe measures must be taken by the customer to ensure safety in the event of incorrect missing or abnormal signals caused by broken signal lines momentary power interruptions or other causes e Always use the power supply voltage specified in the operation manuals An incorrect voltage may result in malfunction or burning e Take appropriate measures to ensure that the specified power with the rated voltage and frequency is supplied Be particularly careful in places where the power supply is unstable An incorrect power supply may result in malfunction e Install external breakers and take other safety measures against
89. data link table for refreshing Bit T 0 181 node 2nd node 2 8 d node 60 615 node 61 6214 node Node Data Link Status T H 35 4 1 Not specified PC Operating Status 0 Stopped 1 Running PC program being executed CPU Unit Error Status 0 No error 1 Error Data Link Communications Error Status 0 Normal 1 Error Data link data not received normally Data Link Participation Status 0 Not participating or data links stopped 1 Participating 47 Detailed Error Information 4 3 Detailed Error Information 48 The information read by SlkGetLastError is listed in the following table Macro Section names for error codes are defined in SLK_LIB H 1 ERR_UNIT_ADDRESS Error code Macro name 4 3 Meaning Unit address range error 2 ERR_NO_SLKUNIT SYSMAC LINK Unit is missing 3 ERR_NO_MEMORY Memory could not be obtained 4 ERR MSG SIZE OVER Reception message was too large 5 ERR NO MEM TYPE Memory type does not exist 6 ERR RESPONSE Response code error 7 ERR SEND BUFFER SIZE Send message size error 8 ERR BUFFER SIZE Reception message size error 9 ERR WRITE BUFFER SIZE Write data size error 10 ERR READ BUFFER SIZE Read data size error 11 ERR WINDOWHANDLE PARA Window handle error 12 ERR MESSAGE PARA Message type error 13 ERR MEMORY AREA Memory type designation error
90. de number in SYSMAC LINK network 1 to 62 decimal 01 to 7E Node number in SYSMAC NET network 1 to 126 decimal 01 to 3E Node number in SYSMAC LINK network 1 to 62 decimal Source unit address Specify within the following ranges 00 PC CPU Unit 01 to OF Application on FinsGateway Refer to FinsGateway online help 10 to 1F Board for CPU Bus Unit or computer Service ID Used to identify the processing generating the transmission Set the SID to any number between 00 and FF All parameters are specified in hexadecimal unless otherwise specified Where decimal is specified it is indicated by BCD The command code and text for the command are stored in memory as oper ands and the transmission is executed using the required parameters The spe cific method depends on the programming method being used Prepare the transmission data from the command code to the end of the text with the data determined by the individual command and execute the SlkSendFins library function There are two bytes available for the command code and 0 to 540 bytes for the text Command Text code When the SlkRecvFins library function is executed the data from the command code to the end of the text with the data determined by the individual command is stored as reception data as shown in the following diagram There are four bytes available for the command and response codes and 0 to 538 bytes for the text
91. der turns for the permanent installation The minimum bending radius for the permanent installation is about 110 mm about 15x the coaxial cable radius Precautions Observe the following precautions regarding the communications cables e Always use the specified coaxial cable Install the coaxial cable separately from power lines and high voltage lines to prevent noise e Always install Terminators in the nodes at the ends of the network bus Do not install the coaxial cable outdoors If the cable must be installed out doors provide protection from lightning by installing the cable underground or inside conduit e The minimum cable length between nodes is 1 m Do not assemble commu nications cables shorter than 1 m Use the F type connectors to connect nodes and use the multi drop method e Before removing a coaxial cable touch a grounded metal object to discharge any static electricity e Always turn OFF the computer before connecting the coaxial cable to the Board e Fully insert the cable s connector into the Board s BNC jack Also check that the connections are locked securely before starting operation 2 1 4 Attaching Connectors to the Coaxial Cable The following diagram shows the parts that make up the BNC connector Body Contact crim Sleeve oR Ferrule Contact A Approx 24 3 mm A hand crimp tool CR H 1130 by Dai ichi Denshi Kogyo must be used to crimp the connector onto the cable
92. e e Support Software SYSMAC LINK Support Software Operation Manual W369 32 Basic Flow Section 3 1 3 1 2 Message Service Procedure The basic procedure for using the message service is outlined in the following flowchart Routing tables _START Routing tables already already written written or not necessary Write the routing tables using the Support Software Writing routing tables Transfer the routing tables to the other nodes using the Support Software Routing tables transferred to the Board will be recorded in the Board s EEPROM memory NE ES Mr nac Open the application interface using Initialization the SlkOpen function Send FINS message using the SlkSendFins function Sending and receiving FINS messages 5 Check for responses to FINS message using the SlkRecvFins function No response Response The network participation status and data link operating status can be read using the SlkGetNetworkStatus function Pp MM Ending Close the application interface using the SlkClose function Note 1 Routing tables are not needed if all communications take place with other nodes in the local network but routing tables must be prepared if there are communications between nodes on different networks 2 Repeat the process to send and receive FINS messages as often as re quired by the application 3 To use Windows based messag
93. e If you are using a C series SYSMAC LINK Unit together with a SYSMAC LINK Support Board a CS series SYSMAC LINK Unit or a CV series SYSMAC LINK Unit addresses CIO 1000 to CIO 1063 correspond to LR 00 to LR 63 in the C se ries PC and addresses D00000 to D00127 correspond to DM 0000 to DM 0127 in the C series PC 5 8 Starting and Stopping Data Links The data link must be started after data link areas have been created Use any of the methods described below for the startup node to start and stop data links These methods are the same for both manually and automatically set data links Note The data link mode manual setting or automatic setting and data link method are determined according to the data link setting in the startup node In the start up node set a data link table in the case of manual setting and data link automat ic setting parameters in the case of automatic setting If the settings are incor rect the data link will not start N Caution Check the following items before starting data links If incorrect data link tables or parameters are set injury may result due to unexpected operation of the sys tem Even if the correct data link tables and parameters have been set do not start or stop data links before verifying that there will be no adverse influence on the system Manually Set Data Links Check the data link tables in each node participating in the data link to see that they are correct Be sure that data link t
94. e address error 00 Local node Reset so that each node No connected to Controller Link address address is used only once by mistake within the same Network 0214 Node address setting error Not set Correct the node address Yes setting 0216 Backup power supply error 00 Error type Check the backup power Yes 01 OFF to ON supply and the power supply 02 OFF to ON Cables 021A Set table logic error 00 01 Network Reset the appropriate data Yes parameters 02 Data link tables 03 Routing tables 021B Hardware error 00 Error status Replace the SYSMAC LINK No SL1 error See note 2 Support Board 01 SL2 error 021C Data link error stopped Not set Stop the user application reset Yes the computer and retry 021D Communications cycle time Present cycle Minimum Either change the data link Yes setting error in data link table time setting possible cycle table s communications cycle 2 digit time setting time setting to automatic hexadecimal 2 digit setting or increase the manual ms units hexadecimal setting ms units 0220 Additional information 1 for Bits 00 to 15 correspond to Check the network No number of participating disconnected nodes 1 to 16 parameters the disconnected nodes decreased 0206 node and the cables 0221 Additional information 2 for Bits 00 to 15 correspond to No number of participating disconnected nodes 17 to 32 nodes decreased 0206 0222 Additional information 3 for Bits 00 to 15 correspond to
95. e function ends normally SLK_ERROR is returned if the function ends in an error Detailed error informa tion can be obtained using SlkGetLastError The number of receive bytes in the return value is for all bytes starting from the command code MRC in the FINS message Refer to 4 2 Structure Descriptions for information on the header information structure The FINS message from the command code MRC on will be stored in the FINS message receive buffer The function will end in an error in the following cases Error cause Detailed error information A FINS message receive buffer size of less than 2 bytes was specified in the argument ERR_RECV_BUFFER_SIZE Receive message size error A message reception area cannot be reserved because of insufficient memory ERR_NO_MEMORY Memory acquisition error The reception wait time is set to 0 and a FINS message has not yet been received 38 Receive timeout A FINS message was not received within the specified reception wait time 38 Receive timeout The received FINS message is larger than the reception buffer size 4 1 5 SIkWriteDatalink ERR_MSG_SIZE_OVER Receive buffer size error Data Link Data Write Function Writes data to a data link area Call Format INT SlkWriteDatalink PSLKHANDLE hSLK PEMSLKADDRESS pEmAddress LPWORD IpWriteData DWORD dwSize Arguments Type Variable name Description PSLKHANDLE hSLK The SLK handle obt
96. e time is expressed in ms units and fractions are rounded off Error Log Contents The following error log entry will be recorded if a data link communications cycle time setting error occurs Error Detailed information code First byte Second byte 021D Communications cycle time set in Minimum communications cycle the data link table ms units time that can be set ms units two digit hexadecimal two digit hexadecimal The second byte of the detailed information provided with error 021D provides the minimum communications cycle time that can be set Example A communications cycle time of 5 ms was set in the data link table the LNK indi cator is flashing quickly and the error log contains the entry 0210 0512 This error log entry indicates that the minimum communications cycle time is 18 ms 12 hexadecimal 02 1D 05 12 Minimum communications cycle time Current communications cycle time setting Error code 5 4 Checking Data Link Status There are two methods for checking the status of active data links e Check the LED indicators on the front of the Units e Check the data link status area 58 Checking Data Link Status Section 5 4 5 4 1 LED Indicators Check the LNK indicator on the front of the Board Optical Unit Coaxial Unit H PCF ERA PS AUN En LINK ins Make sure that the LNK Status Contents indicator is
97. eader has been used Set the routing table correctly The source node s relay table or relay node s local network table is wrong 11 Parameter error 01 A correct memory area code has not Check the command s memory area code been used or Extended Data Memory and set the appropriate code is not available 02 The access size specified in the Set the correct access size for the command is wrong or the first command address is an odd number 03 The first address is in an inaccessible Set a first address that is in an accessible area area 04 The end of specified word range Check the acceptable limits of the data exceeds the acceptable range area and set the word range within the limits Check the data link tables to be sure the limit to link words has not been exceeded 06 A non existent program no has been Check the program number and be sure specified that it is set correctly 09 The sizes of data items in the Check the command data and be sure that command block are wrong the sixes of the data items are correct Check the data link tables to be sure all nodes in the refresh parameters are in the common link parameters 0A The IOM break function cannot be Either abort the current IOM break function executed because it is already being processing or wait until it is completed and executed execute the command Check the data link tables for node addresses that have been set twice 0B The response block is longer than the Check the c
98. ecautions when wiring the communications cable or backup power supply cables e Separate the cables from power lines or high tension lines Do not bend the cables e Do not pull on the cables e Do not place heavy objects on top of the cables Route cables inside conduits e Before touching the Unit be sure to first touch a grounded metallic object in order to discharge any static built up Not doing so may result in malfunction or damage Do not touch the Board surfaces or parts Install the Board according to instructions in the operation manuals Improper installation may cause faulty operation e When using the Optical Ring SYSMAC LINK Support Board for public utilities Systems such as electricity gas or water supply use the Optical Ring mode and provide appropriate fail safe measures XV SECTION 1 Outline of Functions This section outlines the functions of the SYSMAC LINK Support Board including the applications of the SYSMAC LINK Support Board and the differences between the SYSMAC LINK Support Board and the SYSMAC LINK Unit Tel Overview is rue yea wh PING ade ERU TU OR 1 1 1 What Is the SYSMAC LINK 0 0 0 eee eee 1 1 2 i Beat feS das esas ok Ss te Rad teu cies Oa sia ERE 1 1 3 What Is a S YSMAC LINK Support Board 1 1 4 Features of SYSMAC LINK PCI Support Boards 1 1 5 Outline of PCI Bus SYSMAC LINK Support Board Funct
99. eceived through a Controller Link Network the maximum amount of data is limited by any network the data passes through i e the network with the the smallest capacity will determine the limit If for example data passes through a SYSMAC LINK network as shown in the figure the amount of data sent and received from the SYSMAC LINK is limited to 552 bytes including the header because the SYSMAC LINK Network can only handle that many bytes See the manual for the network you are using in order to determine the maxi mum amount of data for each network 7 2 Routing Tables Routing tables that define the communications path from the SYSMAC LINK Unit on the local PC to the network connected to the destination PC must be created in order to send and receive data across networks Creating Routing Tables The routing table consists of a local network table and a relay network table Local Network Table The local network table lists the unit numbers and corresponding network ad dresses for the SYSMAC LINK Unit and Support Board unit numbers Unit number 04 Unit number 05 Unit number 06 Unit number 07 Local network address Unit number bocal network table 89 Setting Routing Tables Section 7 3 Note 1 The unit number is set between 00 and 15 using the rotary switch on the front panel of CV series and CS series SYSMAC LINK Units and is the same as the operatin
100. ectors Indoor Use tached Only Specifications Optical Fiber Cable Connectors 2 m S3200 CN201 20 20 S3200 COCF2011 5m S3200 CN501 20 20 ME TEN 10m S3200 CN1 02 20 20 15m S3200 CN152 20 20 20m S3200 CN202 20 20 Over 20m S3200 CN 20 20 Specify length m when ordering Optical Fiber Cable Connectors 2 m S3200 CN201 20 25 3200 COCF2011 5m 53200 501 20 25 CF2511 10m 3200 CN102 20 25 15m 3200 CN152 20 25 20m 3200 CN202 20 25 Over 20m S3200 CN 20 25 Specify length m when ordering Optical Fiber Cable Connectors 2 m S3200 CN201 25 25 3200 COCF2511 5m 53200 501 25 25 CF2511 10m 3200 CN102 25 25 15m 3200 CN152 25 25 20m 3200 CN202 25 25 Over 20m S3200 CN 25 25 Specify length m when ordering Note 1 Consult an electrician if cables with outdoor specifications are required The cable must be protected from lightning by special installation such as instal lation within a conduit or underground 2 The cables listed above are black and have power supply lines and tension members although the power supply lines aren t used in the SYSMAC LINK Network 3 All of the cables listed above are attached to the connectors with adhesive 4 Special training is required to assemble Optical Fiber Cables and connec tors with adhesive Optical Fiber Cable Accessories Use the following accessories to assemble and test Optical Fiber Cables Name
101. ed Bit 14 Unit number duplicated 000E I O bus error 00 00 Check the environment Yes settings OOOF CPU Unit initialization error Check the environment Yes settings 0010 System capacity exceeded Yes 0011 CPU Unit initialization Check the environment Yes timeout settings 107 Error Log Section 9 3 Error Contents Detail code Correction Recorded code i Hex 1st byte Hex 2nd byte Hex EEPROM 0012 CPU Unit memory error 01 Read error 01 Data link Check the relevant settings Yes 02 Write error tables 02 Network parameters 0013 CPU Unit write protected 03 Routing Release write protection for the Yes tables CPU Unit 04 System setup 0101 Transmission failed local Command block Refer to 9 1 Troubleshooting No node not in Network Bits 0 to 7 Using Indicators and place the Source node address local node into Network 0103 Transmission failed retry gain ONDE Using the SYSMAC LINK No count exceeded Bit 15 Support Software or FINS OFF commands run echoback test and check operating Response block environment if errors occur Bits 0 to 7 0104 Transmission failed Destination node address Check event status on the No maximum number of frames Bits 8 to 14 network Reduce the number exceeded Destination Network address of events per communications Bit 15 cycle or increase the maximum ON number
102. eption Notification Registration to Window Makes settings to notify the specified window with a Windows message when a FINS message is received SlkSetThreadMessageOnArrival FINS Message Reception Notification Registration to Thread Makes settings to notify the specified thread with a Windows message when a FINS message is received SlkClearMessageOnArrival FINS Message Reception Notification Clear Clears windows message notification when a FINS message is received SIkGetLastError 34 Detailed Error Information Acquire Gets an error code generated when a SLK library function is used Using the C Library Section 3 2 Setting Up Visual C Ver 6 Use the following procedure to set up Microsoft Visual C to use the C library Include Files 1 2 3 1 Start Visual C Ver 6 0 and select Tools and then Options 2 Select the Directory Tab set the directory being displayed to the one for the include files click the first empty row in the list and then click the Button at the left of the row 3 Specify the folder in which the C library for the Support Board was installed and click the OK Button The installation directory in the header file default for the C library is Pro gram Files OMRON SYSMAC LINK Lib 4 Include the following line at the beginning of the program include SLK LIB h Setting Up the Library File 1 2 3 1 Start Visual Ver 6 0 and selec
103. erring from a Computer Connected as a Node IBM PC AT or SLK Data Link Compatible Setting Utility in FinsGateway LL Li uu X o SYSMAC LINK Support Board amp N Data link tables Note 1 To create data link tables for nodes in the network using the SLK Data Link Setting Utility in the FinsGateway the network must have been constructed correctly Set routing tables at each node as required When using manually set data links be sure to delete data link tables for all nodes not participating in data link See 1 4 Applications Precautions for details Refer to FinsGate way online help for actual setting procedures for the SLK Data Link Setting Utility 2 Refer to the FinsGateway online help for details on setting data link tables with the FinsGateway s SLK Data Link Setting Utility 5 2 3 Data Link Table Settings Manual Settings Item Contents Common link Communications cycle time Sets the data link s communications cycle time Select either automatic parameters calculation or a manual setting The default setting is automatic calculation The manual setting range is 5 to 255 ms Refer to 5 2 4 Data Link Timing Precautions if you are setting a fixed communications cycle time manual setting Local node s CIO LR Set the size of the local node s send area in the Note send area size Area CIO L
104. es to determine if a FINS message has been received use the SIKSetMessageOnArrival and SlkSetThreadMessa geOnArrival functions to register the Windows based messages to be used for notification When not using Windows based messages check periodi cally for FINS messages using SlkRecvFins For details on various methods for making programs refer to the following re sources Information on using the C library 3 2 Using the Library Details on C library functions Section 4 C Language Function Reference 33 Using the C Library Section 3 2 3 2 Using the C Library The Microsoft Visual C library functions for the SYSMAC LINK Support Board are provided in the following file SLK_LIB LIB Microsoft Visual C Ver 6 0 Service Pack 3 import library file Functions Function name SlkOpen The library contains the following functions Board Open Function Opens the application interface and gets an SLK handle SlkClose Board Close Closes the application interface and releases the SLK handle SlkSendFins FINS Message Send Sends a FINS message SIkRecvFins FINS Message Receive Receives a FINS message SlkWriteDatalink Data Link Data Write Writes data to a data link area SlkReadDatalink Data Link Data Read Reads data from a data link area SIkGetNetworkStatus Network Status Read Reads the network status SlkSetMessageOnArrival FINS Message Rec
105. esponse setting 0 response required 1 response not required E ate a Reece ceres Data type 0 command 1 response SAS Stam Sp Soupe gae rues S e Segre e sie Gateway usage 0 don t use 1 use set to 1 Note All settings below are shown in hexadecimal except where otherwise indicated Reserved Set to 00 Gateway count Set to 02 Destination network address Specify within the following ranges 00 Local network 01 to 7F Remote network 1 to 127 decimal Destination node number Specify within the following ranges 01 to Node number in SYSMAC LINK network 1 to 62 decimal 01 to 7E Node number in SYSMAC NET network 1 to 126 decimal 01 to SE Node number in SYSMAC LINK network 1 to 62 decimal FF Broadcast transmission 67 FINS Command Response Format Section 6 2 DA2 SNA SA1 SA2 SID 6 2 2 Parameters 6 2 3 Data Formats Commands Responses 68 Note Destination unit address Specify within the following ranges 00 PC CPU Unit 01 to OF Application on FinsGateway Refer to FinsGateway online help 10 to 1F Board for CPU Bus Unit or computer FE Unit or Board connected to specified network Any Unit or Board in SYSMAC LINK SYSMAC NET or SYSMAC LINK network Source network address Specify within the following ranges 00 Local network 01 to 7F Remote network 1 to 127 decimal Source node number Specify within the following ranges 01 to 3E No
106. eturned if the function ends in an error Detailed error informa tion can be obtained using SlkGetLastError BYTE byNet Refer to 4 2 Structure Descriptions for information on the read data structure The read data size is fixed Provide a memory area the size of the PNSTBUF FER structure as a read data storage buffer If the function is executed when the Board is not participating in the network 0 will be set for the following members of the read data structure Network participation status Communications cycle time Polling node address Data link operation status and data link mode Data link status The function will end in an error in the following cases Error cause Detailed error information An error response code was returned for the ERR RESPONSE FINS message Error response code error A SYSMAC LINK Support Board is not ERR NO SLKUNIT mounted in the network specified by the No SLK Unit argument s network address A message reception area cannot be reserved ERR NO MEMORY because of insufficient memory Memory acquisition error A value of 0 is specified for the network ERR NETWORK ADDRESS address but there is more than one network Network address specification error 4 1 8 SIkSetMessageOnaArrival Function Call Format Arguments Return Value Description 42 FINS Message Reception Notification Registration to Window Makes settings to notify the specified wi
107. executed As a coun termeasure for such errors external safety measures must be provided to en sure safety in the system Operating Environment Precautions 4 4 Z N Caution N Caution N Caution e The PC outputs may remain ON or OFF due to deposition or burning of the output relays or destruction of the output transistors As a countermeasure for such problems external safety measures must be provided to ensure safety in the system e When the 24 VDC output service power supply to the PC is overloaded or short circuited the voltage may drop and result in the outputs being turned OFF As a countermeasure for such problems external safety measures must be provided to ensure safety in the system Execute online edit only after confirming that no adverse effects will be caused by extending the cycle time Otherwise the input signals may not be readable Confirm safety at the destination node before transferring a program to another node or changing contents of the memory area Doing either of these without confirming safety may result in injury Tighten the connector screws for the backup power supply to the torque speci fied in this manual The loose screws may result in burning or malfunction Operating Environment Precautions N Caution N Caution Z N Caution Do not operate the control system in the following locations Locations subject to direct sunlight e Locations subject to temperatures or h
108. flowchart E iy START Data link tables not yet written Data link tables no DATALINK DAT file already written T Write the data link tables using the Support Software Writing data link epee Transfer the data link tables to the other nodes using the Support Software Data link tables transferred to the Board will be recorded in the Board s EEPROM Initialization Open the application interface using the SlkOpen function Read and write data link data using the SlkRadDatalink and SIkWrite Datalink functions Sending receiv ing data link data The network participation status and data link oper ating status can be read using the SIKGetNetwork Status function Endi Close the application interface using naing the SlkClose function Note 1 Repeat the process to read write data link data as often as required by the application 2 Data links can be started and stopped from other nodes by sending FINS commands from Support Software by using PC software switches or by sending a FINS command from the application using the SlkSendFins func tion 3 Information on errors that occur in using the C library can be read using the SlkGetLastError function For details on various methods for making programs refer to the following re Sources Information on using the C library 3 2 Using the Library Details on C library functions Section 4 C Language Function Referenc
109. for the Board using this utility For details refer to Fins Gateway online help Hardware I 1 2 9 Compatible Computers Operating Systems and Libraries SYSMAC LINK Compatible computer Compatible Compatible Support Board operating system language All models IBM PC AT or compatible Windows 98 Microsoft Visual C CPU Intel Celeron 400 MHz or faster Windows 2000 Ver 6 0 Service Pack 3 Main memory 32 MB min Windows NT4 0 Service Pack 3 or One PCI bus slot must be available later Available hard disk space 70 Mbytes min not including space for user applications CD ROM drive Required for software installation Display VGA 640 x 480 pixels or better display functionality Other conditions conform to those of the OS Note 1 Operation of the SYSMAC LINK Board can be guaranteed only under the computer and operating system specifications outlined above Use a com puter and operating system that meet these minimum specifications 2 The SYSMAC LINK Support Board cannot be used in a computer running Windows 95 Windows NT3 51 or other older operating systems 1 3 Basic Procedures Initial Procedure Refer to the SYSMAC LINK Support Board Installation Guide for information on the first three steps in the following procedure Set the Board ID on the Board switch Install the Board into the computer Install the software Wire and connect the cables Perform the following data link
110. formation for SlkOpen An SLK handle is returned if the function ends normally SLK ERROR is returned if the function ends in an error Detailed error informa tion is stored in piRetErr Set a value between 1 and 15 for byAppUnitAdr Set 0 when it is not necessary to Set a specific application unit address An unused unit address will be automati cally allocated The function will end in an error if a SYSMAC LINK Support Board is not mounted Detailed error information ERR NO SLKUNIT No SLK Unit The function will end in an error if a handle cannot be obtained because of insuffi cient memory Detailed error information ERR NO MEMORY Memory ac quisition error The function will end in an error if the unit address specified in the argument is not between 0 and 15 Detailed error information ERR UNIT ADDRESS Unit address range error The unit address is different from the board ID on the Support Board It is not normally necessary to specify a unit address when sending a command from an application running on the computer and receiving a response Always specify the unit address when sending a command to the application from an application running on a computer or from a PLC at a different node Library Functions Section 4 1 4 1 2 SIkClose Function Call Format Arguments Return Value Description 4 1 3 SIkSendFins Function Call Format Arguments Return Value Description Board Close C
111. g each node s data link table using the SYSMAC LINK Support Software or the FinsGateway s SLK Data Link Setting Utility Data link tables are created to define the data links The configuration of the data links can be set freely with manual settings Data links can be set automatically from a Programming Device With auto matically set data links each node has the same sized send area Either the automatic or the manual setting method must be used throughout the network The two methods cannot be combined in the same network The follow ing rules apply to these two methods of setting data links 1 The data links in area 1 and area 2 can be used simultaneously 2 The settings starting words and send area size for areas 1 and 2 are com pletely independent The send receive order is the same for areas 1 and 2 3 It is not necessary for the Board to participate in the data links n Data area Data area Data area Data area i 1000 1010 1000 1005 gt 42 1010 1020 5 Zu 1015 5 5 1020 5 1030 ee 1035 ha 1039 1049 1054 Refresh parameters Refresh hg Refresh parameters Refresh parameters Unique to node Ces to node Unique to node Unique to node Common link parameters Common e Manually set data links when you want to create data links tailored to meet the requirements of your application Data links can be set in each node s SYS What Are Data Links Section 5
112. g level for C200HX HG HE PCs For a SYSMAC LINK Support Board the unit number is 16 less than the unit address i e the Commu nications Unit number 16 to 31 set for the Board in the FinsGateway set tings 2 The network address is the address of the network connected to the Unit between 1 and 127 The address is set when the local network table is created Relay Network Table A relay network table provides the node and network addresses corresponding to the initial relay point first point the data must go to en route to a target net work end network not directly connected to the local PC The table traces the route from the relay point to the end network Node address 2 Bae node Relay node Unit number 0 PC a PC b Node Node address 2 address ad node aa Destination 1 Unit num Node address 2 ber 1 Node ad dress 1 A Network address 1 Network Network d F _ 552_ __ address3 _ K End network Computer relay network table PC a relay network table PC b local network table End Relay Relay End Relay Relay Unit network network node network network node dress number 2 1 3 iu 3 2 2 2 0 EM 3 1 3 3 1 Data first goes to node Data then goes to node We know from the Data goes
113. g table Indicators Probable cause Probable remedy LNK Lit Data link operating normally 2 5 Flashing When manual setting was used there is an error Refer to 5 2 2 Manual Setting and reset the data slowly the data link table link table Flashing The data link table s communications cycle time Change the data link table s communications cycle quickly setting is too short time setting to automatic calculation or set a longer manual setting Not lit For manual setting there are no data link tables set Set data link tables for the local node for the local node For automatic setting the startup node is not set to Stop the data links delete the parameters in the participate in the data links startup node s DM Area and then restart the data link The SYSMAC LINK Support Board cannot become the start up node with automatic settings so set a PC in which a SYSMAC LINK Unit is mounted as the start up node For details refer to the SYSMAC LINK Units Operation Manual W202 W367 Data Links Cannot be The following explanation describes how to use the LNK indicator when the data Stopped links cannot be stopped Stopping the data links depends on the SYSMAC LINK Support Board operating normally and participating in the Network Read the above explanations before attempting to stop operation Note Stop the data link from the node at which the LNK indicator is flashing indicating active data links Data
114. ge Receive 0 eee e 4 1 5 SIkWriteDatalink Data Link Data Write costeo Ree ev xe 4 1 6 SlkReadDatalink Data Link Data Read seu RE ERG UE Ue em aee 4 1 7 SlkGetNetworkStatus Network Status Read ceeeeeeeeee RR RR nn 4 1 8 SlkSetMessageOnArrival FINS Message Reception Notification Registration to Window 4 1 9 SlkSetThreadMessageOnArrival FINS Message Reception Notification Registration to Thread 4 1 10 SlkClearMessageOnArrival FINS Message Reception Notification 1 4 1 11 SlkGetLastError Detailed Error Information Acquire 4 2 Structure Descriptions sesi ece ee ee Ep E ERE See be 4 2 1 SLKHEADER PSLKHEADER Structure 4 2 2 EMSLKADDRESS PEMSLKADDRESS 4 2 3 NSTBUFFER PNSTBUFFER Structure 4 3 Detailed Error 37 Library Functions 4 1 Functions Function name Library Functions This section describes the library functions for Microsoft Visual C version 6 0 Refer to Section 3 Creating Applications Using the C Library for details on using the library file Section Function SlkOpen Board Open Opens the application interface and gets
115. ges and that each number address is set only once 04 Not executable 01 An undefined command has been Check the command code and be sure used that the Unit supports it 02 Cannot process command because Check the unit model and version the specified unit model or version is wrong 05 Routing error 01 Destination node address is not set in Set the destination node address in the the routing table routing table 02 Routing table isn t registered Set the source nodes destination nodes and relay nodes in the routing table 03 Routing table error Set the routing table correctly 04 The maximum number of relay nodes Redesign the network or reconsider the 2 was exceeded in the command routing table to reduce the number of relay nodes in the command 80 Response Codes Section 6 4 Main code Sub code Probable cause Remedy 10 Command format 01 The command is longer than the max Check the command format of the error permissible length command and set it correctly 02 The command is shorter than min Check the command format of the permissible length command and set it correctly 03 The designated number of data items Check the number of items and the data differs from the actual number and make sure that they agree 04 An incorrect command format has Check the command format of the been used command and set it correctly 05 An incorrect h
116. he diagram 8 Insert the contact into the contact crimp adapter and set it in the Crimp Tool s die Slide the contact onto the central conductor until the contact touches the polyethylene core Squeeze the Crimp Tool s handle strongly to crimp the contact 9 Insert the completed contact subassembly into the body of the connector Push the contact into the connector until the flared part of the contact enters the connector s insulator so that the tip of the contact is about even with the tip of the insulator After the flared part of the contact has been inserted into the insulator do not rotate the connector body on the cable before crimping the connector body Connector body Contact subassembly 7 Insulator 10 Open the Crimp Tool s handle and place the connector into the Tool so that the tip of the connector touches the body stopper Close the handle until the rachet catches Align the connector body s hole with the hexagonal sides of the die If the connector has been crimped correctly it will look like the con nector on the right in the following diagram 7 Body stopper Crimp height Cable f Connector body Checking the Connector Check that the connector body has been crimped onto the cable correctly If the Installation connector body wasn t pushed up against the body stopper the middle of the connector body will be crimped as shown in the example on the right Correctly crimped Incorrectly cr
117. ifications at the node s power supply connectors and terminals 2 Power supply from the backup power supply is given priority Consider the following points when designing a system a Turn ON the backup power supply before turning ON the power supply to the PC and computer b The communications data will be corrupted in the instant when the back up power supply is turned ON or OFF C To make sure that the node bypass function is operating when the power supply to the PC or computer is OFF use a separate backup power sup ply that is not connected to the PC or computer d Always use a separate backup power supply Do not use the same sup ply as the I O power supply motor power cables or control power cables 29 Backup Power Supply Wiring Optical Systems Only Section 2 3 e Use a backup power supply with double or reinforced insulation 3 Use the correct power supply voltage as given above 2 3 2 Connecting the Backup Power Supply 30 Observe the following precautions when connecting the backup power supply e Separate the backup power supply wires from other power lines and high volt age lines to prevent noise e Attach special crimp terminals to the backup power supply wires Do not reverse the power supply polarity e Tighten the power supply cable hold down screws to 0 2 N m e Do not pull on the power supply cable e Do not bend the power supply cable too sharply e Do not place any objects
118. ils on the actual data area ranges 53 Setting Data Links Section 5 2 2 Refer to the CX Net Operation Manual for details on setting parameters with CX Net 3 Data link areas in the SYSMAC LINK Support Board are allocated in the FinsGateway event memory Refer to the FinsGateway online help for in formation on the area types and sizes in event memory 4 If you are using a C series SYSMAC LINK Unit with this Support Board a CS series SYSMAC LINK Unit or a CV series SYSMAC LINK Unit the ad dresses 1000 to 1063 correspond to the 64 words in the LR area LR 00 to LR 63 Set the data link words in the LR area of the C series PC 5 The data link words in the CIO or IR Area and the words in the DM Area are continuous 5 2 4 Automatic Setting Select All Use a PC Programming Device CX Net SYSMAC Support Software or Pro gramming Console to set the appropriate value in the system settings or DM parameter area of the startup PC The startup node is the node from which the data links are activated When auto matically setting data links data link operation is based on the values set in the startup node Startup node CPU Unit ALL UN P4 SYSMAC LINK IBM PC AT or J compatible Je 1 l SYSMAC DM parameter area Support Software Note 1 Parameters for automatically setting data links can only be set PCs Refer to the SYSMAC LINK Units
119. imped 22 Connecting Coaxial Systems Section 2 1 Check that the tip of the contact is even with the front edge of the connector body Connector body Use a multimeter to check for electrical continuity at the following points 1 2 3 1 There should be no continuity between the central conductor and wire mesh shield in the connector s plug shell 2 There should be continuity between the plug shells of the connectors at the ends of the cable 3 There should be continuity between the central conductors of the connec tors at the ends of the cable Note Install the coaxial cable separately from power lines and high voltage lines to prevent noise 23 Connecting Optical Systems H PCF Cable Section 2 2 2 2 Connecting Optical Systems H PCF Cable This section describes how to connect the communications cable to a 3G8F7 SLK11 SYSMAC LINK Support Board in an H PCF Cable Optical Sys tem 2 2 1 Devices Required for Connection The following devices are required for the Optical H PCF Cable SYSMAC LINK Network Optical Fiber Cables Use the following Optical Fiber Cables Hard Plastic clad Fiber H PCF Indoor Use Only Name Specifications Model H PCF cables Black 10m 3200 HCCB101 50m 3200 HCCB501 100 m 3200 HCCB102 500 m 3200 HCCB502 1 000 m 3200 HCCB103 Orange 10m 3200 HCCO101 50m 3200 HCCO501 100m 3200 HCCO102 500 m 3200 HCCO502 1 000 m 320
120. ion is operating normally check to see whether or not the data link is operating as intended i e check to see if the desired bits words data is being transferred to the intended words at other nodes Change the contents of a bit or word in a data link send area using a Program ming Device or the user program and check whether the change is reflected in data link areas of other nodes as intended The contents of the data link areas set on the local node for the SYSMAC LINK Support Board can be read and written using the memory monitor program of the FinsGateway For details refer to the FinsGateway online help 5 5 Data Link Performance When precise timing is required it will be necessary to know the time required for to send and receive data through data links and the exact timing when the data is exchanged Data Link Communications Cycle In a SYSMAC LINK network the data link service takes priority and the commu nications cycle time is fixed even if FINS message communications instructions such as SEND RECV and CMND are being used simultaneously Automatic Settings The standard values shown in the following tables are generated automatically and set Coaxial System Number of nodes Data link area in the data link CIO LR only DM only CIO LR and DM 2 nodes 17 ms 18 ms 19 ms 4 nodes 17 ms 18 ms 19 ms 8 nodes 18 ms 18 ms 19 ms 16 nodes 18 ms 19 ms 19 ms 60 Data Link Performance Section
121. ions l 2 Specifications and Configurations 1 2 1 System Configuration 0 00 eee eee eee ee 1 2 2 PCI Bus SYSMAC LINK Support Board 1 1 2 3 Communications Specifications 1 2 4 General Specifications ss scese cides piesa 122 5 DIMENSIONS priredi AE S DU E ERE 12226 Indicators eee Pee aro eae cei a Ora eg ote aed Lake 1 2 7 Product Components eee eee 1 2 8 Software Configuration 0 1 2 9 Compatible Computers Operating Systems and Libraries 1 3 Basie Procedures oide oc sbi onl REL i Saeed PA aS Ls els 1 4 Applications Precautions 5 Overview Section 1 1 1 1 Overview 1 1 1 What Is the SYSMAC LINK The SYSMAC LINK is an FA network that can send and receive large data pack ets flexibly and easily among advanced OMRON Programmable Controllers CS series C200HX HG HE series C series CVM1 and CV series PCs and IBM PC AT or compatible computers The SYSMAC LINK supports data links that continuously share certain ranges of data and a message service that can be used to send and receive specific data when required Data link areas can be freely set to create a flexible data link system and effectively use data areas The
122. k will be damaged 2 The data link table network parameters and routing table are stored in the SYSMAC LINK Support Board s EEPROM When the Board has been re placed make these settings again before starting operation The following procedure can be used to automatically set the network parame ters in EEPROM from other nodes operating on the network The data link tables will need to be reset from the FinsGateway s SLK Data Link Setting utility Handling Precautions Section 9 5 1 2 3 1 Turn OFF the power supply to the computer containing Board to be re placed 2 Detach the communications cables attached to the SYSMAC LINK Support Board to be replaced and remove the Board 3 Set the new SYSMAC LINK Support Board s ID switch to the same setting that was set on the previous Board 4 Mount the SYSMAC LINK Support Board in the expansion slot of the com puter and connect the communications cables 5 Turn ON the power supply to the computer where the Board was replaced and open the FinsGateway settings 6 Use the following procedure to set the Board as a polled node a Click the Basic Tab in the FinsGateway Settings b Click the Drivers Icon c Select SLK PCI and click the Properties Button d Select the Board to be set and click the Change Button e Click the Driver Tab in the SYSMAC LINK PCI Lists Dialog Box f Remove the check from the setting for the polling unit g Click the OK Button 7 Use the
123. loses the application interface and releases the SLK handle INT SlkClose PSLKHANDLE hSLK Variable name PSLKHANDLE The SLK handle obtained with SlkOpen SLK_SUCCESS is returned if the function ends normally SLK_ERROR is returned if the function ends in an error Detailed error informa tion can be obtained using SlkGetLastError If the application is ended without using SlkClose to close the application inter face the address specified for SIkKOpen cannot be used again Always execute SlkClose for all SLK handles obtained with SlkOpen before ending the ap plication FINS Message Send Sends a FINS message INT SlkSendFins PSLKHANDLE hSLK PSLKHEADER pHeader LPVOID DWORD dwSize Type Variable name Description PSLKHANDLE hSLK The SLK handle obtained with SlkOpen PSLKHEADER pHeader Pointer to the header information structure for the FINS message LPVOID lpMessage Pointer to the send buffer for the FINS message DWORD dwSize Size of FINS message send buffer SLK SUCCESS is returned if the function ends normally SLK ERROR is returned if the function ends in an error Detailed error informa tion can be obtained using SlkGetLastError Refer to 4 2 Structure Descriptions for information on the header information structure Store the FINS message in the FINS message send buffer from the command code MRC on The network specifications determine
124. mentation in this sense The abbreviation PC means Programmable Controller and is not used as an abbreviation for any thing else Visual Aids The following headings appear in the left column of the manual to help you locate different types of information Note Indicates information of particular interest for efficient and convenient operation of the product Reference Indicates supplementary information on related topics that may be of interest to the user 1 2 3 1 Indicates lists of one sort or another such as procedures checklists etc OMRON 2001 All rights reserved No part of this publication may be reproduced stored in a retrieval system or transmitted in any form or by any means mechanical electronic photocopying recording or otherwise without the prior written permis sion of OMRON No patent liability is assumed with respect to the use of the information contained herein Moreover because OMRON is constantly striving to improve its high quality products the information contained in this manual is subject to change without notice Every precaution has been taken in the preparation of this manual Nevertheless OMRON assumes no responsibility for errors or omissions Neither is any liability assumed for damages resulting from the use of the informa tion contained in this publication TABLE OF CONTENTS PRECAUTIONS tk e BR n be ee boa Intended Audience 2 ase Re ge Wesce Mex D Re ERE LR
125. mum frame length Correct the FINS command No exceeded cannot route format Also be sure that the parameters specified for the command do not produce a response that is too long 0203 EEPROM error 01 Read error 01 Data link Reset the relevant data If the Yes 02 Write error tables error occurs again replace the 02 Network SYSMAC LINK Support Board parameters 03 Routing tables 0206 Number of participating Network Number of Check network parameters No nodes decreased local node parameters non participatin node participation cables and still participating maximum node g nodes terminating resistance 0207 Number of participating address nodes decreased local node not participating 0208 polling node changed Address of Address of new Check previous polling node No previous polling node polling node 109 Error Log Section 9 3 Error Contents Detail code Correction Recorded code i Hex 1st byte Hex 2nd byte Hex EEPROM 0209 Network parameter 00 Address of Using the SYSMAC LINK Yes disagreement polling node Support Software check network parameters 020C Time out with token 00 Error status Check network parameters No See note 2 node participation cables and terminating resistance 0210 Communications controller 00 Replace the SYSMAC LINK Yes transmitter error Support Board 0211 Duplicate nod
126. mum number of nodes 62 nodes Applicable Programming Devices FinsGateway s SLK data link setting utility See note 2 Communications functions Data links and message service Number of data link words Transmission area per node 508 words max 254 words in the CIO LR Area and 254 words in the DM Area Number of data link words that can be used with one PCI Board total transmission 2 966 words max Data link areas FinsGateway Event Memory Message length 552 bytes max including the header RAS functions Polling node backup function Self diagnosis function hardware checking at startup Echoback test and broadcast test using FINS commands Watchdog timer Error log function Node bypass function Error control Manchester code check CRC check CCITT X16 X12 X5 1 Note 1 The maximum distance between nodes depends on the connector and cable processing methods 2 The Board s data link tables can be set using CX Net in CX Programmer Use the FinsGateway s SLK data link setting utility or the SYSMAC LINK Support Software Specifications and Configurations Coaxial System Items Specifications Coaxial Section Model 3G8F7 SLK21 Communications method N N token bus Code Manchester code Modulation Baseband code Synchronization Flag synchronization conforms to HDLC frames Transmission path form
127. ndow with a Windows message when a FINS message is received INT SlkSetMessageOnArrival PSLKHANDLE hSLK HWND hWnd UINT uMsg Type PSLKHANDLE Variable name hSLK Description The SLK handle obtained with SlkOpen HWND hWnd Window handle to receive event notification UINT uMsg Message to use for notification WM_USER to 0x7FFF SLK_SUCCESS is returned if the function ends normally SLK_ERROR is returned if the function ends in an error Detailed error informa tion can be obtained using SlkGetLastError Both SlkSetMessageOnArrival and SlkSetThreadMessageOnArrival cannot be registered at the same time Library Functions Section 4 1 The function will end in an error in the following cases Error cause Detailed error information A null pointer is specified for the window handle specified as the argument ERR_WINDOWHANDLE_PARA Window handle error An illegal value is specified for the window handle specified as the argument 67 Illegal window handle The message specified in the argument is over Ox7FFF ERR MESSAGE PARA Message type error A message has already been registered for FINS message reception 4 1 9 SlkSetThreadMessageOnArrival 69 Duplicated message registration error FINS Message Reception Notification Registration to Thread Function FINS message is received Call Format INT SlkSetThreadMessageOnArrival dwThreadld UINT uMsg
128. network is connected using either coaxial cable or optical fiber cable and high volume data transmissions at high speed allow construction of a wide range of networks from low level systems to highly complex systems Coaxial System C1000H SLK21 V1 CS1W SLK21 C200HW SLK21 CVM1 SLK21 IBM PC AT or IBM PC AT or SYSMAC LINK Unit SYSMAC LINK Unit SYSMAC LINK Unit SYSMAC LINK Unit compatible compatible C1000H or CS1 series CV series PC Twisted pair cable 3G8F5 SLK21 E 3G8F7 SLK21 E SYSMAC LINK SYSMAC LINK ISA Support Board PCI Support Board Optical System C200HW SLK13 44 CV500 SLKt1 C1000H SLK11 CS1W SLK11 IBM PC AT or SYSMAC LINK Unit SYSMAC LINK Unit SYSMAC LINK Unit SYSMAC LINK Unit CVMtor C1000H or CS seres i C2000H PC PC i H C200HX HG HE PC d CV series PC z F i i y 3G8F7 SLK11 E SYSMAC LINK PCI Support Board H PCF Optical Fiber Cable Daisy chain connection C1000H APSO01 Auxiliary Power Supply Units C200H APSOS3 Auxiliary Power Backup power Supply Unit upply 100 VAC Overview Section 1 1 The functions of a SYSMAC LINK Network are outlined below SYSMAC LINK Data link mm Manual settings Automatic settings Message service RAS functions Error log function I 1 Data link statu
129. nged using FinsGateway event memory settings The default areas and ranges are listed in the following table BDesgnsion Ram CIO Area CIO 0 to 32767 DM 0 to 32767 45 Structure Descriptions Section 4 2 4 2 3 NSTBUFFER PNSTBUFFER Structure This structure stores network status that has been read It is used by SIkGetNet workStatus Variable name Contents BYTE byConnectionMethod Specifies whether the system is a coaxial or optical system Bit 4 9 p i g Not specified Cable type 0 Coaxial 1 Optical BYTE byMyNodeAddr Local unit address Stores the local unit address set for the SYSMAC LINK Board BYTE byMyUnitAddr Always set to 0 BYTE byMyNetAddr Always set to 0 BYTE abyNodeList 32 Network participation status Stores a list of the nodes participating in the network Bit 3 Node Participation Information 0 Node 1 Reserved 3 i Node3 Node 2 T 2l Node 5 Node 4 oa 0 Not participating in network 30 Node 61 Node 60 1 Participating in network 81 Reserved Node62 0 Normal disconnection 1 Error disconnection when not participating 0 Normal 1 No response to polling WORD wComunicationCycleTime Communications cycle time Stores the current value of the communications cycle time unit 0 1 ms BYTE byPollingNodeAddr Polling node address Stores the node address of the current polling node BYTE byStatus1 Reserved area Contains unde
130. nly 2 3 1 Backup Power Supply Specifications 2 3 2 Connecting the Backup Power Supply 17 Connecting Coaxial Systems Section 2 1 2 1 Connecting Coaxial Systems This section describes how to connect the network communications cables to the Coaxial SYSMAC LINK Support Board 3G8F7 SLK21 2 1 1 Devices Required for Connection Coaxial Cable and BNC Use 5C 2V coaxial cable rated for indoor usage Connect BNC connectors to the Connectors coaxial cable in order to connect it to the nodes in the SYSMAC LINK network F type Adapter Use an F type Adapter to connect the coaxial cable to the Board An F type C1000H CE002 Adapter is included with the SLK21 Boards Terminator Install Terminators in the F type Adapters of the nodes at both ends of the net C1000H TERO1 work bus Two Terminators are required for each network and the Terminators are sold separately 2 1 2 Cable Connection Procedure Use the following procedure when connecting coaxial cables 1 2 3 1 Attach connectors to the coaxial cable 2 Connect the cables to the F type Adapters At this point install Terminators in the F type Adapters of the nodes at each end of the network bus When connecting or removing a connector hold the connector itself securely 3 Connect the F type Adapter to the Board Wire the Units Boards in order starting from one end of the network
131. nodes that are partici pating in the data link so that the data links will start even if the startup node is down The same data link mode must be set in these nodes Also the same data link settings must be set in these nodes when automatic settings are being used for the data links CS series Startup Node 15 14 13 12 11 109 8 7 6 54 3 2 1 0 Word N N DM 30000 100 x unit number 1 Data link Start Bit Start Changed from OFF to ON or set to ON when power is turned on Stop Changed from ON to OFF CV series Startup Node 15 14 13 12 11 109 8 7 6 5 4 3 2 1 0 Word N N DM 2000 100 x unit number t_ Data link Start Bit Start Changed from OFF to ON or set to ON when power is turned on Stop Changed from ON to OFF 5 3 2 Using Support Software Data links can be started or stopped using Support Software The node which is being instructed to stop must be participating in the data links 56 Starting and Stopping Data Links Section 5 3 Using a Computer Connected to a PC Node IBM PC AT or SYSMAC Support Software compatible or CX Net j Node in data links se Start stop data links Using a Computer Node with FinsGateway IBM PC AT or compatible FinsGateway Start stop specified directly to SYSMAC LINK Support Board 5 3 3 Using
132. o the leftmost connector SL2 Cable connects to connector SL1 Cable connects to connector SL2 3 Install the mounting bracket on the Board with the screws provided Insert the tip of the mounting bracket with the grooves into the hole on the Board surface until it locks firmly a and then secure the other end of the mounting bracket using the screw b Take care not to bend or pull the Optical Fiber Cable forcefully The cable was omitted from the diagram to make the connector more visible 4 Remove the Optical Connector Cover from the Board again If there are cov ers on the end connectors of the Optical Fiber Cable remove them 5 Double check the direction of the cables The cable from the node higher in the network connects to the Board s right connector and the cable to the node lower in the network connects to the Board s left connector Insert the cable s connectors fully into the Board s connectors e Insert the connectors completely and check that the connectors are locked be fore starting operation 27 Connecting Optical Systems H PCF Cable Section 2 2 e f a connector becomes disconnected the node will be unable to communicate with other nodes in that part of the network The network will be divided into two and communications with the remaining nodes will be unreliable Communications will continue unreliably with the remaining connected nodes
133. ode address Controller LINK 01 to 3E Hex 1 to 62 in decimal SYSMAC NET 01 to 7E Hex 1 to 126 in decimal SYSMAC LINK 01 to 3E Hex 1 to 62 in decimal A relay error indicates that the command did not reach the Unit to which it was sent There are two types of situation in which this can occur Example 1 below shows a situation in which a relay error occurs when data cannot be transferred from one Communications Unit to another in an interconnected network In Ex ample 2 the relay error occurs because either the specified destination node or the next relay node does not exist Response Codes Section 6 4 In the two diagrams the numbers indicate the following 1 The transmitted data fails to be received 2 The relay error and response code are returned to the command source Example 1 In this example data cannot be transferred between SYSMAC LINK Units due to some cause such as a routing table error Computer Controller Link Unit SYSMAC LINK Units CO LN ei SYSMAC LINK Support Board Transmission Response Example 2 In this example the specified destination node or the next relay node does not exist Computer Controller Link Unit SYSMAC LINK Units CO P T m n me SYSMAC LINK Support Board Transmission Response If an error occurs check the MRES and SRES codes for the node in question and correct the problem 6 4 3 Response Codes and T
134. of network parameter frames 1st byte bits 8 to 15 0105 Transmission failed node 2nd byte bits 0 to 7 Refer to the Installation Guide No address incorrect and check node address settings to be sure they are within range and unique 0106 Transmission failed Correct node addresses so No redundant node address that they are unique within the same Network 0107 Transmission failed Refer to 9 1 Troubleshooting No destination node not in Using Indicators and place Network destination node into Network 0108 Unit missing cannot execute Refer to the Installation Guide No and check the SYSMAC LINK unit number 0109 Transmission failed Increase number of retries or No destination busy reconfigure system to distribute load 010A Transmission failed Conduct an echoback test Yes communications controller if the effects of noise are error considerable reconsider the operating environment Restart the computer If the error occurs again replace the Board 010B CPU Unit error cannot send Refer to the manuals for the No CPU Unit and correct the problem If the problem cannot be corrected replace the CPU Unit 010C Unit number setting error Refer to the Installation Guide No cannot send and check node address settings to be sure they are within range and unique 108 Error Log Section 9 3 Error Contents Detail code Correction Recorded code i Hex 1st byte He
135. og pointer to 0 21 03 p CNET Command format Command Response format code 6 4 Response Codes This section describes the response codes returned with responses to FINS commands Response codes can be used to confirm normal completion of com mand execution or to troubleshoot problems when commands fail For further troubleshooting information refer to Section 9 Troubleshooting and Mainte nance of this manual and to the operation manuals for specific Units or Systems 77 Section 6 4 Response Codes 6 4 1 Configuration Response codes for FINS commands consist of two bytes that indicate the result of executing a command The structure of the response codes is shown in the following diagram First byte Second byte Bt 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 Main response code MRES Sub response code SRES beue da Relay Error Flag 1 PC Non fatal Error Flag 1 PC Fatal Error Flag roo The main response code MRES in the first byte classifies the response and the sub response code SRES in the second byte indicates details under the MRES classification If bit 7 of the first byte is ON a network relay error has occurred Refer to 6 4 2 Network Relay Errors for details on troubleshooting the error If bit 6 or 7 of the second byte is ON an error has occurred in the PC or computer returning the re
136. ommand CV DATA LINK START DATA LINK STOP Node in data links Data links be stopped the same way by sending the DATA LINK STOP FINS command The node receiving the FINS command must be participating in the data links in this case too 57 Checking Data Link Status Section 5 4 5 3 5 Data Link Timing Precautions When the data link table s communications cycle time is not being calculated au tomatically set a fixed communications cycle time that is long enough If the set ting is too short it will not be possible for 3G8F7 SLK11 21 SYSMAC LINK Support Boards and CS1 series SYSMAC LINK Units to participate in data links Furthermore the data links will not start if the communications cycle time setting is too short and a SYSMAC LINK PCI Support Board or CS1 series SYSMAC LINK Unit is being used as the startup node If a timing error such as the one above occurs the LNK indicator will be flashing quickly At the same time a data link communications cycle time setting error with error code 021D will be recorded in the error log Calculating the Minimum Communications Cycle Time Use the following equation to estimate the minimum communications cycle time Tmin that can be set TMIN Maximum node address x 0 01 Number of polled nodes x 0 25 Number of linked nodes x 0 161 Total number of data link area words x 0 01 5 322 ms The communications cycl
137. ommand format and set the max permissible length number of items correctly 0C An incorrect parameter code has been Check the command data and reenter it specified correctly Check the data link table file for corruption 81 Response Codes Section 6 4 Sub code Main code Probable cause Remedy 20 Read not possible 02 The data is protected Execute the instruction again after issuing the PROGRAM AREA PROTECT CLEAR command to the PC An attempt was made to download a file that is being uploaded Check the file name and either interrupt servicing or wait for servicing to complete before re executing the command 03 The registered table does not exist or is incorrect Set or reset the registered table Too many files open Close open files and re execute the command 04 The corresponding search data does not exist 05 A non existing program no has been specified Check the program number and be sure that it is set correctly 06 A non existing file has been specified Check whether the correct file name was used 07 A verification error has occurred Check whether the memory contents are correct and replace if incorrect Check the contents of the file A read error may have occurred 21 Write not possible 01 The specified area is read only or is write protected If the specified area is read only the write
138. ork address For SlkRecvFins the network address of the source of the FINS message is stored BYTE byNodeAddr Source destination node address For SlkSendFins set the destination node address For SlkRecvFins the node address of the source of the FINS message is stored BYTE byUnitAddr Source destination unit address For SlkSendFins set the destination unit address For SlkRecvFins the unit address of the source of the FINS message is stored INT nSid Service ID Any value can be set to identify the FINS message 1 to 255 See note For SlkRecvFins the SID of the received FINS message is stored Note When 1 is specified for the Service ID SID the SID is automatically increm ented and attached The SID value incremented within the function is retained within that one process only The incremented value is not managed on the net work handle or thread level 4 2 2 EMSLKADDRESS PEMSLKADDRESS Structure This structure stores heading information for a FINS message It is used by SlkWriteDatalink and SIkReadDatalink Type Variable name lpszMemName Contents Area type Specify the text string for the event memory area type set for the data link area dwWordOffset Number of offset words Set the number of words to offset from the beginning of the event memory area specified with IpszType The areas and ranges that can be accessed can be cha
139. ot the problem The Fatal data link error flag is ON There is an error in the data link table settings Refer to 5 2 Setting Data Links and correct the data link table settings After correcting the settings stop the application and restart the system The Communications controller transmitter error flag is ON The SYSMAC LINK Support Board is faulty Replace the SYSMAC LINK Support Board The Communications controller hardware error flag is ON The SYSMAC LINK Support Board is faulty Replace the SYSMAC LINK Support Board The Network parameter mismatch flag is ON The network parameters in EEPROM do not agree with those being used by the network Use the SYSMAC LINK Support Software to check the current parameters and correct the settings as required The Node address duplicated flag is ON The same node address has been set more than once Correct the node addresses so that each one is assigned to only one node The EEPROM write error flag is ON An error has occurred while writing data to the CPU Units EEPROM Check the status of bits 0 to 2 in the same byte and correct any problems found If the error recurs replace the SYSMAC LINK Support Board 105 Error Log Bit status Probable cause Section 9 3 Probable remedy The Routing table error flag is ON The routing table data within the CPU Unit s EE
140. pplications can be created using the C language Microsoft Visual Ver 6 0 An overview of how to use the C library is described later in this manual SYSMAC Compolet Version 2 provides ActiveX controls for PC communica tions User applications can be created more easily using Microsoft Visual Ba sic PLC Reporter 32 DataFlowNavi for Access and AIMAX FA are software packages of communications middleware These software packages must be purchased separately For details refer to the manual for the appropriate soft ware 1 1 5 Outline of PCI Bus SYSMAC LINK Support Board Functions Data Links SYSMAC LINK Support Board data link data is stored in the event memory in the computer Event memory is shared memory with names such as DM or CIO and is stored in the computer memory Event memory recreates virtually the DM Area and CIO Area of an OMRON PC Event memory can be written or read by executing the C library data link data read write functions SIkWriteDatalink and SlkReadDatalink from the user program Computer User application b SikWriteDatalink Ji SlKReadDatalink Event memory a FinsGateway Data link SYSMAC LINK Support Board SYSMAC LINK Network Overview Section 1 1 Message Service FINS commands and FINS responses can be sent and received for specified nodes on the network by executing FINS message send receive functions SlkSendFins and SlkRecvFins from the user program
141. r function program at a computer See note Mainly used for sending FINS commands and responses The FINS commands and responses enable various types of control and allow the status to be read Data is prepared according to a fixed format in the program and sent by executing SlkSendFins No special program is required at the receiving end if FINS commands and responses supported by the receiving Unit are used When sending data to the computer with a user program a program that can process the received data is required When a response to a command is returned a program for reading and analyzing the response is required Receiving Messages These library functions and driver call receive command response data SikRecvFins library Data received by the SYSMAC LINK Support Board is read function Mainly used for receiving FINS commands and responses The FINS commands and responses enable various types of control and allow the status to be read Data is received by executing S kRecvFins and it is analyzed by the program according to a fixed format A program is required for analyzing the data that is received A program is required for preparing and sending responses when commands requesting responses are received Note Using S kSendFins or SlkRecvFins to send the MEMORY AREA READ and MEMORY AREA WRITE FINS commands for PCs is equivalent to executing the SEND and RECV ladder diagram instructions 66 FINS
142. r supply status 0 Not being supplied 1 Being supplied 765 4 0 0 0 0 Status 3 response Indicates error information as follows Bit 2 1 0 1 Node address setting range error 1 Node address duplication error 1 Network parameter mismatch error 7 6 5 4 3 0 0 0 070 Note A network parameter mismatch error occurs if the registered network parameter contents do not match the actual network parameter con tents after the power is turned ON The system however will not stop When a network parameter mismatch error occurs the actual network parameter contents are automatically registered again Status 4 response Indicates the cause of a communications controller error as follows Bit 7 6 5 4 3 0 0 0 1 Local node loopback 1 T 1 Communications controller test error watchdog timer error 1 Communications controller 2 1 0 l 1 Communications controller transmitter error memory error 1 Communications controller chip error 71 Commands and Responses for the Support Board Section 6 3 Status 5 response Indicates the backup status as follows Bt 765432 1 0 000 1 EEPROM error 1 Network parameters error 1 Memory switch error 1 Data link table error 1 Routing table error Status 6 response Indicates error log information as follows Bit 7 6
143. response Specifies the number of records to be read within a range of 0001 to 0027 hexadecimal 1 to 39 decimal Max no of stored records response Specifies the maximum number of re cords that can be recorded within a range of 0001 to 0027 hexadecimal 1 to 39 decimal No of stored records response The number of records that have been re corded by the time the command is executed For the SYSMAC LINK Support Board this is fixed at 0027 Hex 39 decimal Error log data response The specified error log records are returned in se quence starting from the beginning record number The total number of bytes required is calculated as follows No of records x 10 bytes The configuration of each error record is as follows 1st byte 10th byte Pam Day Hour Year Month s Error code Details Minutes Second Error code details These parameters show the contents of errors For de tails refer to 9 3 2 Error Codes Date and time These parameters show the seconds minutes hour 0 to 23 date month and year the rightmost two digits in BCD specifying the time that the error occurred Note If the PC does not have the specified number of records the response will return all of the records that have been stored up to that point and the command will end normally 6 3 12 ERROR LOG CLEAR Command Block Response Block Clears all error log records and sets the error l
144. rk Bit 1 0 76543 2 ojojojojo o o Cyclic operation status 0 Stopped 1 Operating Cyclic transmission response Indicates the status of cyclic transmissions Bit 1 0 2 0 0 E Ojo 7 0 Cyclic transmission status 0 No transmission 1 Transmission Continuous cyclic error status response Indicates when continuous errors are occuring in cyclic transmission If an error continues to occur at the same node during cyclic transmission the corresponding bit is turned ON The config uration is shown in the following diagram Bt 7 65432 10 Byte1 7 6 5 4 3 2 1 The numbers in the boxes indicate the node Byte 2 15 1413 12 11 10 9 8 addresses The bit status of a particular node address shows whether or not there is Byte 3 23 22 21 20 19 18 17 16 a recurring data link error at that node Byte 4 31 30 29 28 27 26 25 24 0 No recurring cyclic error Byte 5 393837136 35 34 33 32 1 Recurring cyclic error Byte 6 47 46 45 44 43 42 41 40 Byte 7 55154 53 52 51 50 49 48 Byte 8 62 61 60 59 58 57 56 The 2 bits marked with a are always 0 Cyclic error counter response These bytes contain the total number of cy clic errors that occurred with each node node addresses 1 to 62 since the pow er was turned ON There is a one byte counter
145. ror has occurred Refer to the PC s operation manual and correct the error If the error occurs again replace the PC The Unit is mounted to a non compatible PC Mount onto the correct PC The Data Link Communications Error Status flag is ON The relevant node is not in the Network Enter the node in the Network A communications error has occurred as a result of noise Conduct an echoback test using the CX Net or other method If this does not correct the error check the usage environment A communications error has occurred Refer to 9 1 1 Using the RUN ERR and INS Indicators and troubleshoot accordingly The Data Link Participation Status flag is OFF The relevant node is not part of data links Enter the relevant node in data links If an error occurs refer to page 101 Node Cannot Participate in Data Link and troubleshoot accordingly There are no active data links in the Network Activate the data links Note The data link status can also be monitored with the FinsGateway s SLK Data Link Setting Utility Other Status Bit status Probable cause Probable remedy The Error log recorded flag is ON Error information on the SYSMAC LINK Support Board an error log has been recorded Using the SYSMAC LINK Support Software or an FINS command read the cause of the current error Alternatively use past error log records to troublesho
146. roubleshooting The table below lists response codes main and sub codes returned after execution of the FINS commands the probable cause of errors and recom mended remedies Upon receipt of some commands the destination node will issue a request to another node the other node is referred to as the third node Main code Probable cause 00 Normal completion Service was interrupted Check the contents of the destination transmission area of third node Check the data link status 79 Response Codes Section 6 4 Main code Sub code Probable cause Remedy 01 Source node error 01 Source node not part of Network Add to Network 02 Token time out node address too Set the source node s node address below large the maximum node address 03 Number of transmit retries exceeded Check communications with echoback test If the test fails check network 04 Maximum number of frames exceeded Either check the execution of events in the network and reduce the number of events occurring in one cycle or increase the maximum number of frames 05 Node address setting error range Correct the node address so that it is within specified range and that there are no node addresses that are set twice 06 Node address duplication error Make sure that there are no node addresses that are set twice 02 Destination node 01 Destin
147. routing table is being used delete the routing table settings There is an error in the data link table When using data links refer to 5 2 Setting Data Links and correct the tables When not using data links delete the tables EEPROM error Refer to 9 2 Status Information and Troubleshooting correct the data where the error has occurred and reset the Board If the error occurs again replace the SYSMAC LINK Support Board Lit za Not lit Cables are not connected correctly Check the cable connections and reconnect correctly 021A Hex network parameters The node address is larger than the maximum node address set for the Either reset the maximum node address using the SYSMAC LINK Support Software or reset the node address to below the maximum No other nodes exist Make sure that 2 or more nodes exist within the Network No node has been set as a polling node Refer to Installation Guide and set at least one polling node A SYSMAC LINK Support Board should normally be set as the polling node 9 1 2 Troubleshooting with the LNK Indicators Data Link Cannot be Started Indicators LNK The following table describes the LNK indicators at the startup node and their use in troubleshooting when a data link cannot be started Starting a data link depends on the SYSMAC LINK Support Board operating nor mally and participating in the Network Refer to
148. s backup power supply coaxial system communications data link general message service optical system standard models coaxial cables connectors F type Adapters optical fiber cables SYSMAC LINK Support Boards SYSMAC LINK Units terminators SYSMAC LINK communications cycles parameters timing network interconnections SYSMAC LINK Driver SYSMAC LINK Support Board access modes configuration 122 connections definition FINS commands for ISA Bus for PCI Bus indicators models replacing standard models SYSMAC LINK Unit DIP switch starting and stopping data links standard models SYSMAC Support Software starting and stopping data links system configuration T W token cycle troubleshooting status information using indicators LNK RUN ERR amp INS using SlkGetNetworkStatus wiring Revision History A manual revision code appears as a suffix to the catalog number on the front cover of the manual Cat No W390 E1 1 Revision code The following table outlines the changes made to the manual during each revision Page numbers refer to the previous version Revision code Date Revised content March 2001 Original production 123 omron Authorized Distributor Ne S Cat No W390 E1 1 Note Specifications subject to change without notice Printed in Japan
149. s display I Polling node backup Node bypass function See note Note Optical System only 1 1 2 Features The SYSMAC LINK FA Network has the following features to meet the various requirements of FA sites Data Links Flexible and efficient data links can be created to automatically transfer large amounts of data as listed below Hem Specifications Number of send words 508 words max 254 words max in the CIO LR Area per node and 254 words max in the DM Area Number of send and Coaxial or Optical SYSMAC LINK PCI Support Board receive words per node 2 966 words max Data links can be configured automatically or they can be configured by the user to freely change the sizes of the data areas used A data link can also receive only part of the data sent from another node This function enables nodes to re ceive only the required data thereby increasing data link efficiency Message Service The message service can send and receive up to 552 bytes of data including the FINS header allowing large volumes of data to be sent and received without having to be split up Coaxial Cable or Optical Fiber Cable Connection The SYSMAC LINK Units can be connected to the network using either coaxial cable or optical fiber cables Optical fiber cable H PCF cable has superior noise resistance so the system can provide highly reliable communications even in very noisy conditions With H PCF ca
150. sepze ek DES Ed epTS ERU UMS 3 2 Setting Data Links voye censi be UR ev bo oe es 5 3 Starting and Stopping Data Links 8 5 5 4 Checking Data Link Status cso iios es ge e Se REED EE REDE 5 5 Data Link Performance seres misce ea e er hg ep ER Ege 5 6 Data Link I O Response Time seseeeeeeeee SECTION 6 Message Servi ot Peers Ga ei Gali Introductions op he Bide Saag arb tara REPE 6 2 FINS Command Response Format 6 3 Commands and Responses for the Support 6 4 Response Codes es mec ead ae Be IE E a CRSA SER Re ee d SECTION 7 Network Interconnections 7 1 What is Network Interconnection 7 2 Routing Tables oeste Rex rr 7 3 Setting Routing Tables oos Ie a ee p ea ees vii TABLE OF CONTENTS SECTION 8 Communications Timing 8 1 Network Parameters siheri ue pie reaa EE A EA E eer mh m hn 8 2 Message Service Delay Times EEE BEA SECTION 9 Troubleshooting and Maintenance 9 1 Troubleshooting Using Indicators 85 5 9 2 Status Information and Troubleshooting 9 3 segu EC Ear ec C ROS RR EA Sah ae RE
151. sponse Refer to the operation manual for the device returning the response for details when troubleshooting the error 6 4 2 Network Relay Errors Relay Errors 78 Bit First word Second word Third word A network relay error will occur whenever a command cannot reach the destina tion These errors can occur for several reasons 1 Data was not successfully passed between two Link Units 2 Data was not passed successfully between a Link Unit and another Unit such as the PC s CPU Unit or 3 The destination of a gateway does not exist In any case the Unit that was not able to transfer data will return a response indicating a network relay error Bit 7 of the first byte of the response code will be ON if a network relay error has occurred When this happens two more bytes of data will follow the response code to indicate the location of the error This information along with the re sponse code should enable you to track the error First byte Second byte Command code 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 Main response code MRES Sub response code SRES pesgi Relay Error Flag 1 PC Non fatal Error Flag t 1 PC Fatal Error Flag 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 Error network address Error node address Error network address 00 to 7F Hex 0 to 127 in decimal Error n
152. t Tools and then Options 2 Select the Directory Tab set the directory being displayed to the one for the library files click the first empty row in the list and then click the Button at the left of the row 3 Specify the folder in which the C library for the Support Board was installed and click the OK Button The installation directory in the header file default for the C library is Pro gram FilesNOMRONNSYSMAC LINK ib 4 Open the workspace for the program being created and select Project and then Set 5 Select the Link Tab and input the library file name SLK LIB LIB for the ob ject library module Refer to the user s manual for Visual or online help for information on Visual other than that for setting up the install file and library file Note There are sample programs provided as Visual C V6 0 projects that use the C library for the Board They can be found in the SYSMAC LINK Sample directory using the installation directory specified during the installation procedure 35 SECTION 4 C Language Function Reference This section gives details on the C library functions supported by the SYSMAC LINK Support Board 4 Library Functions 0 0 0 0 cece cence beeen n 4 1 1 SlkOpenQ Board Open haces id he ia BG 4 1 2 SlkClose Board Close 4 1 3 SlkSendFins FINS Message Send a xe le ig be 4 1 4 SlkRecvFins FINS Messa
153. t request of the SYSMAC LINK Support Board so that it does not conflict with other resources 15 Applications Precautions Section 1 4 Note Refer to the SYSMAC LINK PCI Support Board Installation Guide W389 e If using the SEND CMND instructions with a PC on which the rout ing tables have been set be sure to specify the network address set in the rout ing tables Coaxial SYSMAC LINK Units Boards cannot be combined with Optical SYS MAC LINK Units Boards in the same network e SYSMAC LINK Units Boards cannot be combined with Controller Link Units Boards in the same network 16 SECTION 2 Wiring This section describes how to wire the power supply cables and communications cables to the SYSMAC LINK Support Board 2 1 Connecting Coaxial Systems smire stiene eor ea 2 1 1 Devices Required for Connection 2 1 2 Cable Connection Procedure 2 1 3 Attaching the Connector to the 2 1 4 Attaching Connectors to the Coaxial 2 2 Connecting Optical Systems H PCF 2 2 1 Devices Required for Connection 2 2 2 Wiring the Optical Fiber Cables 0 00 eee eee eee eee 2 2 3 Installing Connectors 2 2 eee ene 2 3 Backup Power Supply Wiring Optical Systems O
154. tatus response Each node s data link status is returned as shown in the fol lowing diagram The status is the same as the data link status monitored with the 74 Commands and Responses for the Support Board Section 6 3 FinsGateway s SLK Data Link Setting Utility as described in 5 4 2 Data Link Sta tus Area Bit 76543210 Data link status for each node Byte 1 Node 2 Node 1 Byte 2 Node 4 Node 3 x Zz Byte3 Node 6 Node 5 PC operating mode cA x 0 PROGRAM Byte 31 Node 62 Node 12 1 RUN or MONITOR als PC error 0 Normal 1 PC stopped due to an error Communications error 0 Normal 1 Communications error or not in network Data link operation for each node 0 Stopped 1 Operating Note 1 The data link status is not refreshed while the data links are stopped 2 Communications errors will be indicated for nodes which are not active in the network or not participating in the data links 3 When a communications error occurs in a node that node retains the most recent status information it received for the other nodes in the network 4 Only the PC operating status and PC error information will be reflected for nodes which are participating in the network but are not participating in the data links 6 3 8 ECHOBACK TEST Executes an echoback communications test between specified nodes Command Block 08 01 512 bytes max Comman
155. termined data BYTE byStatus2 Indicates the backup power supply s status when using an optical system Bit 7T amp b 4 3 2 E 0 DO O Optical System 0 Backup power not being supplied 1 Backup power being supplied BYTE byStatus3 Error information 1 Stores information such as node address setting errors T B E 4 3d gt i D SE sn Not specified T Li Node address setting error Node address duplicated Network parameter mismatch Communications controller hardware error 1 1 T 1 BYTE byStatus4 Reserved area Contains undetermined data 46 Structure Descriptions BYTE Variable name byStatus5 Section 4 2 Contents Error information 2 Stores information such as EEPROM write errors setting table errors etc Bit B4 32 a i 1 EEPROM write error 1 Network parameter error 1 Data link table error 1 Routing table error BYTE byStatus6 Reserved area Contains undetermined data BYTE byStatusFlag Data link operation status and data link mode Stores the data link operation status data link mode etc Bit y Ba t3 D Not specified Current Data Link Mode 0 User set links 1 Automatic Data Link Operating Status 0 Stopped 1 Running BYTE abyDataLinkStatus 62 Data link status Stores the data link status Data is stored for the nodes in the same order that the nodes are registered in the
156. that can be executed in one communications cycle such as the SEND RECV and CMND instructions echoback tests and remote moni toring will be overly restricted during data link operation and may end in er rors 3 If the number of polled nodes setting is too small it will take too long for a node to join the network when a Unit is reset or the PC s power is turned ON 5 6 Data Link I O Response Time 62 When the SYSMAC LINK Support Board s data link function is being used there is a time delay from the time the data link area of one node is changed until this Data Link I O Response Time Section 5 6 change is reflected in the data link area at another node This time delay is called the data link I O response time 5 6 1 Computer to PC In the following diagram illustrating the maximum data link I O response time a CS series PC is used for the PC node 2 and the PC s cycle time is greater than or equal to the communications cycle time Computer at node 1 User application SlkWriteDatalink Send processing FinsGateway 0 x 1 PC at node 2 1 2 3 Note mq Late Communications cycle time Data link transmissions EE VO refresh x i E Data exchange Program execution ____ Output ON delay Hie Output device __ die 1 cycle Data link I O response time There are two points shown in the diagram above where processing is delayed 1
157. the I O table again 04 Too many I O points Redesign the system to remain within permissible limits 05 CPU bus error An error occurred Check the Unit Service Boards and cable during data transfer between the CPU connections and issue the ERROR CLEAR Unit and a CPU Bus Unit command 06 I O duplication error A rack number Check the system s settings and eliminate unit number or I O word allocation any settings that occur twice has been duplicated 07 I O bus error An error occurred during Check the Unit Service Boards and cable data transfer between the CPU Unit connections and issue the ERROR CLEAR and an I O Unit command 09 SYSMAC BUS 2 error An error Check the Unit Service Boards and cable occurred during SYSMAC BUS 2 data connections and issue the ERROR CLEAR transfer command 0A Special I O Unit error An error Check the Unit Service Boards and cable occurred during CPU Bus Unit data connections and issue the ERROR CLEAR transfer command OD Duplication in SYSMAC BUS word Check and regenerate the I O table allocation OF A memory error has occurred in If the error occurred in internal memory or internal memory in the Memory Card the EM Unit correct the data in the or in Expansion DM during the error command an execute it again check If the error occurred in a Memory Card or EM used for file memory the file data has been corrupted Execute the MEMORY CARD FORMAT command for the PC If the above
158. the SYSMAC LINK Unit s DIP Switch C Series Units Only Data links can be started turning with the Start Bit on the DIP switch on the front of a C series SYSMAC LINK Unit The data links will start when the Start Bit is turned from OFF to ON or is already ON when power is turned ON The data links will stop when the Start Bit is turned from ON to OFF Note 1 Refer to the SYSMAC LINK Units Operation Manual W202 W367 for de tails on starting and stopping data links using the Unit s DIP switch 2 If the DIP switch s Start Bit can be turned ON in advance so that the data links will start as soon as the power is turned ON We recommend turning ON the Start Bits in multiple nodes that are partici pating in the data link so that the data links will start even if the startup node is down The same data link mode must be set in these nodes Also the same data link settings must be set in these nodes when automatic settings are being used for the data links 5 3 4 Using FINS Commands Data links can be started and stopped by sending the DATA LINK START and DATA LINK STOP FINS commands from a node on the SYSMAC LINK to a node that is in the data links Sending FINS Commands from a Computer Node IBM PC AT or FINS command compatible DATA LINK START DATA LINK STOP Node in data links Issuing the FINS Command from a CV series or CS series PC FINS c
159. the network Bit 3 Node Participation Information 0 Node 1 Reserved I 1 5 1 i Node3 Node 2 aT pj _ Node 5 Node 4 Y 3c 3 0 Not participating in network 1 Participating in network 30 Node 61 Node 60 81 Reserved Node 62 0 Normal disconnection 1 Error disconnection when not participating 0 Normal 1 No response to polling WORD wComunicationCycleTime Communications cycle time Stores the current value of the communications cycle time unit 0 1 ms BYTE byPollingNodeAddr Polling node address Stores the node address of the current polling node BYTE byStatus1 Reserved area Stores undetermined data BYTE byStatus2 For Optical Systems this byte stores the power supply status Bit amp B d 3 g 0 oojo 0100 od ka u Optical System 0 No backup power supply 1 Backup power being supplied BYTE byStatus3 Error information 1 Stores information such as whether or not there is an error log recorded node address setting errors etc n T a 4 Li 1 Error log recorded 1 Node address setting error 1 Fatal data link error 1 Node address duplicated 1 Communications controller 1 Network parameter mismatch transmitter error 1 Communications controller hardware error BYTE byStatus4 Reserved area Stores undetermined data BYTE byStatus5 Error information 2 Stores information such as EEPROM write errors setting table errors etc Bit 44 a k 1 EEPROM write error 1 Network par
160. to node address 3 at network address 2 at network ad local network table address 2 at network address 1 to reach dress 2 to reach network that the data goes address 3 i e the network address 3 address 3 through local unit local network number 1 to reach network address 3 7 3 Setting Routing Tables 90 This section describes routing table settings Routing tables are set through the FinsGateway Controller Link Support Soft ware CX Net or SYSMAC LINK Support Software This section describes set ting procedures and setting details For specific procedures see the FinsGateway online help SYSMAC LINK Sup port Software Operation Manual W308 CX Programmer User s Manual Setting Routing Tables Section 7 3 7 3 1 Example Routing Table Settings Example 1 Example 2 This section shows examples of routing table settings for a SYSMAC LINK Sup port Board The example below shows local network table settings when a SYSMAC LINK Support Board is mounted to a computer Computer Unit number b SYSMAC LINK Network address A Local Network Table N Loc SIOU 0 Netwk unit 1 A b The following example show the settings for a relay network table connecting three networks Network address A Network address B Network address C Node address c Node address f PC5 Node address g Relay Network Ta
161. umidity outside the range specified in the specifications Locations subject to condensation as the result of severe changes in tempera ture Locations subject to corrosive or flammable gases e Locations subject to dust especially iron dust or salts e Locations subject to exposure to water oil or chemicals e Locations subject to shock or vibration Take appropriate and sufficient countermeasures when installing systems in the following locations Locations subject to static electricity or other forms of noise e Locations subject to strong electromagnetic fields Locations subject to possible exposure to radioactivity Locations close to power supplies The operating environment of the SYSMAC LINK PCI Support Board or the computer can have a large effect on the longevity and reliability of the system Improper operating environments can lead to malfunction failure and other un foreseeable problems with the SYSMAC LINK PCI Support Board or the com puter Be sure that the operating environment is within the specified conditions at installation and remains within the specified conditions during the life of the sys tem xiii Application Precautions 5 xiv Application Precautions Note NWARNING N Caution Observe the following precautions when using the SYSMAC LINK PCI Support Board or the computer into which it is installed Refer also to 1 4 Application Precautions for further information an
162. ure to read this manual before attempting to use the software and keep this manual close at hand for reference during operation It is extremely important that a SYSMAC LINK PCI Support Board and all related devices be used for the specified purpose and under the specified conditions especially in applications that can directly or indirectly affect human life You must consult with your OMRON representative before applying a SYSMAC LINK PCI Support Board to the above mentioned applications Safety Precautions NWARNING NWARNING NWARNING Never attempt to disassemble any SYSMAC LINK PCI Support Board while power is being supplied Doing so may result in serious electrical shock or electrocution Never touch any of the terminals while power is being supplied Doing so may result in serious electrical shock or electrocution Provide safety measures in external circuits i e not in the Programmable Controller CPU Unit including associated Units referred to as PC in order to ensure safety in the system if an abnormality occurs due to malfunction of the PC or another external factor affecting the PC operation Not doing so may result in serious accidents e Emergency stop circuits interlock circuits limit circuits and similar safety measures must be provided in external control circuits e The PC will turn OFF all outputs when its self diagnosis function detects any error or when a severe failure alarm FALS instruction is
163. utomatically set data links but it cannot be the starting unit 6 3 3 DATA LINK STOP Stops the SYSMAC LINK Network s data links Command Block 04 02 MEE Command code 69 Commands and Responses for the Support Board Section 6 3 Response Block 04 02 Command Response code code The DATA LINK STOP command can be received only while the data link is ac tive An error will occur if this command is sent at any other time This command can be received by any node that is participating in the data link 6 3 4 CONTROLLER DATA READ Reads the SYSMAC LINK Support Board s model version connection type shared RAM size and node address data Command Block 05 01 No f Command code Response Block 05 01 20 bytes 20 bytes Command Response Model Version code code Connection type Node and Shared address RAM size Parameters Model version response The SYSMAC LINK Support Board s model and version are returned as shown below each 20 characters in ASCII If fewer than 20 bytes of data are used the remaining bytes will be packed with spaces ASCII code 20 Hex In the version numbers shown below the spaces are represented by boxes 0 Model 3G8F7 SLK21 Coaxial 3G8F7 SLK11 Optical Version V1 00L1V1 00 The first V1 00 represents the Communications Controller s version number and the second represents the Support Bo
164. vent frames allowed 10 5 to 255 Number of polled nodes 4 1 to 62 If the result of the following formula is positive the communications cycle time will be reduced If the result is negative the communications cycle time will be increased The units are ms and fractions are rounded off Coaxial System Change ms Old max node address new max node address x 0 085 Old no of event frames new no of event frames x 0 654 Old no of polled nodes new no of polled nodes x 0 75 Optical System Change ms Old max node address new max node address 0 1115 Old no of event frames new no of event frames x 0 77 Old no of polled nodes new no of polled nodes x 0 75 Example Calculations The example calculations are based on the following changes to the network pa rameters Maximum node address 62 16 Number of event frames 10 13 Number of polled nodes 4 gt 5 Coaxial System Change ms 62 16 0 085 10 13 x 0 654 4 5 x 0 75 1 198 ms gt 1ms Optical System Change ms 62 16 x 0 1115 10 13 x 0 77 4 5 x 0 75 2 069 ms 2ms 1 If there are any nodes in the network with node addresses higher than the maximum node address set in the network parameters those nodes will be unable to join the network or communicate through the network 2 If the number of event frames setting is too small the FINS message com munications
165. x 2nd byte Hex EEPROM 010D Transmission failed Command block Check routing tables destination address incorrect Bits O to 7 010E Transmission failed routing S curd Mer addres tables not registered Source Network address 010F Transmission failed routing Bit 15 table error OFF 0110 Transmission failed too block Check routing tables and many relay points its 0 to System configuration Do not Destination node address try to access Networks Bits 8 to 14 separated by more than one Destination Network address other Network Bit 15 0111 Transmission failed ON Be sure to use the correct command packet too long 1st byte bits 8 to 15 FINS command format 0112 Transmission failed header 2nd byte bits 0 to 7 error 0113 I O setting error cannot Correct either the system send configuration or the registered I O tables 0114 CPU bus error cannot send Check the Board and cable connections and clear the error 0115 I O duplication cannot send Check the unit numbers to be sure the same number is not set twice in the same PC 0116 CPU Bus Unit error cannot Check the Board and cable send connections and clear the error 0117 Internal buffer full Increase number of retries or reconfigure system to distribute load 0118 Illegal packet discarded Check for nodes sending Yes illegal data 0124 Maxi
166. y Optical 3G8F7 SLK11 E PCl Embedded Edition Version 3 SYSMAC LINK Support Boards for ISA Bus Applicable Connection type Model number computer IBM PC AT or Coaxial 3G8F5 SLK21 E compatible SYSMAC LINK Units Applicable PC Connection type Model number Remarks CV series PCs Coaxial CV500 SLK21 CV500 SLK11 C200HX HG HE Coaxial C200HW SLK23 24 PCs C1000H C2000H Coaxial C1000H SLK21 V PCs Optical C1000H SLK11 CS1 series PCs Coaxial CS1W SLK21 Optical CS1W SLK11 Specified Coaxial Cable and Accessories Model number Manufacturer Coaxial cable 5C 2V F type Adapter C1000H CE002 Terminator C1000H TERO1 Connectors and Tools for Optical Fiber Cable Nam Model Remarks Optical S3200 COCF2011 Connects a cable to a node Two Connector connectors are required for each cable Full lock connector for crimp cut cable S3200 COCF2511 Connects a cable to a node Two connectors are required for each cable Half lock connector for crimp cut cable S3200 COIAT2000 Connects two cables One adapter is required to connect two cables Optical Fiber S3200 CAK1062 For the S3200 COCF2011 2511 Connectors Assembly Tool Optical Power S3200 CAT2700 53200 2702 Head Unit Tester For the S3200 COCF2011 2511 Connectors Master Fiber 53200 2001 For the S3200 COCF2011 2511 Connectors Set 1

Download Pdf Manuals

image

Related Search

3G8F7 SLK21 E

Related Contents

  Sierra Wireless PC3320 User's Manual  A-2 - Modellismo Fioroni  inipr01 - infi90.com  Guía del usuario Silicon Graphics® Zx10 Visual Workstation  User Manual  LabWindows/CVI Version 5.0 Release Notes for Windows  LES CONSULTATIONS POÉTIQUES 28.05.2015 à la Gare Cornavin  NP726 UG - Netcomm  GPS avec écran panoramique : la gamme s`élargit  

Copyright © All rights reserved.
Failed to retrieve file