Home
V201-E1-1 - Products
Contents
1. Reading status Clearing errors Reading the error history Clearing the error history Reads data from a SYSMAC Board memory area Writes data into a SYSMAC Board memory area Note A special driver is not required to use the SYSMAC Board Use either FinsGateway for Windows 95 or FinsGateway for Windows NT sold separately when using Windows 95 or Windows NT Communications The following diagram illustrates communications between the SYSMAC Board and the computer using pcread as an example User application pcread PLC communications library Computer Command Specified memory sent n Shared memory Response Y Processing by SYSMAC Board SYSMAC reading from the specified area Board 1 2 3 1 The pcread function from the PLC communications library is executed in the user application on the computer to send a command to the SYSMAC Board via shared memory 2 The SYSMAC Board processes the command and returns a response to the computer via shared memory to store the results of the command in the memory location specified in the pcread function Note 1 The PLC communications library is created using Microsoft C C Ver 7 Refer to Section 3 PLC Communications Library for details 23 Differences from Standard PLCs Section 1 9 2 The SYSMAC Board does not use hardware interrupts 1 9 Differences from Standard PLCs C
2. Note Slaves with 16 points use 2 node addresses Slaves with 4 points use 8 bits start ing from the rightmost bit Communications Distance Using VCTF Cable Main line Drop line length Total drop line length 100 m max 3 m max 50 m max Using Flat Cable Main line Drop line length Total drop line length 30 m max 3 m max 30 m max If 16 Slaves or less are connected the main line length is 100 m max and the total drop line length is 50 m max Remote I O Communications l O Allocations for Slaves are allocated I O using remote I O allocations as shown in the following IN 0 to 7 OUT 0 to 7 diagram Special I O Unit Area in Master PLC First word IR 100 Unit No 0 Slave Allocations in IR Area IR 110 Unit No 1 IR 120 UnitNo 2 15 14131211109 876543 2 1 0 Bit IR 130 Unit No 3 IR140 UnitNo 4 n Output IR 150 Unit No 5 Bit 7 Output Slave 4 bits IR 160 Unit No 6 acs Unit No 7 First word 3 Bit 7 Output Slave 7 o Bit 7 Output Slave 6 0 IR 180 Unit No 8 First word 4 Bit 7 Input Slave 1 0 Bit 7 Input Slave 0 0 IR190 Unit No 9 Fistword 5 Bit 7 Input Slave 3__ y First word 6 IR 400 Unit No A First word 0 Bit 7 Input Slave 6 0 es IR 410 E No B First word 8 Bee Communications Error a Bit 7 ouput Stave Partcipaton raso IR 420 Unit No C Input Slave Communications Error Flags i Status ISA12 SRM E First word 9 Bit 7 Bit 7 Input Sieve Participation Flags 0 SYSMAC Boards R 0 U
3. User application program IBM PC AT or using C language library de Tpcopen i peread Js Programming Device Note The following functions are supported CHANGE SETTINGS PLC OPEN PLC CLOSE PLC MODE PLC STA TUS PLC READ PLC WRITE Flat Cable Shared memory Tool Bus TE Ladder logic program RS 232C Mm CompoBus S D sub 9 pin Expansion Option Board 1 0 i cane connector Lmemoy PLC CompoBus S functions functions 32 Slaves max IN 16 Slaves OUT 16 Slaves C200HX HG HE Expansion I O Rack Programmable Terminal or other external device C200PC ISA02 SRM E 2 Racks max C200PC ISA12 SRM E 3 Racks max Personal Computer The following environment is required for the SYSMAC Board System Requirements Specification Personal computer IBM PC AT or compatible computer OS Microsoft C C Ver 7 0 must be running Hard disk drive 2 Mbytes of space must be available Floppy disk drive Must be able to read 1 44 Mbyte 3 5 floppy disk Package Contents Section 1 4 1 4 Package Contents Confirm the contents of the package as soon as you open it to be sure everything is included and in proper condition SYSMAC Boards SYSMAC Board C language library on 3 5 floppy disk SYSMAC Board Operation Manual this manual Connector attached to the SYSMAC Board C200PC ISALJ2 DR
4. DOS V 120 MHz and C200PC ISA02 SRM E pcread MONITOR Average time per call ms AR LR Timer PV 28 64 1 128 word words MONITOR MONITOR MONITOR Average time per call ms Counter PV Timer Flag Counter Flag DM Extended DM 1 word 128 words 1 word 128 words 1 word 128 words 128 words 1 word 128 words MONITOR 94 MONITOR Measurement Results Section 4 2 pewrite MONITOR Average time per call ms AR LR Timer PV 28 64 1 128 word words MONITOR MONITOR MONITOR Average time per call ms Counter PV DM Extended DM 1 128 word words 128 words 1 128 word words MONITOR MONITOR DOS V 120 MHz and C200PC ISA12 SRM E pcread MONITOR Average time per call ms AR LR Timer PV 28 64 1 128 word words MONITOR MONITOR MONITOR Average time per call ms Counter PV Timer Flag Counter Flag DM Extended DM 1 128 word words 1 128 word words 1 128 word words 128 words 1 128 word words MONITOR MONITOR MONITOR Memory model
5. 47 2 3 5 CompoBus D Communications DIP Switch C200PC ISAL 2 DRM E 47 2 3 6 CompoBus S Unit Number Switch C200PC ISAL 2 SRM E 48 2 3 7 CompoBus S Communications DIP Switch C200PC ISAL 12 DRM E 49 2 4 Support Board Installation o ooooocoococoooooonorr eee 49 2 5 External Connections ss crop rar Pave ge APES Den OM RN Rad y as 52 2 5 1 C200HX HG HE Expansion I O Racks 0 0 eee eee 53 2 5 2 Connecting CompoBus D Communications Cables C200PC ISAL 12 DRM E 53 2 5 3 Connecting CompoBus S Communications Cables C200PC ISAL 2 SRM E 56 2 5 4 Connecting the SYSMAC Board s RS 232C Port With No Expansion Option Board 0 0 0 0 eee eee eee 58 2 5 5 Connecting the Expansion Option Board s RS 232C Port and Peripheral Port 59 2 6 Required Piles it tee ee eas WS pee RUNE Dan UERBO NL ee Be RD 59 33 Setup Confirmations Section 2 1 2 1 Setup Confirmations Confirm the following items before starting to set up or install the SYSMAC Board 2 1 1 Confirming Available Resources O Ports Memory Addresses Note One of the following ranges of I O ports is used on the computer by the SYSMAC Board Confirm that one of these is available for use by the SYSMAC Board If none of these I O ports are available reset another resource so that one of the ranges can be used by the SYSMAC Board 0370 to 0374 0380 to 0384 0390 to 0394 03AO0 to 0344 One of the range
6. An attempt was made to write data to a memory area when the SYSMAC Board was in RUN mode Change the SYSMAC Board to PROGRAM or MONITOR mode and then execute the function again Illegal parameters are detected return value 5 There was a mistake in the parameters given to the PLC communications library Check the values ranges and text stings for the functions and then execute the functions again after correcting the bad parameter The PLC communications library is not open return value 1 and the PLC communications library cannot be used pcopen has not been executed yet Or pcclose has been executed Execute pcopen before executing any other functions except pcinit The PLC communications library is already open return value 2 102 An attempt was made to open the PLC communications library when it was already open Do not execute pcopen when the PLC communications library is already open Appendix A Replacing the Battery The SYSMAC Board contains a battery that backs up memory data when power is turned off If the voltage of the battery drops HR area bits DM area words the PC Setup and other data will not be maintained properly Change the battery as soon as the voltage begins to drop The SYSMAC Board contains the following battery OMRON Battery Set C200H BAT09 N WARNING Never touch the Board or the interior of any other Unit or attempt to disassemble a Unit whil
7. Average time per call ms Counter PV Timer Flag 1 128 word words 1 128 word words MONITOR MONITOR pewrite MONITOR Average time per call ms AR LR Timer PV 28 64 1 128 word words MONITOR MONITOR 95 Measurement Results MONITOR Average time per call ms Section 4 2 Counter PV Extended DM EM 0 1 128 word words 1 128 word words 1 128 word words MONITOR MONITOR DOS V 400 MHz and C200PC ISA01 E pcread MONITOR Average time per call ms AR LR Timer PV 28 64 1 128 word words MONITOR MONITOR MONITOR Average time per call ms Counter PV Timer Flag Counter Flag DM Extended DM 1 128 word words 1 128 word words 1 128 word words 128 words 1 128 word words MONITOR MONITOR pewrite MONITOR Memory model Average time per call ms AR LR Timer PV 28 64 1 128 word words MONITOR MONITOR MONITOR Memory model Average time per call ms Counter PV DM Extended DM 1 128 word words 128 word
8. With 5 slot Backplane With 8 slot Backplane With 10 slot Backplane Word allocations begin from the leftmost slot on the first Expansion I O Rack beginning with IR 010 and continuing one word per slot through the end of the Rack Words are allocated on the second and third Expansion I O Rack in the same way but they begin with IR 020 for the second Rack and IR 300 IR Area 2 for the third Rack I O Units that required less than 16 I O bits are allocated only the number of bits they require beginning from bit 00 Any bits not allocated to real I O can be used as work bits in programming The SYSMAC Board corresponds to the CPU Rack but because it provides no I O connections the words that would normally be allocated to it i e IR 000 to IR 009 can be used as work bits Word allocations to Special I O Units are the same as for the C200HX CPU64 E and C200HG CPU43 E Refer to the C200HX HG HE ZE Programmable Controllers Operation Manual W322 for more details on memory allocation 1 6 CompoBus D Master Function Note The C200PC ISALJ2 DRM E SYSMAC Board with CompoBus D is equipped with essentially the same remote I O functionality as a C200HW DRMe21 EV1 CompoBus D Master Unit I O can therefore be conducted with Slaves without special programming in the SYSMAC Board This manual does not provide detailed information on CompoBus D functions Refer to the CompoBus D DeviceNet Operation Manual W267 for details
9. 15 CompoBus D Master Function Section 1 6 Maximum I O Capacity and Maximum Number of Slaves The following table shows the maximum number of I O points and Slaves that can be connected to the SYSMAC Board Max No of I O points Without a CompoBus D Configurator 1 600 points 50 input 50 output words With a CompoBus D Configurator Without message communications 4 800 points With message communications 1 600 points Max No of Slaves Baud Rate and Communications Distance 50 Slaves node addresses 0 to 49 63 Slaves node addresses 0 to 62 The communications distance in a CompoBus D Network is restricted by the baud rate as shown in the following table Baud rate Maximum network length Drop line Total drop Thick Cable 100 m max Thin Cable 100 m max 250 m max 500 m max length line length 39 m max 78 m max 156 m max Remote I O Communications Fixed Allocations Note User set Allocations 16 Remote I O communications enable automatic transfer of I O data between Slaves and the SYSMAC Board without any special programming To achieve this each Slave is allocated words in the l O memory of the CPU Unit Words are allocated as described next Unless a Configurator is used to change the I O allocations words in the CPU Unit are allocated in order of CompoBus D node addresses starting from node 00 The words ar
10. 92H p Characters nH unsigned char vall 4 val2 4 unsigned char far pl p2 vall 0 7 0x37 val1 1 8 0x38 vall 2 9 0x39 val1 3 A 0x41 val2 0 B 0x41 val2 1 C 0x43 val2 2 D 0x44 val2 3 E 0x45 pl unsigned char far vall p2 unsigned char far val2 pewrite S2H pl p2 Character Array SnH unsigned char val 8 unsigned char far p val 0 7 0x37 val 1 val 2 9 0x39 val 3 val 4 B 0x42 val 5 val 6 D 0x44 val 7 8 0x38 A 0x41 C 0x43 E 0x45 85 Library Functions Section 3 2 86 p unsigned char far val perrita 2 992H p 3 O type Octal Format Data to write to SYSMAC Board 12345670 Numerals Y n0O unsigned int vall val2 unsigned int far pl p2 vall 01234 pewritedl op 0920 7 51 7p2 Character Array SnO unsigned char val 8 unsigned char far p val 0 1 0x31 val 1 val 2 3 0x33 val 3 val 4 5 0x35 val 5 val 6 7 0x37 val 7 p unsigned char far val 4 A type ASCII Format Data to write to SYSMAC Board 51525354 Characters nA unsigned char val 4 unsigned char far p val 0 0 0x51 val 1 val 2 S 0x53 val 3 p unsigned char far val pewrite og 592A U D s Character Array SnA unsig
11. E a L Error code Detail code uuu IRE AES dd eee yte yte yte yte yte yte 2 bytes 2 bytes Sec Min Hour Day Month Year e Error code hex The second byte classifies the error as follows 80 Fatal error 00 Non fatal error The first byte provides the error code as follows Library Functions Section 3 2 Classification Fatal error CO to C2y I O bus error E0y I O setting error Ely Too many I O Units FOH No END Fly Memory error 01 to 99y System error FALS 9Fy Non fatal error BO to B1y Remote I O error DOy Special I O error E7y I O verification error F7y Battery error F8y Cycle time over 01 to 99y System error FAL 8Au 8Bp 9A to 9Dy Detail Code Not used always zeros Seconds Minutes Hour Day The time and date the error occurred is stored in BCD 2 bytes each Month Year Not used always zeros Note The error history is stored in SYSMAC Board memory in DM 6000 to MD 6030 as follows DM 6000 Error history pointer DM 6001 to DM 6030 Error history records Each record is stored in three words as follows 15 B7 E Bit DMn Error class Error code DM n 1 Minutes Seconds DM n 2 Day Hour The values in AR 18 and AR 19 are used for the seconds minutes hour and day Clearing the Error History When mcma is set to 3 the error history in the SYSMAC Board is cleared Set ch and val to 0 pcstat Will end normally even if there are no re
12. Blocks can be positioned in any order in memory e g the following order is possible Input block 1 output block 2 input block 2 output block 1 CPU Unit pane Address r Output area 14 i Output i j E e a Address To Slaves Output L Address block 2 Addresses can be Address assigned in any order m Input area Input Address block 1 i Input Address From Slaves block 2 Address Address Message Communications The C200PC ISAL12 DRM E SYSMAC Board also supports message commu nications Message communications can be used to send messages between CompoBus D masters and slaves either those manufactured by OMRON or by other manufacturers Messages can be sent based on execution conditions to achieve the following Data transfers reading writing clocks or error logs force setting resetting bits etc Messages are implemented for the SYSMAC Board by sending FINS com mands or explicit DeviceNet messages using ladder diagram instructions IOWR 223 Software Switches and Status Area CPU Unit Special I O Unit Area in IR Area IR 100 IR 190 IR 400 IR 450 DM 6032 DM 6034 DM 6062 The software switches and Status Area are allocated in IR words according to the Master Unit s unit number as shown in the following diagram Unit No O Unit No 9 Unit No A Unit
13. If however a C200PC EXP01 Expansion Option Board is connected its RS 232C port which is equivalent to the RS 232C port of a C200HX or C200HG PLC can be used When the Expansion Option Board s RS 232C port is used the SYSMAC Board s RS 232C port cannot be used The SYSMAC Board will always start up in PROGRAM mode To execute the user program you must switch to RUN mode either from a Programming Device or by executing pcmode from a user application on the computer The SYSMAC Board will maintain HR area AR area CNT area DM area EM area and time data when the power supply is turned off The operating mode however must be changed to PROGRAM mode before turning off the power to ensure that data area contents are saved correctly Before turning off the power supply you must switch to PROGRAM mode either from a Programming Device or by executing pcmode from a user application on the computer Specifications Section 1 10 1 10 Specifications 1 10 1 General Specifications Item Specifications Power supply voltage 4 875 to 5 25 VDC Power consumption 0 5 A max 0 8 A max if the Programming Console is connected to the C200PC EXP01 Expansion Option Board Vibration resistance JIS C0911 conforming 10 to 57 Hz 0 075 mm amplitude 57 to 150 Hz see note 2 acceleration 1 G in X Y and Z directions for 80 minutes each sweep time 8 min x 10 sweeps 80 min When mounted on DIN track 2 to 55 Hz 0 3 G in X Y and Z
14. Section 5 N Caution e Locations subject to corrosive or flammable gases e Locations subject to dust especially iron dust or salts e Locations subject to shock or vibration e Locations subject to exposure to water oil or chemicals e Take appropriate and sufficient countermeasures when installing systems in the following locations e Locations subject to static electricity or other forms of noise e Locations subject to strong electromagnetic fields e Locations subject to possible exposure to radioactivity e Locations close to power supplies The operating environment of the PLC System can have a large effect on the longevity and reliability of the system Improper operating environments can lead to malfunction failure and other unforeseeable problems with the PLC System Be sure that the operating environment is within the specified condi tions at installation and remains within the specified conditions during the life of the system 5 Application Precautions N WARNING N Caution Observe the following precautions when using the SYSMAC Board Failure to abide by the following precaution could lead to serious or possibly fatal injury Always heed this precaution e Always ground the system to 100 or less when installing the system to pro tect against electrical shock Failure to abide by the following precautions could lead to faulty operation of the SYSMAC Board or the system Always heed these precaution
15. 3 0x33 val 3 4 0x34 val 4 5 0x35 val 5 6 0x36 val 6 7 0x37 val 7 0 0x30 4 A type ASCII Code Format Read data 51525354 Characters nA unsigned char vall 4 unsigned char far p p unsigned char far val poread k SL py Results vall 0 Q 0x51 vall 1 R 0x52 vall 2 S 0x53 vall 3 T 0x54 Character Array SnA unsigned char val 4 unsigned char far p p unsigned char far val peteadi s 82A p Results val 0 Q 0x51 val 1 R 0x52 val 2 S 0x53 val 3 T 0x54 Library Functions Section 3 2 Return Values Meaning Exampl Rea extern extern extern extern defin defin void Ended normally Communications have not been opened execution not possible Illegal parameter Ended in an error response error Communications timeout no response within 10 s e KOKCKCKCKCKCKCkCk kCk Ck kCk Ck k k ck kckck ck kck ck kok ck ckck kc kok e ke e x kx f ding from a SYSMAC Board Memory Area XKOKCKCKCKCkCKCkCk kCk ck k k Ck k kc k kckck ck kck ck kck ck ckok ck kk ke ke x x unsigned int pcinit unsigned int pcopen unsigned int pcclose unsigned int pcread e INT SIZE2 EE D e CHANEL 3 Channel main void int ret unsigned char sub 80 unsigned char far subp unsigned int buf CHANEL INT SIZE
16. Communications not established No communications yet 1 ON Participated in communications Will not change once turned ON All bits are automatically cleared when the power is turned ON again or the Slave is restarted Input Slave Participation Flags These flags show whether the communications have been established for each Input Slave Input Slaves 0 to 15 in one bit for each Slave 0 OFF Communications not established No communications yet 1 ON Participated in communications Will not change once turned ON All bits are automatically cleared when the power is turned ON again or the Slave is restarted Output Slave Communications Error Flags These flags show the communications status of each Output Slave Output Slaves 0 to 15 using one bit for each Slave 0 OFF Communications are normal or have not been established 1 ON Communications have been released communications error All bits are automatically cleared when the power is turned ON again or the Slave is restarted Input Slave Communications Error Flags These flags show the communications status of each Input Slave Input Slaves 0 to 15 in one bit for each Slave O OFF Communications are normal or have not been established 1 ON Communications have been released communications error All bits are automatically cleared when the power is turned ON again or the Slave is restarted At CompoBus S startup inputs from Input Slaves and outpu
17. d An ret exit printf The error history will be cleared from the SYSMAC Board Anin switch pcstat ne no mcmd dmyp dmyp case 0 printf Error history successfully cleared n break case 1 printf Communications not open n break case 5 printf Illegal parameter n break case 7 printf Error n break case 10 printf PLC communications timed out Wn break 75 Library Functions Section 3 2 pcclose Library closed pcread PLC READ Purpose Reads data from memory areas on the SYSMAC Board Format unsigned int pcread ne no sub format val val unsigned char ne unsigned char no unsigned char far sub format unsigned int far val or unsigned char far val va1 can be omitted and parameters in brackets can be input more than once Parameters ne Remote network address This parameter is not used set it to O no Remote node address This parameter is not used set it to O sub format The sub format val Response storage buffer Parameter IN OUT Setting Integer Not used set to 0 Integer Not used set to 0 sub format Text string Refer to the Description val Integer text Refer to the Description string Description pcread is used to read data from the memory areas of the SYSMAC Board Data is read in word units and up to 128 words can be read at once Setsub fo
18. 1 10 6 RS 232C Port Cable Specifications 0 0 eee ee ee 28 1 10 7 Expansion Option Board 0 0c eee eee eee 29 1 11 Setup Procedures emi eR a at la ee Ae eee ee bathe ROUES 30 Features Section 1 1 1 1 Features A Programmable Controller within a Personal Computer Programmed Like a C200HX HG PLC Control with C Language Library Connect Up To Three Expansion I O Racks Standard 16 or 32 K Word EEPROM Serial Communications with Expansion Option Boards Use C200HX HG HE Special I O Units A SYSMAC Board is an ISA bus compatible board that provides functionality equivalent to a SYSMAC C200HG or C200HX PLC It is installed as an expan sion board in an IBM PC AT or compatible computer The features of the SYS MAC Board are described next The SYSMAC Board is a fully functional PLC that operates within a personal computer It is functionally equivalent to the SYSMAC C200HG CPUA43 E or C200HX CPU64 E PLC The equivalent PLC depends on the type of SYSMAC Board used A Programming Device can be connected to the RS 232C port on the Board to program it the same as a C200HX or C200HG PLC Programming Devices can be connected to either the RS 232C port or the peripheral port when an Expan sion Option Board is used A C language library for the SYSMAC Board can be used in user applications running on the computer to read write Board memory monitor Board status and control Board operation In this
19. 3 words unsigned int far bufp unsigned char ne 0 unsigned char no 0 unsigned char port addr 1 I O port base address 0370 unsigned char dpram addr 7 DPRAM base address D4000 bufp unsigned int far amp buf 0 0 ret pcinit port addr dpram addr SYSMAC Board addresses set if ret 0 printf PLC setting error Return value d An ret exit printf ret din ret pcopen if ret 0 printf Error opening library Return value d An ret exit Setting sub format D 0 3 S3H subp unsigned char far amp sub 0 strcpy sub Q8D 0 3 53H printf Memory Area Read n printf Data will be read from an SYSMAC Board memory area n n printf The specified read command is s n sub Reading memory area switch pcread ne no subp bufp case 0 printf Read was successful n printf The data that was read is as follows n t for i Oly a xco3 GE printf 0x 04x bufp break case 1 81 Library Functions Section 3 2 cwrite Purpose Format Parameters Description 82 Communications not open n Illegal parameter Nn ErrorNn y PLC communications timed out n Note PLC WRITE Writes data to memory areas on the SYSMAC Board unsigned int pcwrite ne no sub format val val unsigned
20. At the time of expansion to decimal overflow portions will be ignored The write data is stored in an array vari able Four bytes of data will become a single word two bytes of data Thus it will be necessary to specify a character array variable val which has n x 4 arrays The variable val type will be character for unsigned char far Regards write data as characters and expands it to hexadecimal for writing At the time of expansion to decimal overflow portions will be ignored Specifications regarding are the same as for Snl Regards write data as characters and expands it to octal for writing At the time of expansion to octal overflow portions will be ignored Specifications regarding are the same as for Snl Regards the write data as ASCII and writes it without alteration The write data is stored in an array variable Two bytes of data will become a single word two bytes of data Thus it will be necessary to specify a character array variable val which has a data area of n x 2 bytes The variable val type will be character for unsigned char far Note Communications must be opened with the SYSMAC Board before pcwrite can be executed Conversion Examples Examples are given below according to the various storage formats of convert ing data that has been read 1 2 3 1 I type Decimal Format Data to write to SYSMAC Board 12345678 Numerals 9enl unsigned int vall val2 unsigned int fa
21. C200PC ISA02 DRM E C200PC ISA12 SRM E C200PC ISA02 SRM E Host Link Units 2 Units max PLC Link Units 2 Units max SYSMAC BUS Remote I O Master Units Note 1 2 Units max Group 2 B7A Interface Units 10 Units max see note 2 Group 2 High density I O Units 10 Units max 16 Units max see note 2 see note 2 Other Special I O Units 10 Units max 16 Units max CompoBus D Master Units Note 3 CompoBus S Master Units Note 4 High speed Counter Units Position Control Units ASCII Units Analog I O Units ID Sensor Units Fuzzy Logic Units Temperature Control Units Cam Positioner Units Temperature Sensor Units Voice Units Note 1 If the SYSMAC Board uses fixed allocations for CompoBus D Master func tion or the CompoBus D Master Unit the words allocated in memory will overlap with the area used for remote I O so the SYSMAC BUS Remote I O Master Unit cannot be used at the same time 2 The Group 2 B7A Interface Units and Group 2 High density I O Units are available in 32 point or 64 point models Since 64 point models are allo cated the words for two 32 point models the maximum number of 64 point models that can be mounted is half the number of 32 point models 3 The maximum number of CompoBus D Master Units that can be mounted includes the SYSMAC Board s CompoBus D Master function If the SYSMAC Board uses fixed allocations for the CompoBus D Master function and CompoBus D Master Unit
22. C200PC ISA12 DRM E C200PC ISA12 SRM E Read write 6 144 words EM 0000 to EM 6143 x 3 banks Power failure Holds HR AR CNT and DM EM and clock RTC contents backup function The above data may not be saved correctly if power is turned off when the SYSMAC Board is not in PROGRAM mode Memory backup The battery service life is five years at 25 C The service life will be shortened if the battery is used time at higher temperatures Replace the battery within one week after the battery alarm indicator starts blinking When replacing the battery install the new battery within 5 minutes after removing the old one Refer to page 103 Self diagnostic CPU errors watchdog timer I O verification errors host link errors memory errors battery errors function 1 O bus errors etc Program check Carries out program checks at the beginning of operation for items such as no END 01 instruction function instruction errors and so on Program can also be checked from Programming Device three checking levels are available 26 Specifications Section 1 10 1 10 3 CompoBus D Communications Specifications CompoBus D communications specifications conform to the DeviceNet specifi Note cation Item Specification 500 kbps 250 kbps or 125 kbps switchable Baud rate Communications distances 500 kbps Network length Drop line length Total drop line length 100 m ma
23. Installation Guide W302 for information on troubleshooting other PLC problems and to the CompoBus D Operation Manual W267 for CompoBus D problems 101 Troubleshooting Problem Communications time out return value 5 and the PLC communications library cannot be used Probable cause The same I O port addresses or shared memory address are being used by another device Section 5 Possible correction Use addresses that are not being used by another device Change the DIP switch setting of the I O port base address first before declaring it with the pcinit function The l O port base address in the pcinit function is not the same as the one set on the DIP switch Change either the setting of the DIP switch or the I O port base address declared with the pcinit function so that both use the same address The PLC communications library is open return value 9 and the I O port base address and the shared memory base address cannot be changed pcclose has not been executed since the PLC communications library was opened The addresses can be changed only when the PLC communications library is closed Execute pcclose and then set the addresses with the pcinit function A response error occurs return value 7 and a normal response cannot be received An attempt was made to clear an error when the SYSMAC Board was not in PROGRAM mode An attempt was made to clear an error in RUN mode
24. printf PLC communications timed out n break pcclose 88 SECTION 4 Read Write Performance This section shows the average times required to execute the pcread andpcwrite functions under various conditions as a characteristic of the SYSMAC Board 4 1 4 2 Measurement Program au A RE eee tes VN CREAR EROR CER Measurement Results secre ee eter eR ERE RE UE ERE PE 4 2 1 4 2 2 Measurement Conditions eee ru n Results 90 92 92 92 89 Measurement Program Section 4 1 4 1 Program include lt stdio h gt include lt time h gt void main void r main pcinit 2 5 r main w main void r_main void unsigned char unsigned int unsigned int time_t unsigned char rc pcopen Measurement Program This section describes the program used to measure read and write execution times The read times will vary for the computer being used and the operating environment it is used under Use the following program as a reference to write a program for your computer to confirm execution times The following program executes the read and write 10 000 times to find the aver age read write time for the following Reading 1 AR word Reading 128 AR words e Writing 1 AR word e Writing 128 AR words The areas and numbers of words are indicated in the following program in the lines with the Measured word specification comments Change these lines to the required
25. switch pcopen Communications opened 65 Library Functions Section 3 2 case 0 printf Opened communicationsin break case 2 printf Already openin break Case 10 printf PLC communications timed out n break pcclose Communications closed pcclose PLC CLOSE Purpose Ends communications with the SYSMAC Board Format unsigned int pcclose Parameters None Description pcclose is used to end communications with the SYSMAC Board Commu nications will not be possible after pcclose is executed Always execute pcclose before turning off or resetting the computer Communications are opened with pcopen Once communications have been closed with pcclose they can then be reopened with pcopen Return valise Vaie Meaning 0 Ended normally 1 Communications have not been opened execution not possible Example Refer to the example for pcopen cmode PLC MODE Purpose Changes the operating mode of the SYSMAC Board Note Change the operating mode of the SYSMAC Board only after con firming that no adverse effects will result Format unsigned int pcmode ne no mode unsigned char ne unsigned char no unsigned char mode Parameters ne Remote network address This parameter is not used set it to 0 no Remote node address This parameter is not used set it to O mode SYSMAC Board operating mode IN OUT Setting Integer Not used se
26. 0x0 02x val il jl printf Mn else printf There are no records in the error history n printf Mn break case 1 printf Communications not open Nn break case 5 printf Illegal parameter n break case 7 Library Functions Section 3 2 printf ErrorMn break case 10 printf PLC communications timed out n break pcclose Library closed Clearing the Error History mcmd 3 ROR KR KKK kCkck kokck ckokok kokoke ke ke ke ke ke e x x x x Clearing the Error History ROR KKK ECkCk kk k kokck kokok ke koe ke ke ke ke ke e x x x x extern unsigned int pcinit extern unsigned int pcopen extern unsigned int pcclose extern unsigned int pcstat void main void int ret i j unsigned char dmy Dummy unsigned char far dmyp unsigned char ne 0 Network address unsigned char no 0 Node address unsigned int mcmd 3 Main command Clear error history unsigned char port addr 1 I O port base address 0370 unsigned char dpram addr 7 DPRAM base address D4000 dmyp unsigned char far amp dmy ret pcinit port addr dpram addr SYSMAC Board addresses set if ret 0 printf PLC setting error Return value d Wn ret exit ret pcopen Library opened if ret 0 printf Error opening library Return value
27. 2nd 1 0 Connecting Cable C200H CN311 711 221 521 131 Expansion I O Rack 3rd Expansion is possible only with the 200PC ISA12 DRM SRM Up to three Expansion I O Racks can be connected If only one or two Expansion I O Racks are connected the lower left connector on the last Expansion I O Rack must be covered with a protective cap Note 1 Always turn off the power supply to the computer all peripheral devices and the Expansion I O Racks when connecting or disconnecting the I O Con necting Cable 2 The total length of I O Connecting Cable must be 12 m max 3 Be careful not to connect the wrong connectors 4 Always secure the l O Connecting Cable connectors with the lock screws Precautions The following precautions must be followed when connecting Expansion l O Racks e Do not place the I O Connecting Cables in the same ducts are I O line and power supply lines Connect the I O Connecting Cables properly into the connectors of the Expan sion I O Rack or SYSMAC Board and secure them with the lock screw If an I O Connecting Cable disconnects and l O bus error will occur and operation will stop e A hole diameter of 53 mm is normally required to pass the I O Connecting Cable through This can be reduced to 33 mm by removing the connector cover but be sure to replace the cover properly and tighten the cover screws e The tensile strength of the cable is 50 N Do not pull or allow the cables to be pull at a force greate
28. 3306 twisted pair nominal cross section 0 75 mm 2 signal wires Flat Cable 0 75 mm x 4 2 signal wires 2 power lines Communications VCTF Cable Main line Drop lines Total drop distance line 100m max 3 m max 50 m max each Flat Cable Main line Drop lines Total drop line 30 m max 3 m max 30 m max each Maximum I O points 64 inputs 64 outputs 128 inputs 128 outputs No of connectable node IN 0 to 7 OUT 0 to 7 IN 0 to 15 OUT 0 to 15 addresses Communications cycle 0 5 ms 0 8 ms Note If Flat Cables are used when a maximum of 16 Slaves are connected the maxi mum main line length will be 100 m and a maximum total drop line length will be 50 m 1 10 5 Board Specifications I O port addresses 3X0H to 3X4H The base address is set to one of the following hexadecimal values via the SYSMAC Board DIP switch 0370 0380 0390 or 03A0 default 03A0 Memory addresses 8 Kbytes required The base address is set to between 0C8000 and OE5FFF hexadecimal using an I O port register default 0C8000 hexadecimal 1 10 6 RS 232C Port Cable Specifications 1 3 2 1 OV 2 RXD 3 TXD 28 Specifications Section 1 10 The connections for the RS 232C port are shown below SYSMAC Board Personal computer Signal Pin Signal Shield 2 RD RXD 3 SD TXO 5 5G T R amp 8 CS 9 pin connector 1 10 7 Expansion Option Board Communicatio
29. DM Extended DM 1 128 word words 128 words 1 128 word words MONITOR MONITOR 98 Measurement Results Section 4 2 DOS V 400 MHz and C200PC ISA12 SRM E pcread Memory model MONITOR Average time per call ms AR LR Timer PV 28 64 1 128 word words MONITOR MONITOR MONITOR Average time per call ms Counter PV Timer Flag Counter Flag DM Extended DM 1 128 word words 1 128 word words 1 128 word words 128 words 1 128 word words MONITOR MONITOR Memory model MONITOR Average time per call ms Counter PV Timer Flag 1 128 word words 1 128 word words MONITOR MONITOR pewrite MONITOR Average time per call ms AR LR Timer PV 28 64 1 128 word words MONITOR MONITOR MONITOR Average time per call ms Counter PV Extended DM EM 0 1 128 word words 1 128 word words 1 128 word words MONITOR MONITOR 99 SECTION 5 Troubleshooting This section provides a table of problems that can occur with the SYSMAC Board along with possible corrections Refer to the C200HX HG HE E ZE
30. Dummy unsigned char far dmyp unsigned char ne 0 Network address unsigned char no 0 Node address unsigned int mcmd 1 Main command Error clear unsigned char port_addr 1 1 0 port base address 0370 unsigned char dpram_addr 7 DPRAM base address D4000 val 0 valp unsigned char far amp val dmyp unsigned char far amp dmy ret pcinit port_addr dpram_addr SYSMAC Board addresses set if ret 0 printf PLC setting error Return value d Wn ret exit ret pcopen Library opened if ret 0 printf Error opening library Return value d An ret exit printf Error will be cleared from SYSMAC Board n n printf Specify the FAL No n val switch pcstat ne no mcmd dmyp valp case 0 printf Error cleared n break case 1 printf Communications not open n break case 5 printf Illegal parameter n break case 7 printf Error n break case 10 printf PLC communications timed out n break pcclose Library closed 73 Library Functions Section 3 2 Rea k extern extern extern extern void record 74 Reading Error History Contents memd 2 RRA RRA ck kok ck kok ck ke ke x RARAS ding the Error History XCKCKkCkck ckokck ck kok ck kok ck ko ke x ke e x e x x f unsi
31. Interprets read data as octal and stores it as numerals Data that cannot be interpreted as octal will be regarded as 0 Specifications regarding val are the same as for nl Interprets read data as decimal and stores it as numerals Data that cannot be interpreted as decimal will be regarded as 0 Read data will be stored in array variable val If two or more numerals are specified for n then n number of arrays will be required for the variable va The variable val type will be numeral for unsigned int far Interprets read data as hexadecimal and stores it as numerals Data that cannot be interpreted as hexadecimal will be regarded as 0 Specifications regarding val are the same as for 6Snl Interprets read data as hexadecimal and stores it as numerals Data that cannot be interpreted as hexadecimal will be regarded as 0 Specifications regarding val are the same as for 6Snl Interprets read data as decimal and converts it to character strings for storage Data that cannot be interpreted as decimal will be regarded as 0 A single word of data will be stored in a single val vari able If a numeral of 2 or greater is specified for n then n number of val variables will be required A single word two bytes of data will be converted to a 4 byte character string expressing a 4 digit numeral Thus four bytes of data area will be required for a single variable val The variable val type will be
32. No F DM Area Unit No O Unit No 1 Unit No F Unit No O to 9 First word 100 10 x unit No EDU Unit No A to F IR 100 Software switches 1 word First word 400 10 x unit No 10 IR 101 Status Area 9 words 10 words IR 109 Unit No 0 DM 6032 status Area 2 words First word DM 6032 2 x unit No DM 6033 A brief explanation of the function of each area is provided here For details refer to CompoBus D DeviceNet Operation Manual W267 17 CompoBus D Master Function Section 1 6 Software Switches Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Not used Enable Scan List Clear Scan List Clear Communications Error Stoppage Start Remote I O Communications Stop Remote I O Communications Status Area IR Area First word 1 Master Status Area 1 1 word First word 2 Registered Slave Information Area 4 words First word 6 Normal Slave Information Area 4 words First word 9 DM Area First word 1 Master Status Area 2 1 word First word 2 Current Communications Cycle Time 1 word Master Status Area 1 This word contains flags that show the operating status of the network the results of software switch operations and current error data Software switch operation results Operating Operating status status Error Data f A Bit 15 14 131211 10 9 8 7 6 5 4 3 2 1 0 E Not used fy es ae Pn te ae st Incorrect Switch
33. Note Be sure the line lock screws are sufficiently loosened before attempting to insert the lines If these screws are not loose the lines will enter the gaps in the back of the connector and will not lock properly Fitting Wire insertion hole Wires The cable colors are as follows Power line negative voltage V Communications line low CAN low Shield Communications line high CAN high Power line positive voltage V 3 Tighten the line lock screws for each line in the connector You will not be able to tighten these screws with a normal screwdriver which narrows to a point at the end You will need a screwdriver that is consistently 55 External Connections Section 2 5 thin for the entire length The line lock screws must be tightened to a torque of 0 5 N m Use a flat blade screwdriver that is consistently slender at the end The following OMRON XW4Z 00C Screwdriver is available to tighten the line lock screws The shape of this Screwdriver is shown in the following illustration Side Front l 4 0 6 mm 3 5 mm peer TID Crimp terminal Line 4 Connect the connector back to the SYSMAC Board being sure to orient the connector in the correct direction Press the connector all the way to the back 2 5 3 Connecting CompoBus S Communications Cables C200PC ISA 12 SRM E The CompoBus S communications cables can be installed as soon as the SYS MAC Board is installed
34. PLC OPEN AA PLC CLOSE PLC MODE PLC STA Programming Device ISA bus TUS PLC READ PLC WRITE ai SYSMAC Shared memory Board if m Ladder logic RS 232C Co Special cable 10 connection y memory C200HX HG HE Expansion I O Rack 2 Racks max System Configuration Section 1 3 C200PC ISA 2 DRM E SYSMAC Board with CompoBus D User application program IBM PC AT or using C language library P Lid Note The following functions are supported CHANGE SETTINGS PLC OPEN Programming y PLC CLOSE PLC MODE PLC STA Device H ISA bus TUS PLC READ PLC WRITE SYSMAC Shared memory Board adder logic il rogram i T Vo i memory if PLC CompoBus D functions functions RS 232C Special cable CompoBus D connection 50 Slaves max 63 Slaves max if a Configurator is used C200HX HG HE Expansion I O Rack C200HX HG HE Expansion vo Rack C200PC ISA02 DRM E 2 Racks max C200PC ISA12 DRM E 3 Racks max C200HX HG HE Expansion I O Rack System Configuration Section 1 3 C200PC ISA 12 DRM E SYSMAC Board with CompoBus D Plus C200PC EXP01 Expansion Option Board User application program IBM PC AT or using C language library compatible a Lo pcopen peread Uu M Programming Device Note The following functions are supported CHANGE SETTINGS PLC
35. Settings EEPROM Error Node Address Duplication Bus Off Error Detected Configuration Error Flag Setup Error Flag Transmission Error Flag Communications Error Flag Verification Error Flag Remote I O Communications Stopped Status Flag Scan List Operation Completed Flag Scan List Operation Error Flag Communications Stoppage Cleared Flag Message Communications Enabled Flag Scan List Disabled Flag Error Remote I O Communications Stopped Flag Remote I O Communications Flag 18 CompoBus S Master Function Section 1 7 Registered Slave Data When the Master is operating with the scan list enabled these flags indicate the Slaves that are registered in the scan list When the Master is operating with the scan list disabled these flags indicate the Slaves that have participated in com munications even one time Each bit is allocated to one Slave When the Enable Scan List software switch is turned ON to create the scan list the Slave for which bits are ON in the Registered Slave Data will be registered in the scan list Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 First word 2 First word 3 First word 4 First word 5 Normal Slave Data These flags indicate which Slaves are communicating normally Each bit is allo cated to one Slave Bit_15 First word 6 15 First word 7 31 First word 8 47 First word 9 63 Master Sta
36. a Peripheral Device The UM area can be overwritten from a Peripheral Device Note Factory default OFF user memory not write protected Pin 2 EEPROM Memory Pin 2 can be turned ON to automatically transfer the contents of the EEPROM to Transfer at Startup SYSMAC Board memory at startup Fm semn Fun on 2 ON The contents of the EEPROM will be automatically transferred to the internal RAM at start up OFF The contents will not be automatically transferred Note Factory default OFF EEPROM contents not transferred Pin 3 Programming Used to select the language for the display on the Programming Console Console Message Display Language Pin Setting Function 3 ON English display OFF Japanese display Note Factory default OFF EEPROM contents not transferred Pin 4 Expansion Pin 4 can be turned ON to enable setting function codes for expansion instruc Instruction Setting tions from a Programming Device If pin 4 is OFF you will not be able to set the function codes and all expansion instructions will be set to their default function codes Pm Seung Fame 4 ON Expansion instructions can be set by user OFF Expansion instructions set to default function codes Note 1 Factory default OFF default function codes 2 Pin 4 must be turned OFF and pin 1 must be turned OFF to enable writing to the user memory to use function codes allocated to exp
37. areas and numbers of words w main I O port 0380 Memory D0000 ne no i rc num far bufp El 27 far subp data 1281 0 printf gt Start l word read loop in bufp time amp t1 unsigned int fat data subp QR 0 1 SI Measured word specification 1 word Getting start time Calling pcread 10 000 times for 1i 0 1 lt 10 000 1 rc pcread ne no subp bufp time amp t2 Ae printf 4 1fWn difftime t2 t1 Get end time printf End 1 word read loop n printf Start 128 word read loop n subp 8R 0 128 5128I time amp t1 Measured word specification 128 words Getting start time Calling pcread 10 000 times for 1 0 1 lt 10000 1 90 Measurement Program Section 4 1 rc pcread ne no subp bufp time amp t2 Get end time printf 4 1fNn difftime t2 t1 printf End 128 word read loop n rc pcclose void w main void unsigned char ne no unsigned int i rc num data 128 0 time_t El 2 unsigned char far subp unsigned int far bufp rc pcopen printf Start l word write loop n bufp unsigned int far data subp QR 0 1 SI Measured word specification 1 word time amp t1 Getting start time Calling pcwrite 10 000 times for 1 0 1 lt 10000 1 rc pcwrite ne no subp bufp
38. directions for 20 minutes each Shock resistance JIS C0912 conforming 15 G 147 m S2 in X Y and Z directions 3 times each Ambient temperature Operating 0 to 55 C storage 20 to 75 C without battery Humidity 10 to 90 without condensation Atmosphere Must be free of corrosive gases Weight SYSMAC Board 350 g max Expansion Option Board 250 g max Dimensions SYSMAC Board 106 7 x 163 0 x 16 3 mm W x Hx D The depth measurement is the height at the battery Expansion Option Board 106 7 x 128 7 x 13 5 mm W x Hx D The depth measurement is the height of the connector guide 1 10 2 SYSMAC Board CPU Specifications Control method Stored program I O control method Cyclic scan and immediate processing are both possible Programming Ladder diagram method Instruction length 1 address instruction 1 to 4 words instruction Number of 14 basic instructions 231 special instructions instructions Execution time C200PC ISA01 E C200PC ISA02 DRM E C200PC ISA02 SRM E Basic instructions 0 15 us min Special instructions 0 6 us min for MOV 021 C200PC ISA12 DRM E C200PC ISA12 SRM E Basic instructions 0 10 us min Special instructions 0 4 us min for MOV 021 Program capacity C200PC ISAO01 E C200PC ISA02 DRM E C200PC ISA02 SRM E 15 2K words max C200PC ISA12 DRM E C200PC ISA12 SRM E 31 2K words max User program l O C200PC ISA01 E C200PC ISA
39. in the computer This manual provides information only on wiring the communications cables to the SYSMAC Board Refer to the Com poBus S Operation Manual W266 for details on wiring communications cables and Slaves Preparing Cables Use the following procedure to prepare and connect the communications cables to the connectors 112 3 1 Peel off the sheath of the two signal lines by 5 to 7 mm Twist the exposed signal lines ___ laa 5 to 7mm 56 External Connections Section 2 5 When using commercially available VCTF cables determine which signal lines to use for the BD H high side and BD L low side Special flat cable consists of the following signal lines Communications power positive side BS Brown Communications data high side BD H Black Communications data low side BD L White Communications power negative side BD Blue We recommend the following crimp terminals Phoenix Contact K K Al series Crimp Terminals x isis EE Crimp Wire terminal Insert the line into the terminal and then crimp The following crimp tool is also available Phoenix Contact K K ZA3 Crimp Tool 2 When using the special flat cable insulate the two signal lines for the com munications power supply Connecting Turn off the power supply to the computer and Slaves and turn off the commu Communications Cables nications power supply before connecting CompoBus S Communications Cab
40. nl unsigned char val1 4 val2 4 unsigned char far pl p2 pl unsigned char far vall p2 unsigned char far val2 peread Cs vac x4 2I plp2 Results val1 0 1 0x31 val1 1 2 0x32 val1 2 3 0x33 vall 3 4 0x34 val2 0 5 0x35 val2 1 6 0x36 val2 2 0x37 val2 3 8 0x38 Character Array Snl unsigned char val 8 unsigned char far p p unsigned char far val poread tsaar en p oop 78 Library Functions Section 3 2 Results val 0 1 0x31 val 1 2 0x32 val 2 3 0x33 val 3 4 0x34 val 4 5 0x35 val 5 6 0x36 val 6 7 0x37 val 7 8 0x38 2 H type Hexadecimal Format Read data 789ABCDE Numerals nH unsigned int vall val2 unsigned int far pl p2 pl unsigned int far amp vall p2 unsigned int far amp val2 pcread 2H p1 p2 Results vall 0x789a val2 Oxbcde Numeral Array SnH unsigned int val 2 unsigned int far p p unsigned int far val peread 992H p Results val 0 0x789a val 1 Oxbcde Characters nH unsigned char val1 4 val2 4 unsigned char far pl p2 pl unsigned char far vall p2 unsigned char far val2 pernead 2U 2 92H pl p2 Results val1 0 7 0x37 vall 1 8 0x38 vall 2 9 0x39 val1 3 Af 0x41 val2 0 B 0x42 val2 1 C 0
41. node on the same Network It won t be possible to start up the CompoBus D Network if the same node address is used for more than one node node address duplication error Board Switch Settings Section 2 3 Node address range Configurator not used 0 to 49 Configurator used 0 to 63 The Master Unit is shipped with the node address set to 0 Pins 7 and 8 are reserved for system use Leave these pins set to OFF 0 2 3 4 CompoBus D Unit Number Switch C200PC ISA 12 DRM E The unit number of the CompoBus D Master is set using this rotary switch Unit numbers are used to differentiate Special I O Units mounted to the same PLC including those mounted to the Expansion I O Racks DEA o o e M Any unit number shown below can be set as long as it hasn t been set on another Special I O Unit within the system of the SYSMAC Board including Expansion I O Racks Unit number range C200PC ISA02 DRM E 0 to 9 decimal O to 9 C200PC ISA12 DRM E 0 to F decimal 0 to 15 Note 1 Factory default O 2 The unit number determines which words in the PLC are allocated for the software switches and status area for the CompoBus D Master Refer to CompoBus D Operation Manual W267 3 If the same unit number is used for the more than one Unit a duplicate num ber error will occur in the PLC and the SYSMAC Board will not start properly 2 3 5 CompoBus D Communications DIP Switch C200PC ISA 12 DRM E The CompoBus D
42. on writing the ladder diagram program to control the SYSMAC Board e The CompoBus D DeviceNet Operation Manual W267 for details on remote I O and message communications in a CompoBus D Network e The CompoBus S DeviceNet Operation Manual W266 for details on remote I O in a CompoBus S Network Thoroughly check the user program after writing it before using it to control device or system 31 SECTION 2 Hardware Setup and Installation This section describes the hardware settings on the SYSMAC Board SYSMAC Board installation methods CompoBus D wiring methods and CompoBus S wiring methods Refer to the CompoBus D Operation Manual W267 and the C200HX HG HE E ZE Installation Guide W302 for details on CompoBus D and Expansion I O Rack installation 2 1 Setup Confirmations o 34 2 1 1 Confirming Available Resources oooooooccoccoococonorcco ee 34 2 1 2 Reserving Resources serviria petad seat Me DE RR CR A eee es 34 2 2 gt COMPONE NISKA Ear Ria tt sre veneto ui ees e dies p RR RA 35 2 3 Board Switch Settings x cscs eye Peep AREER PNR RIGA Re Ae eU UE RORY Oe 44 2 3 1 PLC DIP Switch Same for All Boards 0 0 0 0 44 2 3 2 EEPROM Write Protect Switch Save for All Boards 46 2 3 3 CompoBus D Node Address DIP Switch C200PC ISA 2 DRM B 46 2 3 4 CompoBus D Unit Number Switch C200PC ISAL 2 DRM E
43. the PLC communications library functions used to write user applications on the computer to commu nicate with the SYSMAC Board 3 1 Using the PLC Communications Library 0 00 00 eee eee ee eee 62 3 2 Library Functions em tds Sree be 64 pcinit CHANGE SETTINGS ine ai sme ee ede opa ala etes 64 pcopen PLC OPEN esee E E A eno 65 peclose PLC CLOSE on Pia a BR eue re eben eds 66 pemode JPEC MODE sz cR A a CR Aia 66 pestat PLC STATUS ii rr RR EEUU 68 pcread PLECREAD bs A ae ae ee ee 76 pewnteO PLE WRITE ees boxed oe od pian ps Rebar boa aetna eR 82 61 Using the PLC Communications Library Section 3 1 3 1 Using the PLC Communications Library Note PLC Communications Library Using the Library 62 Note 1 2 3 This section provides an overview of the PLC communications library and how to use it The PLC communications library contains C functions used to control the SYS MAC Board from user applications running on the computer The library file depends on the program model Be sure the proper file is available to the user application It is necessary to copy only the files required for the user applica tions e Compact models CLIBC LIB e Small models CLIBS LIB e Medium models CLIBL LIB e Large models CLIBM LIB e Huge models CLIBH LIB 1 The PLC communications library uses Microsoft C C Ver 7 2 When using the PLC communications library attached to the SYSMAC B
44. time amp t2 Get end time printf 4 1f n difftime t2 t1 printf End 1 word write loop Wn printf Start 128 word write loop Nn supb QR 0 128 5128I Measured word specification 128 words time amp t1 Getting start time Calling pcwrite 10 000 times for 1 0 1 lt 10000 1 rc pcwrite ne no subp bufp time amp t2 Get end time printf 4 1fNn difftime t2 t1 printf End 128 word write loop n rc pcclose 91 Measurement Results Section 4 2 4 2 Measurement Results The section provides the average times required for each execution of a read or write i e for a function call using the program presented above 4 2 1 Measurement Conditions System configuration No Slave Racks or Expansion l O Racks Memory model Large model SYSMAC Board C200PC ISA01 E C200PC ISA02 DRM E C200PC ISA12 DRM E C200PC ISA02 SRM E C200PC ISA12 SRM E Board operating mode MONITOR Board cycle time 1 2 ms ISA01 3 1 ms DRM 1 8 ms SRM 20 ms all 50 ms all Computer used IBM PC AT or compatible computer 120 MHz Pentium 82 Mbytes of memory executed by Windows 95 MS DOS prompt 400 MHz Pentium II 128 Mbytes of memory executed by Windows 98 MS DOS prompt Areas All writeable areas Numbers of words Max No of words for each area AR 28 words LR 64 words HR 100 words other 128 words 4 2 2 Results DOS V 120 MH
45. unsigned int pcclose extern unsigned int pcwrite Y void main void int ret qe unsigned char sub 20 static unsigned char buf 8 0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38 unsigned char far subp unsigned int far bufp unsigned char ne 0 unsigned char no 0 unsigned char port addr 1 I O port base address 0370 unsigned char dpram addr 7 DPRAM base address D4000 ret pcinit port addr dpram addr SYSMAC Board addresses set VE Met 1 9 of printf PLC setting error Return value d An ret exit printf ret dWMn ret pcopen if ret 0 printf Error opening library Return value d An ret exit Setting sub format D 0 3 S3H subp unsigned char far sub bufp unsigned char far buf strcpy sub D 0 3 S3H printf Memory Area Write n printf Data will be written to an SYSMAC Board memory area n n printf The specified write command is s n sub printf The following data will be written for i 0 i lt 8 it printf 02x buf il printf MnNn Writing memory area switch pcwrite ne no subp bufp case 0 printf The data was successfully written n break case 1 printf Communications not open n break case 5 printf Illegal parameter n break case 7 printf Error Nn break case 10
46. w output terminals Expansion I O Rack Backup Power Supply 100 VAC BO bit 0 OMRON Backup Power terminal 24 VDC Supply uninterruptive n output power supply BX500 terminal Backup Signal Output ON for power shutdown 100 VAC 105 B7A Interface Unit group 2 3 Backup Power Supply 105 battery average life 103 replacing 103 baud rate CompoBus D 16 baud rate 47 C C language library 2 23 cable RS 232C port cable specifications 28 cables connecting communications cables 53 connecting transmission cables 49 communications 23 closing communications with the Board 66 opening communications with the Board 65 Communications Boards 24 communications cables connecting 53 communications distance CompoBus D 16 communications errors 48 communications library 62 functions 61 required files 59 communications parameters 45 communications settings 64 CompoBus D communications cables connecting 53 CompoBus D Communications DIP Switch 47 49 CompoBus D Configurator 16 CompoBus D Master Unit functionality 15 CompoBus D Node Address DIP Switch 46 CompoBus D Slaves 14 16 CompoBus D Unit Number Switch 47 48 components Board components 35 Configurator See CompoBus D Configurator D DeviceNet 4 Dimensions 39 Index E EEPROM memory transfer 45 EEPROM Write Protect Switch 46 error history clearing 68 reading 68 errors clearing 68 proc
47. 02 DRM E C200PC ISA02 SRM E data storage area 16 K words of built in EEPROM equivalent to C200HW ME16K Memory Cassette C200PC ISA12 DRM E C200PC ISA12 SRM E 32 K words of built in EEPROM equivalent to C200HW MES32K Memory Cassette Max No of writes 50 000 times Cannot be removed IR Area I O bits C200PC ISA01 E C200PC ISA02 DRM E C200PC ISA02 SRM E 320 bits IR 01000 through IR 02915 C200PC ISA12 DRM E C200PC ISA12 SRM E 480 bits IR 01000 through IR 02915 IR 03000 through IR 30915 25 Specifications Section 1 10 Hem Specifications IR Area Work bits C200PC ISA01 E C200PC ISA02 DRM E C200PC ISA02 SRM E 6 784 bits IR 00000 to IR 00915 IR 03000 through IR 23115 IR 30000 through IR 51115 C200PC ISA12 DRM E C200PC ISA12 SRM E 6 624 bits IR 00000 through IR 00915 IR 03000 through IR 23115 IR 31000 through IR 51115 SR bits 1 080 IR 23600 through IR 25507 and IR 25600 through IR 29915 TR bits 8 TR 0 through TR 7 HR bits 1 600 HR 0000 through HR 9915 AR bits 448 AR 0000 through AR 2715 LR bits 1 024 LR 0000 through LR 6315 Timers Counters 512 TIM CNT 000 through TIM CNT 511 DM words Read write 6 144 DM 0000 through DM 6143 Read only 512 DM 6144 through DM 6655 Expansion DM 3 000 words max DM 7000 through DM 9999 The Expansion DM Area must be set from a Programming Device C200PC ISA01 E C200PC ISA02 DRM E C200PC ISA02 SRM E Read write 6 144 words EM 0000 to EM 6143
48. 1 DM Area 0 to 6655 Expansion DM Area 7 000 to 9 999 EM Area 0 to 6 143 start First Word to Write Specify the address of the first word to write in memory Use the address ranges given in the table above num Number of Words to Write Specify the number of words to write between 1 and 128 but be careful not to specify more words than are in the area being written If the end of the area is exceeded a return value of 5 will be returned to indicate an illegal parameter This is also true for the individual areas specified with a sub of OR i e a write must be within only one of the areas format Conversion Format The format used to convert the data in memory is specified with one of the codes in the following table A different format can be specified for each of the words specified with num n in the formats listed in the following table is replaced with the number of words to which the format is to be applied n can be omitted in which case a default value of 1 is used The formats are applied in order to each word being written Note A format must be specified for each word being read i e the total of all values for n must be equal to the value specified for num The function may not execute properly if there is not a format specified for each word Format Operation and storage method Regards write data as numerals and expands it to decimal BCD conversion for writing At the time of
49. 22 for details Connection Overview ratio Applicable communications instructions Host Link commands Host Link communications are used between host computers and PLCs The PLC s operating status and the operation of each bit can be monitored from the computer The data stored in the IOM area of the PLC can be transferred to the host computer using the TXD 236 instruction TXD 236 for PLC initiated communications No protocol custom PLC to personal computer PLC to components Uses communications port I O instructions TXD 236 and RXD 235 for simple transmission sequences such as inputting data from Barcode Readers and outputting data to printers Uses instructions to control RS CS ER and DR signals TXD 236 and RXD 235 PLC to PLC Allows one PLC to be connected to another PLC Allows link bits to be shared PLC to Programmable Terminal CompoBus D Slaves CompoBus S Slaves VO Allocations 14 Allows the PLC to be connected to one or more Programmable Terminals to send and receive data The number of CompoBus D Slaves that can be connected to a C200HW DRM21 EV1 CompoBus D Master Unit used with a C200PC ISALJ2 DRM E SYSMAC Board depends on whether or not a Configurator is used as shown in the following table Refer to the CompoBus D DeviceNet Operation Manual W267 for details Maximum No of Slaves connected to SYSMAC Board
50. 50 Slave nodes 63 Slave nodes Condition CompoBus D Configurator not used CompoBus D Configurator used The node addresses and number of CompoBus S Slaves that can be connected to a C200HW SRM21 CompoBus S Master Unit used with a C200PC ISALJ2 SRM SYSMAC Board depends on the setting of the communications setting switch is shown in the following table Refer to the CompoBus S Device Net Operation Manual W266 for details Max No of Slaves connected to SYSMAC Board 16 Slave nodes 32 Slave nodes Connectable node address CompoBus S communications parameter DIP switch Pin 1 OFF Pin 1 ON IN 0 to 7 OUT 0 to 7 IN O to 15 OUT 0 to 15 Allocation of l O words for the SYSMAC Board is the same as for the C200HX C200HG PLCs i e Units can be mounted in any slot but the word allocated to CompoBus D Master Function Section 1 6 each slot is fixed The word allocations to slots on the Expansion I O Racks are shown in the following diagram Personal computer Expansion n Als ai amy r5 pe 1 O Rack d With 3 slot Backplane With 5 slot Backplane With 8 slot Backplane Expansion CH CH CE I With 3 slot Backplane E With 8 slot Backplane LLL With 3 slot Backplane With 5 slot Backplane lt With 10 slot Backplane Expansion I O Rack The 3rd Rack can only be connected when a C200PC ISA12 DRM E or C200PC ISA12 SRM E is used
51. 93 iz W 3 B E 5 4 8 2 1 B a a a ajajajaja m FALS error Too many Special I O Units I O setting error I O bus error No END Memory error A A nnl Non fatal Errors Any non fatal errors in the SYSMAC Board will be indicated as follows Byte 2 Byte 1 Bit 1814 3 iz 9 qw B B 7 amp G 4 3 z i ajajad gjg 4 4 UF FS FEA Special I O error PLC Link error Host Link error Remote I O error Cycle time over 1 0 verification error Battery error FAL error gt a es Ces Ce Coe ee Ce Message Presence Messages cannot be attached to FAL and FALS errors with the SYSMAC Board This bit will always be 0 Current FAL No These two bytes will provide the FAL No if a fatal FALS or non fatal FAL error has occurred in the SYSMAC Board They will be 0 if neither error has occurred Error Message All bytes will be filled with spaces Communications must be opened with the SYSMAC Board before pcstat can be executed Clearing Errors When mcmd is set to 1 any FAL or FALS errors that have occurred are cleared from the SYSMAC Board 69 Library Functions Section 3 2 70 Set ch to 0 and set val to the address of memory location storing the FAL FALS No as a 1 byte hexadecimal number Set val to specify the most recent FAL FALS No The specified error will be cleared after pcstat is executed No errors will be cleared and the function will end normally even if the specified FAL FALS No doe
52. C200PC ISA01 E C200PC ISAL 2 DRM E C200PC ISAL 2 SRM E C200PC EXP01 SYSMAC Board Operation Manual Produced December 1998 Notice 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 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 Wa in documentation in this sense In this manual PLC is used as the abbreviation for Programmable Controller Visual Aids The following headings appear in the left column of the manual to help you locate differe
53. I O Unit Area in the Master PLC For C200PC ISA12 SRM E SYSMAC Boards only Firs M Slave Allocations in IR Area 1514131211109 8 76543 21 Opi Fistwos pit 7 Output Slave 1 9 pit 7 Output Slave 0_ 0 First word 2 Bit 7 Output Slave 5 0 Bit 7 Output Slave 4 0 Fistword Bit 7 Output Slave 7 Bit 7 Output Slave 6 Ol bw First word 4 Bi 7 Output Slave 9 o Bit 7 Output Slave 8 0 Fistword 5 Bit 7 Output Slave 11 o Bit 7 Output Slave 10 0 First word 6 Bit 7 Output Slave 13 o Bit 7 Output Slave 12 y First word 7 Bit 7 Output Slave 15 q Bit 7 Output Slave 14 y First word s Bit 7 Input Slave 1 O Bit 7 Input Slave 0 y Firstword 9 Bit 7 _ Input Slave 3_ o pit 7 Input Slave2 9 First word 1o Bit 7 Input Slave 5 o Bit 7 _ Input Slave 4 First word 11 Bit 7 Input Slave 7_ y Bit 7 Input Slave 6_ o First word 12 Bit 7 _ Input Slave 9 o Bit 7 Input Slave 8 2 Fistwora 13 Bit 7 _ Input Slave 11 y Bit 7 Input Slave 10 q Fist word 14 Bit7 Input Slave 13 o Bit 7 Input Slave 12 y ristword 18 Bit 7 _ Input Slave 15 o Bit 7 Input Slave 14 QJ Li First word 16 _ Output Slave Communications Error Flags Input Slave Participation Flags lSlava7 0Slave7 0 _ Input Slave Communications Error Flags Output Slave Participation Flags First word 17 Slave 7 0 Slave 7 0 sed Output Slave Communications Error Flags I
54. M PLC COMM Indicator Peripheral Connector Connected to a Programming Device RS 232C Connector Connected to a Programmable Terminal or other external device with a RS 232C port 38 Components Section 2 2 Dimensions Unit mm C200PC ISA01 E SYSMAC Board 16 3 39 Components Section 2 2 C200PC ISA 2 DRM E SYSMAC Board N e e 00 N N co a N e N to o mm TTT B E 25 4 12 6 119 5 Excluding warping in the flat cable Tlo N N 3 4 40 Components Section 2 2 C200PC ISA 2 SRM E A N O e oo N N co o N e N LO o O N NN Y 17 1 100 2 106 7 119 5 Excluding warping in the flat cable 3 IS I NJN 3 4 95 6 41 Components Section 2 2 C200PC EXP01 Expansion Option Board 42 100 2 106 7 119 5 Excluding warping in the flat cable Y ee 13 5 Components Section 2 2 Indicators Indicator Refer to the CompoBus D Operation Manual W267 for further details on the NS and MS indicators and refer to the CompoBus S Operation Manual W266 for further details on the RUN SD RD ERC IN OUT 8 4 2 and 1 indicators Status Meaning The program is being executed normally in either MONITOR or RUN mode One of the following The SYSMAC B
55. M E and Compo User memory protection Bus S settings are only for the C200PC ISA Setting PLC DIP switch pin 1 2 SRM E Description Enables or disables writing to the user memory area EEPROM reading at startup PLC DIP switch pin 2 Specifies whether or not to automatically load the contents of EEPROM when the SYSMAC Board is started Programming Console message display language PLC DIP switch pin 3 Keep set to ON for English Expansion instructions setting PLC DIP switch pin 4 Specifies whether or not expansion instructions are set RS 232C port parameters PLC DIP switch pin 5 Specifies whether or not default communications parameters are to be used Programming Console mode Expansion terminal mode selection PLC DIP switch pin 6 Keep set to OFF I O port address PLC DIP switch pin 7 8 Sets the base address of the I O port to be used by SYSMAC Board registers EEPROM protection EEPROM write protect switch Enables or disables writing to EEPROM CompoBus D node address CompoBus D node address DIP switch Set the node address of the SYSMAC Board s CompoBus D Master Unit CompoBus D unit number CompoBus D node number switch Set the unit number of the SYSMAC Board s CompoBus D Master Unit CompoBus D communications parameters CompoBus D communications parameter DIP switch Sets the baud rate a
56. M E for CompoBus D C200PC ISAL 2 SRM E for CompoBus S Not attached to the C200PC ISA01 E Note The operating system for the personal computer is not included with the SYS MAC Board and must be provided by the user Expansion Option Boards Expansion Option Board D SUB 9 pin connector plug section D SUB 9 pin connector cover cover section Flat cable Safety Precautions 10 Programmable Controller Functions Section 1 5 1 5 Programmable Controller Functions The SYSMAC Boards contain the same functions as the PLC illustrated in the following diagrams The specific functions vary with the model C200PC ISA01 E SYSMAC Board without CompoBus C200HG CPU43 E CPU Unit Power Supply Unit C200HW BCO031 Backplane Expansion I O connector RS 232C connector To Expansion I O Rack To Programming Device C200PC ISA J2 DRM E SYSMAC Board with CompoBus D CPU Unit C200PC ISA02 E C200HG CPU43 E C200HW DRM21 EV1 C200PC ISA12 E C200HX CPU64 E CompoBus D Master Unit Power Supply Unit C200HW BCO031 Backplane Communications connector Expansion l O connector To CompoBus D To Programming Device Network To Expansion I O Rack C200PC ISA 12 DRM E SYSMAC Board with CompoBus D Plus C200PC EXP01 Expansion Option Board CPU Unit C200PC ISA02 DRM E C200HG CPU43 E C200PC ISA12 DRM E C200HX CPU64 E C200HW DRM21 EV1 Co
57. OPEN A PLC CLOSE PLC MODE PLC STA op TUS PLC READ PLC WRITE SYSMAC Board Shared memory Tool Bus Ladder logic program RS 232C Et CompoBus D D sub 9 pin Expansion Option Board 1 0 sam connector p Lmemoy i PLC CompoBus D functions functions 50 Slaves max 63 Slaves max if a Configurator is used g C200HX HG HE Expansion I O Rack Programmable Terminal or other external device C200HX HG HE Expansion I O Rack C200PC ISA02 DRM E 2 Racks max C200PC ISA12 DRM E 3 Racks max C200HX HG HE Expansion I O Rack System Configuration Section 1 3 C200PC ISA 12 SRM E SYSMAC Board with CompoBus S User application program IBM PC AT Ta using C language library compatible pcopen pcread L E 2s c Note The following functions are supported CHANGE SETTINGS PLC OPEN PLC CLOSE PLC MODE PLC STA Programming m TUS PLC READ PLC WRITE Device Mc SYSMAC Shared memory Board Ladder logi i EX i RS 232C Ln Special cable lO CompoBus S eum connection i memory PLC CompoBus S functions functions 32 Slaves max IN 16 Slaves OUT 16 Slaves C200HX HG HE Expansion I O Rack C200PC ISA02 SRM E 2 Racks max C200PC ISA12 SRM E 3 Racks max System Configuration Section 1 3 C200PC ISA 12 SRM E SYSMAC Board with CompoBus S Plus C200PC EXP01 Expansion Option Board
58. PLC Installation Guide and Operation Manual for descriptions of PLC functionality and to the CompoBus D DeviceNet Operation Manual for descriptions of the CompoBus D Network functionality C200HX HG HE Describes handling procedures for C200HX HG HE hardware including E ZE PLC installation and wiring Installation Guide This manual is required for the SYSMAC Board when connecting an Expansion I O Rack C200HX HG HE ZE Describes programming for C200HX HG HE PLCs PLC Operation Manual CompoBus D Describes CompoBus D specifications and functions including Slaves DeviceNet and overall Network operation Operation Manual Use this manual as reference with programming the SYSMAC Boards This manual is required to use the CompoBus D functionality of the SYSMAC Boards CompoBus D Required to make special settings for a CompoBus D Network such as Configurator user set allocations for remote I O Operation Manual CompoBus S Describes CompoBus S specifications and functions including Slaves Operation Manual and overall Network operation This manual is required to use the CompoBus S functionality of the SYSMAC Boards Please read this manual and all other related manuals carefully and be sure you understand the informa tion provided before attempting to install and operate a SYSMAC Board You will also need the manuals for you personal computer This manual includes the following sections Section 1 describe
59. PU Rack Communications Boards Peripheral Port Programming Devices Connected to RS 232C Port PLC Operating Mode Holding Data Area Contents 24 Although functionally a SYSMAC Board is essentially the same as either the C200HX CPU64 E or C200HG CPU43 E depending on the model there are a few differences resulting from differences in hardware These differences are described next These differences must be allowed for when programming or operating the SYSMAC Board The SYSMAC Board corresponds to the CPU Rack making it impossible to add Units and other hardware such as Communications Boards to the CPU Rack This also limits the maximum I O capacity to the I O provided on the Expansion I O Racks which is either 320 points maximum for 2 Racks or 480 points maxi mum for 3 Racks Communications Boards cannot be mounted This means that protocol macros and expansions to other CPU Bus Units is not possible There is no peripheral port on the SYSMAC Board This means that Program ming Consoles and other peripheral devices that must be connected to a periph eral port cannot be used If the C200PC EXP01 Expansion Option Board is connected its peripheral port which is equivalent to the peripheral port of a C200HX or C200HG PLC can be used The RS 232C port uses different connector so special Connecting Cables must be used to connect Programming Devices Only Programming Devices Soft ware can be connected to the RS 232C port
60. Store the slot cover it may be needed sometime in the future 3 Install the SYSMAC Board in the computer When installing the Board be sure to insert the connector into the slot in the proper direction Insert the Board until the metal mounting bracket fits into the computer and is flush with the edge of the computer 4 Replace the screw s that was set aside in step 2 to secure the Board to the computer 5 Replace the computer s cover and screw in the mounting screws 6 When using the Expansion Option Board mount the Expansion Option Board before mounting the SYSMAC Board Connect the Expansion Option Board to the SYSMAC Board using the flat cable attached to the Expansion 51 External Connections Section 2 5 Option Board Push the flat cable connector into the Board connector until it clicks The levers on the connector sides will open mre T T SYSMAC Board 2 5 External Connections This section describes how to connect Expansion I O Racks CompoBus D Slaves CompoBus S Slaves and Programming Devices to the SYSMAC Board Note 1 Turn the power supply OFF to the PCs and all Slaves and turn OFF the communications power supply before connecting communications cables 2 Tighten the screws holding the cables to the CompoBus D and Compo Bus S connectors to a torque of 0 5 Nem and the screws holding the Compo Bus S connectors to a torque of 0 2 Nem 3 The tensile strength of the CompoB
61. Switch settings are being read ON A fatal error Unit hardware error has occurred Flashing A non fatal error such as a switch setting error has occurred OFF The Master Unit s power is OFF it is resetting or it is waiting to start initialization CompoBus S RUN ON The CompoBus S is operating normally OFF Indicates one of the following for the CompoBus S Power not turned ON I O setting error CPU standby or unit number setting error CompoBus S SD Yellow ON Data being transferred Data transfer stopped CompoBus S RD Yellow ON Data being received Data reception stopped CompoBus S ERC Red ON One or more Slaves not communicating communications error Slaves communicating normally CompoBus S IN OUT Red ON Error in an Output Slave Error occurred in the input slave or all the slaves under normal conditions CompoBus S 8421 ON The number of the Slave with an error is indicated as a binary number Read lit indicates as 1 and not lit indicators as 0 Note A PLC COMM indicator is provided both on the SYSMAC Board and on the Expansion Option Board 43 Board Switch Settings Section 2 3 2 3 Board Switch Settings The following settings must be made on the SYSMAC Board These settings should be made before the SYSMAC Board is installed inside the computer CompoBus D settings are only for the C200PC ISAL 2 DR
62. a C200HX HG HE Expansion I O Rack 35 Components Section 2 2 C200PC ISA 12 DRM E Card Edge Connector Connected to computer s ISA connector Built in Battery For memory backup PLC DIP Switch Sets PLC operating parameters Expansion Option Board Connector Used to connect a flat cable to the Expansion Option Board EEPROM Write Protect Switch Fa Write enables disables the EEPROM __ Expansion Function Connector Not used Do not connect anything CompoBus D DIP Switch Sets CompoBus D communications parameters CompoBus D Node Address DIP Switch Sets the node address of the CompoBus D Master CompoBus D Unit Number Switch Sets the unit number of the CompoBus D Master CompoBus D NS Indicator CompoBus D MS Indicator Indicators Show the operating status of the SYS PLC RUN Indicator MAC Board the CompoBus D Master PLC ERR ALARM Indicator and the CompoBus D Network PLC COM Indicator CompoBus D Connector Connected to the CompoBus D Network The cable connector is mounted in the connector at the factory RS 232C Connector Connected to Programming Devices Cannot be used when the Expansion Option Board is connected Expansion I O Connector Connected to the C200HX HG HE Expansion I O Rack 36 Components Section 2 2 C200PC ISA 2 SRM E Card Edge Connector Connected to computer s ISA connector Built in Battery For memory bac
63. ables writing to the user memory area EEPROM transfer at startup PLC DIP switch pin 2 Specifies whether or not to automatically load the contents of EEPROM when the SYSMAC Board is started Programming Console message display language PLC DIP switch pin 3 Sets the Programming Console message display to Japanese or English Expansion instructions setting PLC DIP switch pin 4 Specifies whether or not expansion instructions are to be set RS 232C port parameters PLC DIP switch pin 5 Specifies whether or not default communications parameters are to be used Programming Console mode Expansion Terminal mode PLC DIP switch pin 6 Sets the Programming Console mode to the console mode or expansion terminal mode I O port address PLC DIP switch pins 7 8 Sets the first address of the I O port to be used by SYSMAC Board registers EEPROM protection EEPROM write protect switch Enables or disables writing to EEPROM CompoBus D node address C200PC ISALT2 DRM only CompoBus D node address DIP switch Sets the node address of the SYSMAC Board s CompoBus D Master Unit nit number 2 DRM only CompoBus D C200PC ISA CompoBus D unit number switch Sets the unit number of the SYSMAC Board s CompoBus D Master Unit CompoBus D communications parameters C200PC ISAL 2 DRM only CompoBus D communications parameter DIP switch Sets the bau
64. al W267 for further details If pin 3 is OFF remote I O communications will stop if a transmission timeout or Network power supply error occurs but will restart automatically when the cause of the error is cleared 2 3 6 CompoBus S Unit Number Switch C200PC ISA 12 SRM E The unit number of the CompoBus S Master is set using this rotary switch Unit numbers are used to differentiate Special I O Units mounted to the same PLC including those mounted to the Expansion I O Racks 39 o o e e 93 The setting range for the unit number is as shown below depending on SYSMAC Board model and the connectable node address described in the next section Any unit number shown in the table can be set as long as it hasn t been set on another Special I O Unit within the system of the SYSMAC Board including Expansion l O Racks Connectable node Unit number setting address range C200PC ISA02 SRM IN 0 to 7 OUT 0 to 7 0 to 9 decimal 0 to 9 IN 0 to 15 OUT 0 to 15 0 to 8 decimal 0 to 8 C200PC ISA12 SRM IN O to 7 OUT 0 to 7 0 to 9 decimal 0 to 9 A to F decimal O to 15 IN O to 15 OUTO to 15 0 to 8 decimal 0 to 8 A to E decimal 10 to 14 When setting the number carefully use a small Philips screwdriver and do not damage the rotary switches Note 1 Factory default O 2 The unit number determines which words in the Special I O Unit Area are allocated to the CompoBus S Master Refer to CompoB
65. amming Console will turn ON the corresponding auxiliary memory bit For further details refer to the C200HX HG HE ZE Operation Manual W322 pin sima Fines 7 ON The Programming Console set to expansion terminal mode OFF The Programming Console set to console mode Factory default OFF user set parameters Pins 7 and 8 are used to set the base I O port address used for SYSMAC Board registers A total of 5 addresses are used being with the one set on these pins First 1 O port address Factory default OFF OFF 03A0 2 3 2 EEPROM Write Protect Switch Save for All Boards Note The EEPROM write protect switch is used to enable or disable writing to the EEPROM equivalent to C200HW ME16K or C200HW ME32K Memory Cas sette OFF ON H Factory default is shown in diagram p sems 7 ON EEPROM write protected OFF EEPROM write enabled Factory default OFF EEPROM write enabled 2 3 3 CompoBus D Node Address DIP Switch C200PC ISAL12 DRM E 46 The node address of the CompoBus D Master is set using this DIP switch Node addresses are used to differentiate nodes on the CompoBus D Network Pins 1 through 6 represent binary digits which are 1 when the pin is ON O when the pin is OFF in binary OFF 0 The following ranges can be used for the node addresses for Slaves and Mas ters on the CompoBus D Network The same node address cannot be set for more than one
66. ansion instructions from a Peripheral Device If the settings of pins 1 and 4 are incorrect unex pected operation could result from program execution Check these settings carefully Pin 5 RS 232C The setting of pin 5 determines if default communications parameters are used Communications or if user set parameters are used The communications parameters can be set Parameters from a Programming Device Pin Sen Futon 5 ON Default communications parameters for RS 232C port Start bits 1 data length 7 bits parity even stop bits 2 baud rate 9 600 bps User set communications parameters used Note 1 Factory default OFF user set parameters 2 The following RS 232C port will be used depending on whether the Expan sion Option Board is connected or not Not Connected RS 232C port on the SYSMAC Board Connected RS 232C port on the Expansion Board In this case the RS 232C port on the SYSMAC Board cannot be used Pin 6 Programming The Programming Console supports the following modes Console Mode for Console Mode normal setting monitoring or programming and Expansion Terminal Mode for Expansion Terminal Mode Selection 45 Board Switch Settings Section 2 3 Pins 7 8 I O Port Base Address Note Note message display and keyboard mapping When set to the message display MSG instruction or LMSG instruction mes sages are displayed When set to the keyboard mapping function pressing a key on the Progr
67. ard Format unsigned int pcopen Parameters None Description pcopen initializes communications with the SYSMAC Board pcopen must be executed before any other PLC communications library function can be used with the exception of pcinit and pcopen itself pcclose is used to end communications with the SYSMAC Board Once com munications have been closed with pcclose they can then be reopened with pcopen The following I O port and common memory base addresses will be used if pcinit has not been executed to change them Common memory base address C8000y I O port base address O3A0y Return Values Ended normally Communications already open cannot be executed Communications timeout A communications timeout will occur when SYSMAC Board initial ization has not been completed within 10 s Check the settings made with pcinit Example RR KR KKK k kk ke koe ke ke ke ke ke e x e OK x x x Opening Communications RK RK Kk k kk ke koe k koe ke ke e e e e e x x x extern unsigned int pcinit extern unsigned int pcopen extern unsigned int pcclose void main void int ret unsigned char port addr 1 1I 0 port base address 0370 unsigned char dpram_addr 7 DPRAM base address D4000 ret pcinit port addr dpram addr SYSMAC Board addresses set rf ret I 0 A printf PC initialization error d n ret xit 0 printf Opening communications n
68. ary Return value d An ret exit printf Status Read n printf The status of the SYSMAC Board will be readin switch pcstat ne no mcmd dmyp valp case 0 printf PCSTAT successful n printf Status is as follows n printf Operating status 1 byte 0x 02x n val 0 printf Mode 1 byte 0x 02x1n val 1 printf Fatal errors 2 bytes 0x 02x 0x 02x1n val 2 val 3 printf Non fatal errors 2 bytes 0x 02x 0x 02x1n val 3 val 4 printf Message presence 2 bytes 0x 02x 0x 02x1n val 5 val 6 printf Current FAL No 2 bytes 0x 02x 0x 02x1n val 7 val 8 printf Error message 16 bytes Aint for i 10 i lt 26 i printf 202x val i printf MnNt break Case 1 printf Communications not open n break case 5 printf Illegal parameter n break case 7 printf Error n break case 10 printf PLC communications timed out Nn break Library Functions Section 3 2 pcclose Library closed Clearing an Error memd 1 SA Clearing an Error SA extern unsigned int pcinit extern unsigned int pcopen extern unsigned int pcclose extern unsigned int pcstat void main void int ret 4 unsigned char val Location to specify FAL No unsigned char far valp unsigned char dmy
69. char ne unsigned char no unsigned char far sub format unsigned int far val or unsigned char far val va1 can be omitted and parameters in brackets can be input more than once ne Remote network address This parameter is not used set it to O no Remote node address This parameter is not used set it to O sub format The sub format val Buffer storing the write data Parameter IN OUT Setting ne Integer Not used set to 0 no Integer Not used set to 0 sub_format Text string Refer to the Description val Integer text Refer to the Description string pcwrite is used to write data to the memory areas of the SYSMAC Board Data is written in word units and up to 128 words can be written at once Set sub_format to the first address of the memory location holding the sub for mat specification The sub format specifies the area to be written the conver sion method for the data and other parameters The sub format is specified as follows with commas separating parameters sub start num format format format can be omitted and parameters in brackets can be input more than once Use only uppercase letters in the sub format sub Subcommand Library Functions Section 3 2 CIO Area 0 to 255 SR Area 256 to 511 LR Area 1000 to 1063 to specify LR 00 to LR 63 HR Area 1064 to 1163 to specify HR 00 to HR 63 AR Area 0 to 27 TIM Area PV 0 to 511 CNT Area PV 0 to 51
70. character for unsigned char far Interprets read data as hexadecimal and stores it as numerals Data that cannot be interpreted as hexadecimal will be regarded as 0 Specifications regarding val are the same as for nl Interprets read data as hexadecimal and stores it as numerals Data that cannot be interpreted as octal will be regarded as 0 Specifications regarding val are the same as for nl Interprets read data as ASCII and converts it to character strings for storage Data read into array variable val will be stored A single word two bytes of data will be converted to a 2 byte character string Thus a data area of n x 2 bytes will be required for an array variable va The variable val type will be character for unsigned char far 77 Library Functions Section 3 2 Format Operation and storage method Interprets read data as decimal and converts it to character strings for storage Data that cannot be interpreted as decimal will be regarded as 0 Read data will be stored in array variable val If two or more numerals are specified for n then n number of arrays will be required for the variable va A single word two bytes of data will be converted to a 4 byte character string expressing a 4 digit numeral Thus a data area of n x 4 bytes will be required for an array variable va The variable val type will be character for unsigned char far Interprets read data as hexa
71. communications DIP switch is used to set the communica tions baud rate and whether communications will be continued or stopped when a communications error occurs v L e z NO Factory setting shown in diagram Baud rate Continue Stop communications for communications error Reserved Always OFF Note Pin 4 is not used and must always be set to OFF Pins 1 2 Baud Rate Pins 1 and 2 are used to set the baud rate as shown in the following table Baud rate 125 kbps 250 kbps 500 kbps Not allowed This setting causes an incorrect switch setting error Note 1 Factory default OFF OFF 125 kbps 2 Set the same baud rate on all of the nodes Master and Slaves in the Net work Any Slaves with baud rates different from the Master s rate won t be able to participate in communications 47 Board Switch Settings Section 2 3 Pin 3 Communications Pin 3 is used to set the whether or not communications will stop after a commu Error Handling nications error mma 7 OFF Continue communications ON Stop communications If pin 3 is ON remote l O communications will be stopped if a transfer error transmission timeout or Network power supply error occurs Remote I O com munications will remain stopped even if the error is cleared until the Clear Com munications Error Stoppage Bit is turned ON Message communications will continue Refer to the CompoBus D Operation Manu
72. cords in the error history Communications must be opened with the SYSMAC Board before pcstat can be executed Return Values Value Meaning Ended normally Communications have not been opened execution not possible Illegal parameter Ended in an error response error Communications timeout no response within 10 s Example Reading Status mcmd 0 KOR KKK KK KK OK ko koe ke koe ke ke e x ke e x x Reading SYSMAC Board Status 71 Library Functions Section 3 2 KOR KKK KK KK A extern unsigned int pcinit extern unsigned int pcopen extern unsigned int pcclose extern unsigned int pcstat void main void 72 int ret i j 7 unsigned char val 26 Location to store status unsigned char far valp unsigned char dmy Dummy unsigned char far dmyp unsigned char ne 0 Network address unsigned char no 0 Node address unsigned int mcmd 0 Main command Status read unsigned char port addr 1 I O port base address 0370 unsigned char dpram addr 7 DPRAM base address D4000 valp unsigned char far amp val 0 dmyp unsigned char far amp dmy ret pcinit port addr dpram addr SYSMAC Board addresses set rf ret T 9 4 printf PLC setting error Return value d Wn ret exit ret pcopen Library opened rf ret 0 y printf Error opening libr
73. d rate and the handling of communications error for CompoBus D communications CompoBus S unit number C200PC ISALT2 SRM only CompoBus S unit number switch Sets the unit number of the SYSMAC Board s CompoBus S Master Unit CompoBus S communications parameters C200PC ISA 2 SRM only Installation CompoBus S communications parameter DIP switch Sets the node addresses that can be connected for CompoBus S communications Refer to Section 2 Hardware Setup and Installation for details The SYSMAC Board must be mounted in the computer Any Expansion l O Racks the CompoBus D Network the CompoBus S Network or other external devices must then be wired This manual covers only the specific functions of the SYSMAC Board Refer to the C200HX HG HE E ZE Programmable Controllers Installation Guide W302 the CompoBus D DeviceNet Operation Manual W267 and the CompoBus S DeviceNet Operation Manual W266 for details on system installation Programming Refer to Section 3 PLC Communications Library for details The programs to control the SYSMAC Board must be written 30 Setup Procedures Section 1 11 Note This manual describes using the PLC communications library to control the SYSMAC Board from user applications running on the computer Refer to the following manuals for further details e The C200HX HG HE ZE Programmable Controllers Operation Manual W322 for information
74. d to use the PLC communications library 1 Use the functions in the PLC communications library to write a user applica tion to control the SYSMAC Board Using the PLC Communications Library Section 3 1 2 Link the proper PLC communication library to the user program and then compile the program to create the executable file The following program lines show an example where the user program source file SAMPLE C is used to create the executable file SAMPLE EXE small model CL C AS SAMPLE C Creates the object LINK SAMPLE OBJ SAMPLE EXE NUL CSLIBS LIB Links the library 63 Library Functions Section 3 2 3 2 Library Functions This section provides details on the PLC communications library functions Notation The following headings are used to provide information on the PLC communica tions library functions Purpose Gives an outline of the purpose of the function Format Shows how the function is formatted in a program Parameters Describes the parameters used in the function Description Provides details on the operation of the function Return Values Describes the values returned by the function Example Provides an example of programming with the function Cinit CHANGE SETTINGS Purpose Sets the base addresses of the I O port and common memory to use for commu nications with the SYSMAC Board Format unsigned int pcinit port addr dpram addr unsigned char port addr unsigned char dp
75. decimal and converts it to character strings for storage Data that cannot be interpreted as hexadecimal will be regarded as 0 Specifications regarding va are the same as for Snl Interprets read data as hexadecimal and converts it to character strings for storage Data that cannot be interpreted as octal will be regarded as 0 Specifications regarding val are the same as for Snl Interprets read data as ASCII and converts it to character strings for storage Data read into array variable val will be stored A single word two bytes of data will be converted to a 2 byte character string Thus a data area of n x 2 bytes will be required for an array variable val The variable val type will be character for unsigned char far Note Communications must be opened with the SYSMAC Board before pcread can be executed Conversion Examples Examples are given below according to the various storage formats of convert ing data that has been read 1 2 3 1 I type Decimal Format Read data 12345678 Numerals 9enl unsigned int vall val2 unsigned int far pl p2 pl unsigned int far amp vall p2 unsigned int far amp val2 pertead pel Ply PZ Results vall 1234 0x04d2 val2 5678 0x162e Numeral Array Snl signed int val 2 unsigned int far p p unsigned int far val PELA aii wip BOLL p Results val 0 1234 0x04d2 val 1 5678 0x162e Characters
76. e divided into an output area and an input area and allocated as shown in the following diagram Each node address is allocated one input and one output word If a Slave requires more than one input or one output word then it is assigned more than one node address If a Slave requires less than one word it simply uses the rightmost bits in the word allocated to it IR 50 L IR 50 Node 00 Output IR 51 Node 01 area To Slaves IR 99 IR 98 Node 48 MR99 Node49 IR 350 Input 18350 Node 00 area IR 351 Node 01 From Slaves IR 399 SIR 398 Node 48 R 399 Node 49 If a CompoBus D Configurator is not used I O can be allocated using fixed allocations only The SYSMAC Board does not provide CompoBus D Configura tor ISA Board functions To use a CompoBus D Configurator you must either use a special ISA Board or use another personal computer to run the Configura tor A Configurator can be used to allocate blocks 1 and 2 in the output area and input blocks 1 and 2 in the input area in any order to the node addresses in any order CompoBus D Master Function Section 1 6 Each node is allocated at least one byte leftmost or rightmost If a Slave requires more than one input or one output word then can be allocated more than one input or output word If a Slave requires less than one word it is allo cated either the right or left byte in a word
77. e power is being supplied Doing so may result in serious electrical shock or electrocution Note You may not be able to replace the battery in time to save the data unless you have a spare battery on hand Prepare a spare battery in advance so that it is ready when you need it Battery Life The life of the battery is 5 years at 25 C The battery life will be shortened if it is used at higher temperatures A battery error non fatal will occur when the voltage of the battery drops and the following indications will be made e The ER ALARM indicator will flash e SR 25308 will turn ON e A battery error will be registered in the SYSMAC Board and can be read out from a Programming Device Detection of a low battery voltage can however be disabled in the PC Setup DM 6655 If detection is disabled none of the above indications will be made i e a battery error will not occur regardless of the voltage of the battery Note 1 Replace the battery within one week after the battery error occurs Program and other data will be lost if the battery is not replaced 2 The battery must be replaced every 5 years even if a battery error does not occur Never use a battery longer than 5 years Replacement Procedure Use the following procedure to replace the battery Note 1 Before starting to replace the battery take appropriate anti static measures such as grounding to pre vent computer circuits from being destroyed 2 There are shape poin
78. e shutdown signal from an uninterruptive power supply is input to an Input Unit on an Expan sion I O Rack This input is used to cause an FALS instruction fatal system error to be executed and thus stop SYSMAC Board operation In this configuration an OMRON BX500 Backup uninterruptive Power Supply is used to input a signal to the SYSMAC Board to stop operation when a power interruption occurs The Backup Signal Output BV from the Backup Power Supply turns ON when a power interruption occurs This signal is input to an Input Unit on an Expansion I O Rack When the signal turns ON an FALS instruction is executed to create a fatal system error and stop execution of the ladder diagram program in the SYSMAC Board The BX500 Backup Power Supply will provide a maximum of 300 W backup power for 3 5 minutes The Backup Power Signal can thus be used to in the ladder diagram program to execute system shutdown processing before FALS is executed as required by the system After the power is reset clear the FALS and then resume operation Place this instruction at the beginning of the ladder diagram program Shutdown ON from DC Input Unit on Expansion I O Rack 01000 FALS 07 01 FALS will create a fatal error when executed and stop operation of the SYSMAC Board SYSMAC Board Backup Power Supply 100 VAC 1 0 Connecting Cable Power Supply Unit C200PC CN221 DC Input Unit C200HW PA2048 C200H ID212 24 VDC
79. e signal lines and each of the power lines ny Strip to match the crimp terminals 4 Connect the crimp terminal to the lines and then cover any exposed areas of the cable and lines with electricians tape or heat shrinking tubes We recommend the following crimp terminals Phoenix Contact K K Al series Crimp Terminals m ER Crimp Wire terminal Insert the line into the terminal and then crimp The following crimp tool is also available Phoenix Contact K K ZA3 Crimp Tool Connecting _ Turn off the power supply to the computer and Slaves and turn off the commu Communications Cables nications power supply before connecting CompoBus D Communications Cables 1 2 3 1 Remove the connector from the CompoBus D communications connector on the SYSMAC Board Pr Ly F NUI F L fe 54 External Connections Section 2 5 Note The connector can be wired even when connected to the SYSMAC Board as long as it is accessible 2 Orient the connector properly loosen the line lock screws and then insert the lines into the holes in order Black blue shield white and then red T branch Connections Multi drop Connections Black Blue CAN low Shield For multi drop connections with Thin Cables two lines are inserted into each hole as shown in the diagram on the right above Be sure to place crimp terminals on each of the lines Do not use a multi drop connection with Thick Cables use a T branch Connector
80. efully position the Units so that no excessive force is applied to the special flat cable connected to the SYSMAC Board Cable Viewed from the Side Carefully install the SYSMAC Board and the Expansion Option Board so that the flat cable will not be forced to bend beyond it s natural limit Expansion Option Board connector SYSMAC Board connector In the example at the left the flat cable would be forced to bend excessively Do not con nect the cable like this SYSMAC Board connector Expansion Option Board connector When using the Expansion Option Board carefully position the Units so that the flat cable can be easily connected Mounting Procedure The following is a generalize mounting procedure Refer to your computer s user s manual for details and differences Note 1 Turn the power off to the computer and all peripheral devices before starting to install the SYSMAC Board 2 Be extremely careful of static electricity when installing the SYSMAC Board Static electricity can destroy the SYSMAC Board or your computer 3 Be extremely careful not to damage any other components inside your com puter 1 2 3 1 Remove the computer s cover by unscrewing the mounting screws and lift ing it off Mounting e ee f screw m q 5 cM err Ss 50 Support Board Installation Section 2 4 2 Remove the slot cover Set aside the screw s that held the slot cover it will be used to hold the SYSMAC Board
81. essing 101 Expansion I O Cables 12 Expansion I O Racks 2 12 connecting 53 expansion instructions 45 F FINS commands 17 floppy disk drive requirements 9 functions SYSMAC Board functions 22 H hard disk requirements 9 hardware setup 30 hardware setup 33 High density I O Unit group 2 3 Host Link commands 12 Host Link Unit 3 I O Allocation 14 default allocations 16 user set allocations 16 I O port address setting 46 64 I O ports 34 Indicators 43 installation 30 installation 33 Support Board 49 L language library C language library 2 23 LED indicators 43 107 Index M measurement program 90 memory addresses 34 setting 64 memory areas 12 CPU 25 reading data 76 reading writing 23 retained data areas 24 writing data 82 message communications 17 Mountable Units 13 MS Master status indicator 43 N node address setting 46 NS Node status indicator 43 O operating mode 24 changing 66 operating system requirements 9 OS requirements 9 P peclose 23 peclose 62 66 pcinit 23 pcinit 62 64 pemode 23 62 66 pcopen 23 pcopen 62 65 pcread 23 62 76 pestat 23 62 68 pewrite 23 62 82 performance measuring 89 read write performance 89 Peripheral Device connecting 59 108 Personal computer requirements 9 PLC communications library 62 functions 61 required
82. expansion to decimal overflow portions will be ignored Each variable from val will be converted to one word of data If a number greater than 1 is specified for n then that number of variables will be required from val The variable val type will be numeral for unsigned int far Regards write data as numerals and expands it to hexadecimal for writing At the time of expansion to decimal overflow portions will be ignored Specifications regarding val are the same as for nl Regards write data as numerals and expands it to octal for writing At the time of expansion to octal overflow portions will be ignored Specifications regarding val are the same as for nl Regards write data as numerals and expands it to decimal BCD conversion for writing At the time of expansion to decimal overflow portions will be ignored The write data is stored in va as an array variable If a number greater than 1 is specified for n then a single array variable containing that number of variables will be required for val The variable val type will be numeral for unsigned int far Regards write data as numerals and expands it to hexadecimal for writing At the time of expansion to decimal overflow portions will be ignored Specifications regarding val are the same as for 6Snl Regards write data as numerals and expands it to octal for writing At the time of expansion to octal overflow portions will be ignored Specifications regarding val are
83. files 59 PLC DIP Switch settings 44 PLC ERR ALARM indicator 43 PLC Link Unit 3 PLC RUN indicator 43 power interruptions handling 105 precautions for Expansion I O Racks 53 general xi programming 30 Programming Devices 13 programming instructions 12 R remote I O communications 16 communications errors 48 Remote I O Master Unit 3 requirements PC system requirements 9 RS 232C port 24 cable specifications 28 S U setup procedures 30 Special I O Units connecting 2 T O allocation 15 specifications 25 Board specifications 28 CompoBus D communications 27 CPU 25 general 25 RS 232C port cable 28 status reading PLC status 68 SYSMAC Board status 23 switches 35 system configuration 5 troubleshooting 101 user memory area enabling 45 Revision History A manual revision code appears as a suffix to the catalog number on the front cover of the manual Cat No V201 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 Bae Revised content December 1998 Original production 109
84. gned int pcinit unsigned int pcopen unsigned int pcclose unsigned int pcstat main void int ret 1 7 u nsigned cnar val 10 10 H Location to store error history data unsigned char far valp unsigned char ch Dummy unsigned char far chp unsigned char ne 0 Network address unsigned char no 0 Node address unsigned int mcmd 2 Main command Read history unsigned char port addr 1 I O port base address 0370 unsigned char dpram addr 7 DPRAM base address D4000 ch 10 Specify 10 records valp unsigned char far amp val 0 0 chp unsigned char far amp ch ret pcinit port addr dpram addr SYSMAC Board addresses set if ret 0 printf PLC setting error Return value d An ret exit ret pcopen Library opened TE wet aoe of printf Error opening library Return value d An ret exit printf The SYSMAC Board error history will be read from the first n n printf A total of d records will be read n ch switch pcstat ne no memd chp valp case 0 printf Error history was read successfully n printf A total of d records were read n n ch Xf Coon 0 9 4 printf The following data was read n for i 0 i lt ch it printf Error History Record d i 1 tor 3 O0r g LOG JEt printf
85. ications Library 61 3 Using the PLC Communications Library 0 0 0 0 eee eee 62 3 2 JLaibrary Functions id exe Rede Ae x ere edem ope ere 64 pcinit CHANGE SETTINGS add acceso e eee pr b als 64 pcopen PEG OBEN cas tees dots ae edito dae ae alah 65 peclose PEC CLOSE orn ERE ERUNT PESE n SE Rem 66 pemode y PEC MODE cR OD Ai S Se 66 pestat PLE STATUS t reet URS EEUU Eee tud 68 pcread PLEREAD e he eee 76 pcwnuteQ PLE WRITE ui A aaa rais 82 SECTION 4 Read Write Performance oooooooo mono 89 4 1 Measurement Program o 90 4 2 Measurement Results 0 0 eee or 92 SECTION 5 Troubleshooting 0x4 00d a DOIL Appendices A Replacing the Battery 4 ena eeu vex rev en ae ae AE 103 B Handling Power Interruptions 0 0 00 ccc eee eee ee 105 Dull x lt script S107 Revision History ooooooooooooooooooooo 109 vii About this Manual This manual describes the installation and operation of SYSMAC Board PLCs Programmable Control lers The SYSMAC Boards are ISA bus compatible boards that provide functionality equivalent to a SYS MAC C200HX HG HE PLC The following manuals may also be required to install and run a PLC System based on the SYSMAC Board Manual Contents Cat No suffixes omitted SYSMAC Board Mainly describes information required to connect a SYSMAC Board to an V201 this Operation Manual ISA bus manual Refer to the C200HX HG HE
86. illustration Side Front 0 6 mm 3 5 mm 4 Connect the connector back to the SYSMAC Board being sure to orient the connector in the correct direction Press the connector all the way to the lar E Ai 5 Tighten the two screws that were loosened in step 1 above using a flat blade screwdriver to a torque of 0 2 Nem Note The tensile strength of the CompoBus S is 50 N Do not pull the con nector with a force exceeding 50 N 2 5 4 Connecting the SYSMAC Board s RS 232C Port With No Expansion Option Board A Programming Device is connected to the RS 232C connector on the SYSMAC Board to adjust PLC settings and program monitor the PLC Note When the Expansion Option Board is connected the RS 232C port on the SYSMAC Board cannot be used 58 Section 2 6 Required Files The following Connecting Cable must be used to connect the Programming Device to the SYSMAC Board Mode Specification ES100 CT023 202 9 pin connector for IBM PC AT or compatible For pin arrangements of the above cable refer to 1 10 6 RS 232C Port Cable Specifications Refer to the SYSMAC CPT Controller Programming Tool User Manual W333 or the SYSMAC Support Software Operation Manual Basics W247 for connection methods Note Be sure to double check the wiring before using the connection cables 2 5 5 Connecting the Expansion Option Board s RS 232C Port and Peripheral Port Note By connecting the C200PC EXP01 Expansion Option Board t
87. imer PV 28 64 1 128 word words MONITOR MONITOR MONITOR Memory model Average time per call ms Counter PV DM Extended DM 1 128 word words 128 words 1 128 word words MONITOR MONITOR DOS V 120 MHz and C200PC ISA12 DRM E pcread MONITOR Average time per call ms AR LR Timer PV 28 64 1 128 word words MONITOR MONITOR 93 Measurement Results MONITOR Average time per call ms Section 4 2 Counter PV Timer Flag Counter Flag DM Extended DM 1 word 128 words 1 word 128 words 1 word 128 words 128 words 1 word 128 words MONITOR MONITOR MONITOR Memory model Average time per call ms Counter PV Timer Flag 1 word 128 words 1 word 128 words MONITOR pewrite MONITOR MONITOR Average time per call ms AR LR Timer PV 28 64 1 128 word words MONITOR MONITOR MONITOR Memory model Average time per call ms Counter PV Extended DM EM 0 1 word 128 words 1 word 128 words 1 word 128 words MONITOR MONITOR
88. ividual areas specified with a sub of OR i e a write must be within only one of the areas format Storage Format The format used to store the read data in memory is specified with one of the codes in the following table A different format can be specified for each of the words specified with num If the contents of the data cannot be interpreted in the specified format zeros will be stored n in the formats listed in the following table is replaced with the number of words to which the format is to be applied n can be omitted in which case a default value of 1 is used The formats are applied in order to each word being read Note A format must be specified for each word being read i e the total of all values for n must be equal to the value specified for num The function may not execute properly if there is not a format specified for each word Format Operation and storage method Interprets read data as decimal and stores it as numerals Data that cannot be interpreted as decimal will be regarded as 0 A single word of data will be stored in a single va variable If a numeral of 2 or greater is specified for n then n number of val variables will be required The variable val type will be numeral for unsigned int far Interprets read data as hexadecimal and stores it as numerals Data that cannot be interpreted as hexadecimal will be regarded as 0 Specifications regarding val are the same as for nl
89. kup PLC DIP Switch Sets PLC operating parameters Expansion Option Board Connector A Used to connect a flat cable to the Expan sion Option Board EEPROM Write Protect Switch Write enables disables the EEPROM Expansion Function Connector Not used Do not connect anything CompoBus D DIP Switch Sets CompoBus D communications parameters 7 CompoBus D Unit Number Switch Sets the unit number of the CompoBus D Master CompoBus S Status Indicators RUN ERC SD RD ipen CompoBus S Error Slave Indicators Indicators l IN OUT 8 4 2 1 Show the operating status 5 of the SYSMAC Board the m PLG RUN Indicator CompoBus D Master and PLC ERR ALARM Indicator the CompoBus D Network wer PLC COM Indicator CompoBus D Connector Connected to the CompoBus D Network The cable connector is mounted in the connector at the factory RS 232C Connector Connected to Programming Devices Cannot be used when the Expansion Option Board is connected Expansion I O Connector Connected to the C200HS HG HE Expansion I O Rack 37 Components Section 2 2 C200PC EXP01 Expansion Option Board Card Edge Connector Connected to computer s ISA connector With the Expansion Option Board data is not directly transmitted with the computer and the Connector is used only to secure the Board to the computer SYSMAC Board Connector Used to connect a flat cable to the SYSMAC Board Q
90. les Do not touch the communications connectors while the power is being supplied in order to prevent any malfunction or breakdown due to static electric ity 1 2 3 1 Loosen the two screws fixing the CompoBus S communications connectors to the SYSMAC Board and then remove the cable connector cH Cable connector Note If the Communications Cable can be connected with the screws on there is no need to remove the screws 2 Loosen the signal line lock screws on the cable side connector and then insert the two signal lines into each hole while paying attention to the orientation of the terminal block 57 External Connections Section 2 5 Note Be sure the line lock screws are sufficiently loosened before attempting to insert the lines If these screws are not loose the lines will enter the gaps in the back of the connector and will not lock properly Fitting Wire insertion hole l y 2 Wires 3 Tighten the line lock screws for each line in the connector You will not be able to tighten these screws with a normal screwdriver which narrows to a point at the end You will need a screwdriver that is consistently thin for the entire length The line lock screws must be tightened to a torque of 0 5 N m Use a flat blade screwdriver that is consistently slender at the end The following OMRON XW4Z 00C Screwdriver is available to tighten the line lock screws The shape of this Screwdriver is shown in the following
91. mmunications power supply 3 Pin 1 is factory set to OFF INO to 7 OUTO to 7 4 The connectable node address setting determines a total number of words allocated to the CompoBus S Master in the Special I O Unit Area and also the communications cycle with the Slave Units Refer to CompoBus S Operation Manual W266 5 If the connectable node address is set to INO to 15 OUTO to 15 the Special I O Unit Area words for two Units will be allocated and the the number next to the set unit number will also be used by the CompoBus S Master Be careful not to use next unit number for another Special I O Unit 2 4 Support Board Installation Once the SYSMAC Board s switches have been set it can be installed in an expansion slot of the computer The following procedure is a generalize proce dure to install the SYSMAC Board in an IBM PC AT or compatible computer Refer to the user s manual for your computer and install the SYSMAC Board cor rectly N WARNING Never touch the Board or the interior of any other Unit or attempt to disassemble a Unit while power is being supplied Doing so may result in serious electrical shock or electrocution Mounting Restrictions Only one SYSMAC Board can be installed in each computer The SYSMAC Board must be installed in an ISA bus connector The ISA bus connector should match the connector on the SYSMAC Board 49 Support Board Installation Section 2 4 When using the Expansion Option Board car
92. mode operating mode change function 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 xiv SECTION 1 Introduction This section describes the features specifications and configuration of the SYSMAC Board Tel EGat res usd bad A ide 2 1 2 List of Available Models liie snaait hae er mmt de 4 122 1 SYSMAC Boards esee E ee i Ee ee OAR hae REDI POE de 4 1 2 2 Expansion Option Board 0 0 eee eee eae 4 1 3 System Configuration se s ostias dp RR RR RR RR REA Oe paw S RE 3 124 Package Contents oe lec breve p Re DER pet St e ene ae 10 1 5 Programmable Controller Functions sleleeleeeeee eee 11 1 6 CompoBus D Master Function 0 0 0 eects 15 1 7 CompoBus S Master Function 0 0 0 eee eens 19 1 8 Computer Board Functions 0 00 0 eee ce eee nee 22 1 9 Differences from Standard PLCs 0 0 00 cee eee eee 24 110 Specifications opes Debe EUER A ae a eta E 25 1 10 1 General Specifications 0 0 00 0 ee eee eee 25 1 10 2 SYSMAC Board CPU Specifications 0 0 0 0 eee eee eee 25 1 10 3 CompoBus D Communications Specifications 0 000 000 000 27 1 10 4 CompoBus S Communications Specifications 0000000 28 1 10 5 Board Specifications 0 0 0 eects 28
93. mpoBus D Master Unit The CompoBus S communications function is equivalent to that provided by a C200HW SRM21 CompoBus S Master Unit The other similarities and differences between Units not provided here are the same as those for C200HX CPU64 E and C200HG CPU43 E CPU Units Refer to the C200HX HG HE ZE Programmable Controllers Operation Manual W322 1 2 2 Expansion i dioi E Board Peripheral port RS 232C port ae EXP01 Equivalent to C200HX Equivalent to C200HX and C200HG PLCs and C200HG PLCs female D sub 9 pin The SYSMAC Board is connected to the Expansion Option Board using the Flat Cable that is provided with the Expansion Option Board System Configuration Section 1 3 The SYSMAC Board has a built in RS 232C port If an Expansion Option Board is not used the RS 232C port can be used to connect external devices or com puters running Support Software The Expansion Option Board is mounted in one slot on the ISA XT bus but it does not use any resources I O ports memory or IRQ Note When an Expansion Option Board is connected the SYSMAC Board s RS 232C port cannot be used 1 3 System Configuration A system configuration for the SYSMAC Board is shown in the following illustra tion C200PC ISA 01 E SYSMAC Board without CompoBus User application program IBM PC AT or Using C language library compatible pcopen A peread __ Note The following functions are supported CHANGE SETTINGS
94. mpoBus D Master Unit Power Supply Unit C200HW BC031 Backplane Communications Peripheral connector connector Expansion 1 O RS 232C connector connector To CompoBus D To Programmable Terminal Network or other external device To Expansion I O To Programming Device Rack 11 Programmable Controller Functions Section 1 5 C200PC ISA 12 SRM E SYSMAC Board with CompoBus S CPU Unit C200PC ISA02 E C200HG CPU43 E C200PC ISA12 E C200HX CPU64 E C200HW DRM21 EV1 CompoBus D Master Unit Power Supply Unit C200HW BCO031 Backplane Communications connector Expansion I O RS 232C connector connector To CompoBus S To Programming Device Network To Expansion I O Rack C200PC ISA _ 2 SRM E SYSMAC Board with CompoBus S Plus C200PC EXP01 Expansion Option Board CPU Unit C200PC ISA02 SRM E C200HG CPU43 E C200PC ISA12 SRM E C200HX CPU64 E C200HW SRM21 CompoBus S Master Unit Power Supply Unit C200HW BC031 Backplane Communications Peripheral connector connector ed a um RS 232C connector To CompoBus S To Programmable Terminal I Network or other external device To Expansion I O To Programming Device Rack Note The SYSMAC Board is essentially the same as either a C200HG CPUA3 E or C200HX CPU64 E CPU Unit depending to the model used This manual does not contain descriptions of the memory areas programming instructions Host Link commands or other functionality covered in the manuals fo
95. nd equipment with double safety mechanisms This manual provides information for programming and operating OMRON PLCs Be sure 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 PLC and all PLC Units 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 PLC System to the abovementioned applications Safety Precautions N WARNING Caution N Caution Do not attempt to disassemble or touch the inside of the SYSMAC Board while the power is being supplied Doing so may result in electric shock 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 the I O memory area Doing either of these without confirming safety may result in injury Operating Environment Precautions Do not operate the system in the following places e Locations subject to direct sunlight e Locations subject to temperatures or humidity outside the range specified in the specifications e Locations subject to condensation as the result of severe changes in tempera ture Application Precautions
96. nd the handling of communications error for CompoBus D communications CompoBus S unit number CompoBus D node number switch Set the unit number of the SYSMAC Board s CompoBus S Master Unit CompoBus S communications parameters CompoBus D communications parameter DIP switch Sets the baud rate and the handling of communications error for CompoBus S communications Note 1 The above settings should be made before the SYSMAC Board is installed into the computer Although you may be able to change the settings after installation doing so will require that you open up the computer case to access the SYSMAC Board 2 Always turn off the power supply to the computer and all peripheral devices connected to the computer before opening the case to change switch set tings Also turn off the power supply to all CompoBus D Slaves and the CompoBus D Network s communications power supply 2 3 1 PLC DIP Switch Same for All Boards The PLC DIP switch is used to set operating parameters for the SYSMAC Board as a PLC The I O port addresses used for communications between the SYS MAC Board and the computer are also set Factory defaults shown in diagram 44 Board Switch Settings Section 2 3 Pin 1 User Memory Write Pin 1 can be set to either enable or disable writing to the user memory area Pin Senn Fux on 1 ON OFF Protect The UM area cannot be overwritten from
97. ned char val 4 unsigned char far p val2 05678 pl unsigned int far amp vall p2 unsigned int far amp val2 pcwrite 20 p1 p2 Numeral Array SnO unsigned int val 2 unsigned int far p val 0 01234 val 1 05670 p unsigned int far val powrite rior Pat SS 20 9p Characters nO unsigned char val1 4 val2 4 unsigned char far pl p2 val1 0 1 0x31 val1 1 2 vall 2 3 0x33 val1 3 4 val2 0 5 0x35 val2 1 6 val2 2 0x37 val2 3 0 pl unsigned char far vall p2 unsigned char far val2 12 rah 6 zt TRI PI 0x32 0x34 0x36 0x30 0x325 0x34 0x36 0x30 0x52 0x54 Library Functions Section 3 2 Return Values val 0 0 0x51 val 1 R 0x52 val 2 S 0x53 val 3 T 0x54 p unsigned char far val powrite S2A p Meaning Ended normally Communications have not been opened execution not possible Illegal parameter Ended in an error response error Communications timeout no response within 10 s 87 Library Functions Section Example PARAR ARA RIA RAR RARA ck kok ck kok ck ckok ck kok ke ke e e x x Writing to a SYSMAC Board Memory Area KOR KR KR KKK KK KK kOkck ck okck ck kok ck kok ck kok ck k ke x ke e e x x extern unsigned int pcinit extern unsigned int pcopen extern
98. nit No D l only IR 440 Unit No E raso Unit No F Slaves with 16 outputs or 16 inputs use 2 node addresses and I O is allocated in the same words as follows 20 CompoBus S Master Function Section 1 7 1 O Allocations for IN O to 15 OUT 0 to 15 If the Slave is set to a node address with an even number the previous node address will also be used If the Slave is set to a node address with an odd number the next node address will also be used Example If a Slave with 16 output points is set to node address 3 it will used the words shown above for Output Slave 2 and 3 If the Slave is set to node address 6 it will use the words shown above for Output Slave 6 and 7 If the Slave required both input and output allocations it needs to only have the node address set inputs and outputs for the same node address will be used Example If a Slave with 8 points 4 inputs and 4 outputs is connected to node address 2 it will used both input node address 2 and output node address 2 Slaves with 4 outputs or 4 inputs will occupy one node address as follows If the Slave is set to a node address with an even number it will use bits 08 to 11 Bits 12 to 15 will not be used If the Slave is set to a node address with an odd number it will use bits 00 to 03 Bits 04 to 07 will not be used When the connectable node addresses is set to IN 0 to 15 OUT 0 to 15 20 words are used so twice the amount of Units use the IR area Special
99. nput Slave Participation Flags a e First word 18 ld Q ola 0 Input Slave Communications Error Flags Output Slave Participation Flags Slave 15 Q Slave 15 0 First word 19 Slaves with 16 outputs or 16 inputs used 2 node addresses and I O is allocated in the same words as follows If the Slave is set to a node address with an even number the previous node address will also be used If the Slave is set to a node address with an odd number the next node address will also be used 21 Computer Board Functions Section 1 8 Status Area Note Note Example If a Slave with 16 output points is set to node address 3 it will used the words shown above for Output Slave 2 and 3 If the Slave is set to node address 6 it will use the words shown above for Output Slave 6 and 7 Slaves with 4 outputs or 4 inputs will used one node address as follows If the Slave is set to a node address with an even number it will use bits 08 to 11 Bits 12 to 15 will not be used If the Slave is set to a node address with an odd number it will use bits 00 to 03 Bits 04 to 07 will not be used When the connectable node addresses are set to IN 0 to 15 OUT 0 to 15 unit numbers 9 to F cannot be set The flags used in the Status Area are as follows Output Slave Participation Flags These flags show whether the communications have been established for each Output Slave Output Slaves 0 to 15 in one bit for each Slave 0 OFF
100. ns Specifications Communications Half duplex Synchronization Start stop Baud rate 1 200 2 400 4 800 9 600 or 19 200 bps Transmission method Point to point Transmission distance 15 m max Interface Conforms to EIA RS 232C Pin Assignments A 6 Abbreviation Direction 1 Field ground Ss 2 Send data Output e 3 Receive data Input oc 4 Request to send Output o ui 5 Clear to send Input o S 6 Power supply lA 7 Data set ready Input 5 9 8 Data terminal ready Output 9 Signal ground Connector Field ground hood Connection Method The RS 232C port on the Expansion Option Board can be connected to a per sonal computer as shown in the following diagram Expansion Option Board Personal computer Signal Pin Signal Pin I Li J rra Y 25 pin connector 9 pin connector 29 Setup Procedures Connectors and Cables Section 1 11 Use the following connectors and cables or equivalent SM2A 0901 Manufacturer OMRON XM2S 0911 OMRON AWG28 x 5P IFVV SB Fujikura Ltd CO MA VV SB 5P x AWG28 Hitachi Cable Ltd The maximum cable length is 15 m 1 11 Setup Procedures Hardware Setup User memory protection Refer to Section 2 Hardware Setup and Installation for details Make the follow ing settings before mounting the SYSMAC Board into the computer Setting PLC DIP switch pin 1 Description Enables or dis
101. nt types of information Note Indicates information of particular interest for efficient and convenient operation of the product 1 2 3 1 Indicates lists of one sort or another such as procedures checklists etc Trademarks and Copyrights Microsoft MS MS DOS Windows Windows 95 and Microsoft C C are registered trademarks of the Microsoft Corporation IBM is a registered trademark of the IBM Company DeviceNet is a registered trademark of the Open DeviceNet Vendor Association Inc The copyright to software for the CompoBus D Master functionality provided on the SYSMAC Board belongs to S S Technologies Inc OMRON 1998 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 PRECAUTION Scoop dida xi lI
102. ntended Audience isole ed eC RI EE REA ERU dU Eden xii 2 General Precautions ioseph hrs pU a rd ds xii 3 Salety Precautions cecus eer Depp ER Ball Be SORS URDU REPE CE ERES xii 4 Operating Environment Precautions 0 0 00 cece eee xii 5 Application Precautions c i sciis i eE e a e E E AE E E A eer xiii SECTION 1 Introd CON oia ei 1 lol Features es tecni neee ERES eb hatha eed a dai SE 2 1 2 List of Available Models 0 0 0 eee ec ec III 4 1 3 System Configuration 0 0 cece I eens 3 1 4 Package Contents cosce sinira nessie a 10 1 5 Programmable Controller Functions ooooocccocoooooororo ee eee 11 1 6 CompoBus D Master Function eee eee 15 1 7 CompoBus S Master Function 0 0 0 cece eee I 19 1 8 Computer Board Functions 00 eee I n 22 1 9 Differences from Standard PLCs 0 0 0 eee eee 24 1 10 Specifications c Re e e E ds ES MORSE Sa eae AA a Sel 25 EIT Setup Procedures 1 5 LR e sr Rees Es bh REC eka She des 30 SECTION 2 Hardware Setup and Installation 33 2 1 Setup Confirmations oss o ue id RR eoe eee ERU E e Re dpt 34 212 COmponBeDIs gu PRIORE A E ESAE ES 35 2 3 Board Switch Settings ciar often EE 44 2 4 Support Board Installation o oooooooccorococooo eee 49 2 5 External Connections se osissa e eR emere pue e see o 52 2 6 Required Files 5 e a ai ate titan ates Ii ti ae ee 59 SECTION 3 SYSMAC Board Commun
103. o the SYSMAC Board the same connectors and cables can be used for the RS 232C port or peripheral port as on the C200HX HG HE For further details refer to the C200HX HG HE E ZE Installation Guide W302 or C200HX HG HE ZE Operation Manual W322 1 Be sure to double check the wiring before using the connection cables 2 When connecting cables to the peripheral port be careful not to break the connector pins 2 6 Required Files Note Once the hardware setup has been completed the PLC communications library files must be coped to the hard disk The following files are provided on the floppy disk It is necessary to copy only the files required for the user applica tions e Compact models CLIBC LIB e Small models CLIBS LIB e Medium models CLIBL LIB e Large models CLIBM LIB e Huge models CLIBH LIB The files can be copied to any directory but it is best to copy them to a directory that is easily linked with the user applications 1 The PLC communications library uses Microsoft C C Ver 7 2 A software driver is not required for the SYSMAC Board lt can be used by writing a user application with the PLC communications library functions and then linking the application to the PLC communications library files 3 For applications on Windows 95 or Windows NT purchase the FinsGateway for Windows 95 or the FinsGateway for Windows NT separately SECTION 3 SYSMAC Board Communications Library This section describes
104. oard execute the application at the MS DOS prompt or in the DOS mode 3 The PLC communications library attached to the SYSMAC Board cannot be used on Windows NT 4 Driver libraries for the Windows 95 or Windows NT FinsGateway for Win dows 95 and FinsGateway for Windows NT are separately sold The following functions are available in the PLC communications library Name Operation Page Sets the I O port address and base address in common memory to use for communications between the SYS MAC Board and computer Initializes communications for the SYSMAC Board and starts communications between the SYSMAC Board and the computer Ends communications between the SYSMAC Board and the computer Changes the SYSMAC Board operating mode PRO GRAM MONITOR RUN Accesses and controls SYSMAC Board status including the following Reading status Clearing errors Reading the error history Clearing the error history Reads data from a SYSMAC Board memory area Writes data into a SYSMAC Board memory area The source files for the sample programs used in this sections are provided in the SAMPLE directory on the floppy disk as shown below Source Files Microsoft C C 7 0 Make Files PCMODE C PCMODE MAK PCOPEN C PCOPEN MAK PCREAD C PCREAD MAK PCSTAT 1 C PCSTAT 1 MAK PCSTAT 2 C PCSTAT 2 MAK PCSTAT 3 C PCSTAT 3 MAK PCSTAT 4 C PCSTAT 4 MAK PCWRITE C PCWRITE MAK The following procedure is require
105. oard is in PROGRAM mode A fatal error has occurred and program execution has stopped Power is not being supplied to the SYSMAC Board PLC ERR ALARM ON A fatal error has occurred program execution has stopped and all outputs from Output Units have been turned OFF Flashing A non fatal error has occurred program is still being executed OFF Either the operation is normal or power is not being supplied to the SYSMAC Board PLC COMM 1 ON Communications are being executed through the RS 232C port peripheral port Communications through the RS 232C port peripheral port are stopped A fatal communications error has occurred A node address duplication or Bus Off error was detected These errors make communications impossible CompoBus D NS Node status ON Normal Network online status Communications connection established Flashing The Network is normal and online but a communications connection isn t established ON A fatal communications error has occurred A node address duplication or Bus Off error was detected These errors make communications impossible Flashing A non fatal communications error a communications error in a Slave has occurred OFF A Network error has occurred and is offline or power is not turned on For example the Master is the only node in the Network CompoBus D MS Master status ON The Unit is operating normally Flashing
106. ocked into place Improper locking may result in malfunc tion e Check the user program for proper execution before actually running it on the system Not checking the program may result in an unexpected operation e Confirm that no adverse effect will occur in the system before changing the operating mode of the SYSMAC Board Not doing so may result in an unex pected operation e Confirm that no adverse effect will occur in the system before force setting force resetting any bit in memory Not doing so may result in an unexpected operation e Confirm that no adverse effect will occur in the system before changing the present value Not doing so may result in an unexpected operation e Confirm that no adverse effect will occur in the system before changing the set value Not doing so may result in an unexpected operation e Whenever a SYSMAC Board is replaced be sure to transfer all required pro grams and data to the new SYSMAC Board before starting operation Do not pull on or bend the communications cables beyond their natural limit Doing either of these may break the cables Do not place objects on top of the communications cables Doing so may break the cables e The SYSMAC Board retains HR AR CNT DM EM and clock data even when the power is OFF Data may not be properly retained unless the power is turned OFF after switching to PROGRAM mode Therefore be sure to change the SYSMAC Board mode to PROGRAM mode using the pc
107. ollers Installation Guide W302 C200HX HG HE ZE Programmable Controllers Operation Manual W322 the SYSMAC Support Software Operation Manuals W247 W248 and W249 and the SYSMAC CPT Support Tool Quick Start Guide and Users Manuals W332 and W333 for details on Programming Devices Software Model number Specifications Connecting Cables ES100 CT23 202 9 pin type at Programming Device end SYSMAC Support Software C500 ZL3AT1 E 3 5 2HD floppies IBM PC AT or compatible 3 5 floppies CD ROM Windows 3 1 95 SYSMAC CPT Support Tool WS01 CPB1 E Using an Expansion Option Board Connect the same Programming Devices and Connecting Cables that are used for the C200HX HG HE PLCs to the peripheral port and RS 232C port of the Expansion Option Board Refer to the C200HX HG HE E ZE Programmable Controllers Installation Guide W302 and the applicable operation manual for the Programming Device to be used The SYSMAC Board s RS 232C port cannot be used when the Expansion Option Board is connected 13 Programmable Controller Functions Section 1 5 Serial Communications Protocol Host Link Applicable Devices PLC to personal computer PLC to Programmable Terminal The following serial communications functions for C200HX and C200HG PLCs can be used when a C200PC EXP01 Expansion Option Board is connected Refer to the C200HX HG HE ZE Programmable Controllers Operation Manual W3
108. on Guide W302 for details on the Units to be mounted SYSMAC NET Link The SYSMAC Board corresponds to the CPU Rack so Unit Communications Boards cannot be used Therefore the SYSMAC LINK Unit Units listed here cannot be used with a SYSMAC Board PC Card Unit Controller Link Unit Other Units that must be mounted to the CPU Rack When fixed allocations are used to allocate I O words for the CompoBus D Mas ter function the words that are allocated will overlap if more than one Compo Bus D Master Unit including the CompoBus D Master function of the C200PC ISALJ2 DRM E SYSMAC Board cannot be used at the same time SYSMAC BUS Remote I O Master Units are also allocated words in the same area and they also cannot be used if fixed I O word allocations are used for the Compo Bus D Master function When a CompoBus D Configurator is used I O word allocations can be set by the users to prevent the same word from being allo cated more than one enabling the use of multiple CompoBus D Master Units and the use of both the SYSMAC BUS Remote I O function and CompoBus D Master function at the same time Connecting to SYSMAC Board s RS 232C Port Any C200HX HG HE Programming Device Software that can be connected to the RS 232C port can be used for the SYSMAC Board The special Connecting Cables for the SYSMAC Board must be used to connect to the SYSMAC Board Refer to the C200HX HG HE E ZE Programmable Contr
109. r pl p2 vall 1234 val2 5678 pl unsigned int far amp vall p2 unsigned int far amp val2 pcwrite 21 p1 p2 Numeral Array Snl unsigned int val 2 unsigned int far p val 0 1234 val 1 5678 p unsigned int far val pewrite S21 p Characters nl unsigned char val1 4 val2 4 unsigned char far pl p2 val1 0 1 0x31 val1 1 2 0x32 84 Library Functions Section 3 2 val1 2 3 0x33 vall 3 4 0x34 val2 0 5 0x35 val2 1 6 0x36 val2 2 0x37 val2 3 8 0x38 pl unsigned char far vall p2 unsigned char far val2 peowriteal tone O21 pp Character Array Snl unsigned char val 8 unsigned char far p val 0 1 0x31 val 1 2 0x32 val 2 3 0x33 val 3 4 0x34 val 4 5 0x35 val 5 6 0x36 val 6 7 0x37 val 7 8 0x38 p unsigned char far val pewrite r SS21 p 2 H type Hexadecimal Format Data to write to SYSMAC Board 789ABCDE Numerals Y nH unsigned int vall val2 unsigned int far pl p2 vall 0x789a val2 Oxbcde pl unsigned int far amp vall p2 unsigned int far amp val2 pcwrite 2H p1 p2 Numeral Array SnH unsigned int val 2 unsigned int far p val 0 0x789a val 1 Oxbcde p unsigned int far val pcwrite
110. r C200HX HG HE PLCs Refer to the manuals for C200HX HG HE PLCs for information not provided in this manual Any differences between the SYSMAC Board and the CPU Unit functionality are outlined in 1 9 Differences from a C200HG or C200HX PLC Expansion I O Racks The maximum number of C200HX HG HE Expansion I O Racks that can be connected depends on the SYSMAC Board used as shown in the following table Refer to the C200HX HG HE E ZE Programmable Controllers Installa tion Guide W302 for details on Expansion l O Racks SYSMAC Board Maximum No of Expansion Racks C200PC ISA01 E C200PC ISA02 DRM E C200PC ISA02 SRM E C200PC ISA12 DRM E C200PC ISA12 SRM E Expansion I O Cables Use the C200PC CN221 2 m Expansion I O Cable sold separately between the SYSMAC Board and the C200HX HG HE Expansion I O Rack 12 Programmable Controller Functions Section 1 5 Mountable Units Programming Devices Note Note Use the same C200H CN Expansion I O Cable between Expansion 1 0 Racks as used for the C200HX HG HE PLCs Refer to the C200HX HG HE E ZE Programmable Controllers Installation Guide W302 for details All C200HX HG HE Power Supply I O Special I O and Communications Units can be mounted to the C200HX HG HE Expansion I O Racks connected to the SYSMAC Board except for those listed in the following table Refer to the C200HX HG HE E ZE Programmable Controllers Installati
111. r than 50 N 2 5 2 Connecting CompoBus D Communications Cables C200PC ISA J2 DRM E The CompoBus D communications cables can be installed as soon as the SYS MAC Board is installed in the computer This manual provides information only on wiring the communications cables to the SYSMAC Board Refer to the Com poBus D Operation Manual W267 for details on wiring communications cables and Slaves Preparing Cables This section explains how to prepare and connect the communications cables to connectors for the CompoBus D Network Use the following procedure to pre pare and connect the communications cables to the connectors 53 External Connections Section 2 5 1 2 3 1 Remove about 30 mm of the cable covering being careful not to damage the shield weaving underneath Do not remove more than about 30 mm remov ing too much of the covering can result in short circuits About 30 mm SEN ST DOORS RI OO RSS 2 Carefully peel back the weaving You ll find the signal lines the power lines and the shield line The shield line will be loose on the outside of the other lines but it is harder than the weaving and should be easily identified Shield line 3 Remove the exposed weaving remove the aluminum tape from the signal lines and the power lines and strip the covering from the signal lines and power lines to the proper length for the crimp terminal connectors Twist together the wires of each of th
112. r the values within the ranges that have been con firmed to be available Example Set the following when l O ports 0390 to 0394H and the memory addresses D0000 to D1FFFFH are to be used I O Ports Beginning value 0390 Ending value 0394 Memory Addresses Beginning value 000D0000 Ending value 000D1FFF Components Section 2 2 6 Press the OK button in the Computer Properties Window and in the System Properties Window to reserve and confirm the set l O and memory addresses Note When using EMM386 EXE modify the contents of the CONFIG SYS file to reserve memory Using the EMM386 EXE parameter set the memory area to be used by the SYSMAC Board as prohibited addresses Parameter Setting Xzmmmm nnnn mmmm Beginning address leftmost 4 digits nnnn Ending address leftmost 4 digits Example Set the following when memory addresses D0000 to D1FFFH are to be used X D000 D1FF 2 2 Components The names and functions of the SYSMAC Board components are given in this section C200PC ISA01 E SYSMAC Board Card Edge Connector Connected to computer s ISA connector Built in Battery For memory backup _ PLC DIP Switch Sets PLC operating parameters EEPROM Write Protect Switch Write enables disables the EEPROM Indicators PLC RUN Indicator Show the operating status of the PLC ERR ALARM Indicator SYSMAC Board RS 232C Connector Connected to Programming Devices Expansion I O Connector Connected to
113. ram addr Parameters port addr I O port base address dpram addr Common memory base address Parameter IN OUT Setting Integer One of the following 1 03704 2 03804 3 03904 4 03A0yq dpram addr Integer One of the following 1 C8000 2 CA000y 3 CC000 4 CE000 4 5 D00004 6 D20004 7 D40004 8 D60004 9 D80004 DAOO0y DC000y DE000y E0000 E2000 E4000 Description pcinit is used to set the base addresses for the common memory and l O port used for communications with the SYSMAC Board using PLC communications library functions The following defaults will be used when pcinit is not used Common memory base address C8000y I O port base address O3A0y The same I O port base address must be used as the one set on the SYSMAC Board s DIP switch If the default DIP switch setting is not used pcinit must be executed to set the same address as the one set on the DIP switch 64 Library Functions Section 3 2 pcinit cannot be executed while the PLC communications library is open The base addresses that are set will remain valid until reset using pcinit or until power to the SYSMAC Board is turned off or the SYSMAC Board is reset The base addresses are set in the SYSMAC Board when pcopen is executed Return Values Ended normally Illegal parameter Communications already open cannot be executed Example Refer to the example for pcopen copen PLC OPEN Purpose Opens communications with the SYSMAC Bo
114. read this section and understand the information contained before attempting to set up or operate a PLC System 1 Intended Audience 2 General Precautions 3 Safety Precautions 4 Operating Environment Precautions 0 0 0 eee cee eee tees 5 Application Precautions xii xii xii xii xiii xi Operating Environment Precautions Section 4 1 2 3 4 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 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 machines 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 a
115. remote 1 0 The status of I O to and from CompoBus D or CompoBus S Slaves is continu ously updated in the memory of the SYSMAC Board Slave I O can therefore be read or written merely by reading writing data from to the Board s memory CompoBus D is OMRON s implementation of the international DeviceNet speci fication The DeviceNet is a floor level factory automation network A single cable can be used to connect remote Slaves to automatically exchange I O data or messages Refer to the CompoBus D DeviceNet Operation Manual W267 for details Many manufacturers market DeviceNet masters and slaves CompoBus S is OMRON s communications system for controlling I O by con necting remote slave devices such as I O devices in various locations in the system to the Master using a single cable Refer to the CompoBus S Device Net Operation Manual W266 for details 1 2 List of Available Models The following table provides a list of Boards that are currently available 1 2 1 SYSMAC Boards SYSMAC Board Equivalent CPU Unit Max No of Built in CompoBus D CompoBus S Expansion C200PC ISA01 E C200HG CPU43 E 16 K words C200PC ISA02 DRM E C200PC ISA02 SRM E Expansion EEPROM communications communications Option Racks Board C200PC ISA12 DRM E C200HX CPU64 E 32 K words C200PC ISA12 SRM E The CompoBus D communications function is equivalent to that provided by a C200HW DRM21 EV1 Co
116. rmat to the first address of the memory location holding the sub for mat specification The sub format specifies the area to be read the storage method for the data and other parameters The sub format is specified as fol lows with commas separating parameters sub start num format format format can be omitted and parameters in brackets can be input more than once Note Use only uppercase letters in the sub format sub Subcommand CIO Area SR Area LR Area 0 to 255 256 to 511 1000 to 1063 to specify LR 00 to LR 63 1064 to 1163 to specify HR 00 to HR 63 0 to 27 0 to 511 0 to 511 0 to 511 HR Area AR Area TIM Area PV CNT Area PV TIM Area Completion Flag See note CNT Area Completion Flag See note 0 to 511 76 DM Area 0 to 6655 Expansion DM Area 7 000 to 9 999 EM Area 0 to 6 143 Library Functions Section 3 2 Note The Completion Flag is ON when the timer has timed out or the counter has counted out start First Word to Read Specify the address of the first word to read from memory Use the address ranges given in the table above num Number of Words to Read Specify the number of words to read between 1 and 128 but be careful not to specify more words than are in the area being read If the end of the area is exceeded a return value of 5 will be returned to indicate an illegal parameter This is also true for the ind
117. s e 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 Install external breakers and take other safety measures against short circuit ing in external wiring Insufficient safety measures against short circuiting may result in burning e Always turn off the power supply to the SYSMAC Board before attempting any of the following Performing any of the following with the power supply turned ON may lead to electrical shock e Assembling the system e Setting DIP switches or rotary switches e Connecting or wiring cables e Connecting or disconnecting any connectors Do not attempt to disassemble repair or modify the SYSMAC Board Any attempt to do so may result in malfunction fire or electric shock e Be sure that all the mounting screws terminal screws and cable connector screws are tightened to the torque specified in the relevant manuals Incorrect tightening torque may result in malfunction Double check all the wiring before turning ON the power supply Incorrect wir ing may result in burning xiii Application Precautions Section 5 e Be sure that the connectors expansion cables and other items with locking devices are properly l
118. s 1 128 word words MONITOR MONITOR DOS V 400 MHz and C200PC ISA02 DRM E pcread MONITOR Average time per call ms AR LR Timer PV 28 64 1 128 word words MONITOR MONITOR 96 Measurement Results MONITOR Average time per call ms Section 4 2 Counter PV Timer Flag Counter Flag DM Extended DM 1 128 word words 1 128 word words 1 128 word words 128 words 1 128 word words MONITOR pewrite MONITOR MONITOR Memory model Average time per call ms AR LR Timer PV 28 64 1 word 128 words MONITOR MONITOR MONITOR Average time per call ms Counter PV DM Extended DM 1 128 word words 128 words 1 128 word words MONITOR MONITOR DOS V 400 MHz and C200PC ISA12 DRM E pcread MONITOR Average time per call ms AR LR Timer PV 28 64 1 word 128 words MONITOR MONITOR MONITOR Average time per call ms Counter PV Timer Flag Counter Flag DM Extended DM 1 128 word words 1 128 word words 1 128 word words 128 word
119. s 1 128 word words MONITOR MONITOR MONITOR Average time per call ms Counter PV Timer Flag 1 128 word words 1 128 word words MONITOR MONITOR 97 Measurement Results Section 4 2 pewrite MONITOR Average time per call ms AR LR Timer PV 28 64 1 128 word words MONITOR MONITOR MONITOR Average time per call ms Counter PV Extended DM EM 0 1 128 word words 1 128 word words 1 128 word words MONITOR MONITOR DOS V 400 MHz and C200PC ISA02 SRM E pcread MONITOR Average time per call ms AR LR Timer PV 28 64 1 128 word words MONITOR MONITOR MONITOR Average time per call ms Counter PV Timer Flag Counter Flag DM Extended DM 1 128 word words 1 128 word words 1 128 word words 128 words 1 128 word words MONITOR MONITOR pcwrite MONITOR Memory model Average time per call ms AR LR Timer PV 28 64 1 128 word words MONITOR MONITOR MONITOR Average time per call ms Counter PV
120. s not exist Communications must be opened with the SYSMAC Board before pcstat can be executed Reading the Error History When mcma is set to 2 either the number of records currently stored in the error history or the contents of the error history will be read Communications must be opened with the SYSMAC Board before pcstat can be executed Reading the Number of Records Set ch to the address of a memory location containing 00 1 byte The number of records currently in the error history 0 to 10 will be stored at the address spe cified for ch after pcstat is executed Set val to 0 Reading the Contents of the Error History Set ch to the address of a memory location containing the number of error his tory records to be read 1 byte hex Up to 10 records can be read at once Set the value to between 1 and 10 The contents of the specified number of records will be stored after pcstat is executed Set va1 to the beginning address in which to store the contents read from the error history The entire area beginning with the specified address will need to be 10 bytes times the number of records specified There is no specific order in which the records will be read out from the SYSMAC Board e g there is no guarantee that the first record read out will be the newest Always read out all 10 records whenever possible The structure of the 10 bytes read out for each record is as follows Bit 1 2 3 4 5 B y a J 18 E
121. s of memory addresses is used on the computer by the SYS MAC Board Confirm that one of these is available for use by the SYSMAC Board If none of these ranges is available reset another resource so that one of them can be used by the SYSMAC Board C8000 to C9FFF D8000 to D9FFF CA000 to CBFFF DAO00 to DBFFF CC000 to CDFFF DCO000 to DDFFF CE000 to CFFFF DE000 to DFFFF D0000 to D1FFF E0000 to E1FFF D2000 to D3FFF E2000 to ESFFF D4000 to D5FFF E4000 to ESFFF D6000 to D7FFF Do not set the memory area used by the SYSMAC Board to Shadow RAM When using Windows 95 confirm the available resources by opening the Sys tem Icon from the Control Panel and then display the Computer Properties using the Device Manager 2 1 2 Reserving Resources 34 1 2 3 Use the following procedure to reserve the resources e g I O ports and memo ries for the SYSMAC Board so that they will not be used for other applications 1 Click the Start button in Windows 95 and select Settings and then Control Panel 2 Double click the System icon in the Control Panel Window The System Properties Window will be displayed 3 Display the Device Manager tab and then select Computer and click Prop erties The Computer Properties Window will be displayed 4 Display the Resource Reservations and then select I O Port Address or Memory and click the Add button 5 Enter the range to be used by the SYSMAC Board and then click the OK button Be sure to ente
122. s the functions and specifications of the SYSMAC Boards Read this section before reading the rest of the manual Section 2 describes the components and functions of the SYSMAC Boards It also describes hardware installation and settings cable connections etc Section 3 describes the PLC communications library used to control the SYSMAC Boards from the per sonal computer Read this section to write applications for the SYSMAC Boards Section 4 provides measurement programs and actual measurement results for determining the proces sing time required to read and write SYSMAC Board data from the personal computer Use this section for reference when precise timing is required Section 5 describes troubleshooting errors The Appendices describe how to replace the battery built into the SYSMAC Boards and how to handle power interruptions NWARNING 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 Board Programmable Controller PLC and related devices The information contained in this section is important for the safe and reliable application of the PLC You must
123. se address D4000 ret pcinit port addr dpram addr SYSMAC Board addresses set if ret 0 printf PLC setting error Return value d An ret exit ret pcopen Library opened if ret 0 printf Error opening library Return value d An ret exit printf PLC operating mode n printf 0 PROGRAM n printf 2 MONITORAn printf 73 RUN n printf Specify a mode scanf d mode switch pcmode ne no mode Operating mode changed case 0 printf Mode changed successfullyNn break case 1 printf Communications not open Nn break case 5 printf Illegal parameter n break case 7 printf Error n break case 10 printf PLC communications timed out n break 67 Library Functions Section 3 2 pcclose Library closed cstat PLC STATUS Purpose Performs the following Reads status Clears errors Reads error history Clears error history Format unsigned int pcstat ne no memd ch val unsigned char ne unsigned char no unsigned char mcmd unsigned char far ch unsigned int far val or unsigned char far val Parameters ne Remote network address This parameter is not used set it to 0 no Remote node address This parameter is not used set it to 0 mcmd Process to perform ch No of records to read from error hi
124. sense the computer can serve as a host com puter for the SYSMAC Board The Microsoft C C Ver 7 0 C library is used and small medium large huge and compact memory models are supported Windows Drivers called the Fins Gateway for Windows 95 and FinsGateway for Windows NT are sold sepa rately There are no I O points provided on the Board itself but it can be connected to up to three C200HX or C200HG Expansion I O Racks to enable I O though mounted I O Units The Board is provided with 16K or 32K words of EEPROM built into it This EEPROM can be used exactly like the C200HW ME 16K and C200HW ME32K Memory Cassettes mounted to C200HX or C200HG PLCs The EEPROM can not be removed from the Board If a C200PC EXP01 Expansion Option Board is used the same RS 232C con nector and peripheral connector as the C200HX or C200HG PLOs can be used The use of an Expansion Option Board enables the SYSMAC Board to be con nected to other PLCs and Programming Console and allows a rich variety of communications such as Host Link RS 232C no protocol 1 1 PLC Link 1 1 NT Link and 1 n NT Link communications just as for C200HX or C200HG PLCs When an Expansion Option Board is used however the RS 232C port on the SYSMAC Board cannot be used The following Special I O Units for use with C200HX HG HE PLCs can be mounted to the Expansion I O Racks connected to the Board Features Section 1 1 SYSMAC Board C200PC ISA01 E C200PC ISA12 DRM E
125. story val Data buffer contents depends on process being performed Parameter IN OUT Setting Integer Not used set to 0 Integer Not used set to 0 Integer One of the following 0 Read status 1 Clear error 2 Read error history 3 Clear error history Integer IN OUT Used only when reading the error history Set to 0 for all other processes IN 1 to 10 Number of records to read 0 Reads the number of records stored in the SYSMAC Board OUT 1 to 10 The number of records read 0 Indicates that the number of records present in the SYSMAC Board has been read Integer or text IN OUT Depends on the process being string performed Refer to the Description Description Reading Status When mema is set to 0 the status of the SYSMAC Board is read 68 Library Functions Section 3 2 Set ch to 0 and set val to the beginning address of memory in which to store the status data The status data will be stored beginning at the address specified for val after pcstat is executed l z 3 4 a E 3 B 3 LET IB Bit Fatal errors Non fatal Message Current Error messages 1 byte errors presence FAL No 1 byte Operating status Mode 1 byte 1 byte 1 byte 1 byte 1 byte Operating Status Always 0 Mode hex The operating mode of the SYSMAC Board as follows 01 PROGRAM mode 02 MONITOR mode 04 RUN mode Fatal Errors Any fatal errors in the SYSMAC Board will be indicated as follows Byte 2 Byte 1 Bit JE 4
126. t to 0 Integer Not used set to 0 Integer One of the following 0 PROGRAM mode 2 MONITOR mode 3 RUN mode Description pcmode is used to change the operating mode of the SYSMAC Board Always use pcmode before turning off or resetting the computer to set the SYSMAC Board to PROGRAM mode If the SYSMAC Board is not in PROGRAM mode when the computer is turned off or reset the data in SYSMAC Board memory 66 Library Functions Section 3 2 that should be maintained while power is off HR AR Counter DM and EM Areas may not be saved correctly Communications must be opened with the SYSMAC Board before pcmode can be executed Return Values Meaning Ended normally Communications have not been opened execution not possible Illegal parameter Ended in an error response error Communications timeout no response within 10 s Example RR KR KR Kk k kk ke koe k koe ke ke ke ke e e e e A x x Changing Operating Mode RR KR KKK kk k kk k koe k ke ke ke ke e e e x x extern unsigned int pcinit extern unsigned int pcopen extern unsigned int pcclose extern unsigned int pcmode void main void int ret Return value unsigned char ne 0 Network address unsigned char no 0 Node address unsigned int mode 0 Mode unsigned char port_addr 1 I O port base address 0370 unsigned char dpram addr 7 DPRAM ba
127. t to push the cord Securely fit into the Board connector 6 Secure the new battery cord to the SYSMAC Board using the bracket Push the cord through the opening of the bracket 1 and secure the bracket to the Board so that it will not lift from the Board 2 7 Replace the SYSMAC Board into the computer and reassemble the chassis again referring to the user s manual for your computer 8 After replacing the battery use the error clear operation to clear the battery error 104 Appendix B Handling Power Interruptions The SYSMAC Board will not detect power interruptions and thus cannot stop program execution or execute shut down processing If the I O memory is being updated when a power interruption occurs the data in the DM HR and other memory areas may not be saved correctly The following steps must thus be taken e Always switch to PROGRAM mode before turning off power to the personal computer Never turn off power when the SYSMAC Board is in MONITOR or RUN mode Do one of the following 1 Configure the system to detect power interruptions such as those caused by power outages and stop program execution in the SYSMAC Board before allowing power to be turned off or 2 Restore the desired default values to the DM area any other required areas before starting operation The following configuration can be used as reference in configurating the system to implement item 1 above In this configuration th
128. the same as for Snl 83 Library Functions Section 3 2 Format Operation and storage method Regards write data as characters and expands it to decimal BCD conversion for writing At the time of expansion to decimal overflow portions will be ignored Each variable from val will be converted to one word of data If a number greater than 1 is specified for n then that number of variables will be required from val Four bytes of data will become a single word two bytes of data Thus four bytes of data area will be required for a single variable val The variable val type will be character for unsigned char far Regards write data as character strings and expands it to hexadecimal for writing At the time of expansion to decimal overflow portions will be ignored Specifications regarding va are the same as for nl Regards write data as character strings and expands it to octal for writing At the time of expansion to octal overflow portions will be ignored Specifications regarding val are the same as for nl Regards the write data as ASCII and writes it without alteration Data from n words is stored in a single variable val Two bytes of data will become a single word two bytes of data Thus variable val will require a data area of n x 2 bytes The variable val type will be character for unsigned char far Regards write data as characters and expands it to decimal BCD conversion for writing
129. the words allocated in memory will overlap with the area used for remote I O Therefore only one CompoBus D Master Unit can be mounted refer to 1 6 CompoBus D Master Unit Func tion and SYSMAC BUS Remote I O Master Units cannot be used at the same time The CompoBus D Configurator must be used to allocated other words if the fixed allocations are not used 4 The maximum number of CompoBus S Master Units that can be mounted includes the SYSMAC Board s CompoBus S Master function If the SYSMAC Board s CompoBus S Master function and CompoBus S Master Unit are used when the number of Units that can be connected is set to IN 0 to 15 OUT 0 to 15 twice the number of words will be used in the Spe cial I O Unit Area so the maximum number of CompoBus S Masters that can be mounted will be halved Refer to 1 7 CompoBus S Master Unit Function List of Available Models Section 1 2 Note Automatic Data Exchange with CompoBus D and CompoBus S Slaves Note The following Units cannot be used with a SYSMAC Board e SYSMAC NET Link Units e SYSMAC LINK Units e PC Card Units e Controller Link Units e Any other Units that must be mounted to a CPU Backplane The SYSMAC Board is available in models that are equipped with the same functionality as the C200HW DRMe21 EV1 CompoBus D Master Unit and the C200HW SRM21 CompoBus S Master Unit The Board can therefore be con nected to CompoBus D or CompoBus S Slaves to control distributed
130. ts and edges on the SYSMAC Board Be careful not to touch the components on either side when handling the SYSMAC Board 3 The battery may leak if the terminals are shorted or if the battery is charged disassembled heated or incinerated Never do any of these handle and dispose of the battery correctly 112 3 1 If the computer is off turn it on for at least one minute to let the internal capacitor charge Note The internal capacitor is designed to back up data for 5 minutes while replacing the battery The computer must be on for at least one minute immediately before replacing the battery to ensure that the capacitor is completely charged Data will be lost if the capacitor is not sufficiently charged 2 Open the chassis of the computer and remove the SYSMAC Board Refer to your computer s user s manual for the procedure for your computer 3 Remove the battery cord from the bracket Open the bracket 1 and lift the cord 2 as shown in the following illustration 2 Lift the cord 103 Replacing the Battery Appendix A 4 Disconnect the battery and connector Before disconnecting the old battery connector position the Board so that it is ready for connecting a new battery connector and proceed to the next step 5 Connect the new battery connector and mount the new battery While being sure that the connector is correctly orientated push it in until it securely fits into the connector on the Board side Be careful no
131. ts to Output Slaves will be enabled as soon as the corresponding Participation Flag turns ON When the Slave is going to be used check to be sure that the Communications Error Flag is OFF after the Participation Flag turns ON in ladder logic used to process I O for the Slave 1 8 Computer Board Functions 22 The SYSMAC Board normally functions independently from the personal com puter it is installed in based on a user program downloaded from a Programming Computer Board Functions Section 1 8 Device The personal computer however can function as a host computer for the SYSMAC Board to read write memory areas on the SYSMAC Board to read SYSMAC Board status or to control SYSMAC Board operation PLC Communications Communications between the personal computer and the SYSMAC Board are Library Functions implemented using C language library functions written into a user application running on the personal computer The PLC communications library includes the following functions Operation Sets the I O port address and base address in shared memory to use for communications between the SYS MAC Board and computer Initializes communications for the SYSMAC Board and starts communications between the SYSMAC Board and the computer Ends communications between the SYSMAC Board and the computer Changes the SYSMAC Board operating mode PRO GRAM MONITOR RUN Accesses and controls SYSMAC Board status including the following
132. tus Area 2 This word contains status data such as whether there is an error history Bit 15 141312111098 7 6 5 4 3 2 1 0 ms E Configurator Scan List Flag Error History Flag Current Communications Cycle Time This word contains the the most recent communications cycle time Not used Bit 15 141312111098 7 6 5 4 3 2 1 0 1 7 CompoBus S Master Function Note The C200PC ISAL12 SRM E SYSMAC Board contains essentially the same remote l O functionality as a C200HW SRM21 CompoBus S Master Unit Therefore I O can be conducted with Slaves without special programming in the SYSMAC Board This manual does not provide detailed information on the CompoBus S func tions Refer to the CompoBus S DeviceNet Operation Manual W266 for details Maximum I O Capacity and Maximum Number of Slaves The following table shows the maximum number of I O points and Slaves that can be connected to the C200PC ISALJ2 SRM E SYSMAC Board 19 CompoBus S Master Function Section 1 7 Item Details Max No of I O points 256 points 128 inputs 128 outputs or 128 points 64 inputs 64 outputs The maximum number of I O points depends on setting for the number of nodes connectable 8 points No of I O points per node No of nodes connectable IN 0 to 7 OUT 0 to 7 or IN 0 to 15 OUT 0 to 15 Set using the DIP switch
133. us S Operation Manual W266 3 If the connectable node address is set to INO to 15 OUTO to 15 the Special I O Unit Area words for two Units will be allocated and the the number next to the set unit number will also be used by the CompoBus S Master Be careful not to use the second unit number for another Special I O Unit 4 If the same unit number is used for the more than one Unit a duplicate num ber error will occur in the PLC and the SYSMAC Board will not start properly 48 Support Board Installation Section 2 4 2 3 7 CompoBus S Communications DIP Switch C200PC ISA 12 DRM E The CompoBus S communications DIP switch is used to set the communica tions baud rate and whether communications will be continued or stopped when a communications error occurs Factory setting shown in diagram Connectable node address Reserved Always OFF Set pin 1 on the DIP switch as shown below SW1 Connectable node address setting ON INO to 15 OUTO to 15 Total of inputs and outputs 32 Slave Units max OFF INO to 7 OUTO to 7 Total of inputs and outputs 16 Slave Units max Note Factory default OFF Note 1 Always leave pins 2 to 4 set to OFF 2 When setting the switch with the SYSMAC Board connected to a personal computer be sure to turn OFF the power supply to the personal computer or peripheral devices If Slave Units are connected be sure to turn OFF the power supply to the Slave Units and the co
134. us S connector is 50 N Do not pull the connector with a force exceeding 50 N 4 Be sure to confirm that the terminal blocks expansion cables and other items with locking devices are properly locked into place Do not pull on the communications cables Do not forcibly bend the communications cables Do not place heavy objects on the communications cables 0 N O Ci Always use crimp terminals when connecting communications cables Con necting bare twisted wires can result in disconnection broken wires faulty operation or damage to the product 9 Use an appropriate crimp tool and appropriate methods to attach the crimp terminals Consult the manufacturer of the crimp tool for specific instruc tions Inappropriate crimp tools or crimping methods can result in broken wires 10 Be sure to connect the signal lines power lines and shield lines correctly and do not get them mixed up 11 Be sure that the signal lines power lines and shield line do not become dis connected during communications 12 Double check all wiring before turning the power supplies back ON 52 External Connections Section 2 5 2 5 1 C200HX HG HE Expansion I O Racks C200HX HG HE Expansion I O Racks are connected as shown in the following diagram Personal computer F p SYSMAC Board 1 0 Connecting Cable C200PC CN221 Expansion I O Rack 1st 1 0 Connecting Cable C200H CN311 711 221 521 131 Expansion I O Rack
135. x 6 m max 39 m max 250 kbps Network length Drop line length Total drop line length 250 m max see note 1 6 m max 78 m max 125 kbps Network length Drop line length Total drop line length 500 m max see note 1 6 m max 156 m max Max number of Slaves Without Configurator With Configurator 50 Slaves 63 Slaves Max I O capacity Without Configurator With Configurator Without messages With messages 1 600 pts 50 input 50 output words 4 800 pts 1 600 pts Error control checks CRC error check node address duplications scan list verification Cables 5 wire cable 2 signal lines 2 power supply lines 1 shield line 1 Indicates the length when Thick Cables are used Reduce the network length to 100 m max when using Thin Cables When using both Thick and Thin Cables together refer to the CompoBus D DeviceNet Operation Manual W267 for details 2 The CompoBus D connector on the C200PC ISA 2 DRM E SYSMAC Board is different from that for the C200HW DRM21 EV1 CompoBus D Master Unit Use the cable provided with the SYSMAC Board 27 Specifications Section 1 10 1 10 4 CompoBus S Communications Specifications Communications CompoBus S protocol Baud rate 750 kbps Modulation Base band Code Manchester code Error control checks Manchester code check frame length check parity check Cables VCTF Cable VCTF JIS C
136. x43 val2 2 D 0x44 val2 3 E 0x45 Character Array SnH unsigned char val 8 unsigned char far p p unsigned char far val peteadi o e 2U 992H p s Results val 0 7 0x37 val 1 8 0x38 val 2 9 0x39 val 3 A 0x41 val 4 B 0x42 val 5 C 0x43 val 6 D 0x44 val 7 E 0x45 3 O type Octal Format Read data 12345670 Numerals 9enO unsigned int vall val2 unsigned int far pl p2 pl unsigned int far amp vall p2 unsigned int far amp val2 pcread 20 p1 p2 Results 79 Section 3 2 Library Functions z 80 vall 01234 0x02 90 val2 05678 0x0bb8 Numeral Array SnO unsigned int val 2 unsigned int f p unsigned peread Results val 0 01234 val 1 05670 Characters nO ar p int far val 820 p 0x029c 0x0bb8 unsigned char val1 4 val2 4 unsigned char far pl p2 pl unsigned char far vall p2 unsigned char far val2 poread 2 920 2plyp2 Results val1 0 1 0x31 val1 1 2 0x32 vall 2 3 0x33 val1 3 4 0x34 val2 0 5 0x35 val2 1 6 0x36 val2 2 7 0x37 val2 3 0 0x30 Character Array SnO unsigned char vall 8 unsigned char far p p unsigned char far val peread oi4 wise SS20 7p 5 Results val 0 1 0x31 val 1 2 0x32 val 2
137. z and C200PC ISA01 E pcread Average time per call ms AR LR Timer PV 28 64 1 128 words words word words MONITOR MONITOR MONITOR Average time per call ms Counter PV Timer Flag Counter Flag DM Extended DM 1 128 1 128 1 128 128 1 128 word words word words word words words word words MONITOR MONITOR MONITOR pewrite Average time per call ms AR LR Timer PV 28 64 1 128 words words word words MONITOR MONITOR MONITOR 92 Measurement Results MONITOR Average time per call ms Counter PV DM Extended DM 1 128 word words 128 words 1 128 word words MONITOR MONITOR DOS V 120 MHz and C200PC ISA02 DRM E pcread MONITOR Average time per call ms Section 4 2 AR LR Timer PV 28 64 1 128 word words MONITOR MONITOR MONITOR Average time per call ms Counter PV Timer Flag Counter Flag DM Extended DM 1 128 word words 1 128 word words 1 128 word words 128 words 1 128 word words MONITOR MONITOR pewrite MONITOR Memory model Average time per call ms AR LR T
Download Pdf Manuals
Related Search
Related Contents
Fujitsu M9000 User's Manual Samsung Plus Zone, 4 Fold System Filters (DMS400THX) User Manual(SEAU) Mode d`emploi - Andermatt Biocontrol AG required periodic inspections by the owner Fujitsu PRIMERGY RX200 S7 "user manual" ハードディスク内のデータを完全に消去する 消磁装置 Lightning User Manual Copyright © All rights reserved.
Failed to retrieve file