Home

GFK-1883_SeriesSixPa..

image

Contents

1. If the S6PIO module is present and OK load the various parameters and call the S6PSV block The 90 70 location pointed to by X4 will contain the status of the 1000 input bits of the Series Six I O chain being monitored the 90 70 location pointed to by X5 will contain the status of the 1000 output bits of the Series Six I O chain being monitored The 8 register locations pointed to by Y2 contain the Card Present Map showing wher ach Series Six input card is located One 90 70 bit for each 8 bit Series Six address hence a 32 bit input module will show 4 bits set in the map So bit 1 of register 1 covers Series Six input address 1 to 8 bit 2 covers 9 to 16 etc Note that bits 14 15 amp 16 of register 8 covers addresses 1001 to 1024 which are not scanned by the S6PSV block as they have special functions in the Series Six and not used for normal I O The 8 register locations pointed to by Y3 contain the Series Six Address Map showing th ntire address area being monitored by the S6PSV block As for the Card Present Map each 90 70 register bit represents each 8 bits of Series Six address being m
2. lt lt RUNG 47 gt gt IOCCM R Indicat ead cmd ion to complet start s e CCMRCOM SAMPLE ampling TO0019 M00119 INS Kef Program RELIAB1 GFK 1883 Write compare registe WRTCMP RO3011 4 RDREG 5101101 73 BITREF R00711 4 CONST 4 00000 4 I Il MC 00064 I2 Q4 tM BN x xj s CMPERR M00181 IOCCM s erial 1 oopback er coun ERRCNT5 F R00351 2 ADD 4 INT IOCCM s erial 1 oopback er coun OUTCPY ERRCNT5 F 5RO1521 200351 11 03 BITNO F 5RO1520 CONST I2 00001 C LM90 FOLD ERS RELIABL Appendix B EXAMPLE 90 70 PROGRAMS Block CCMTST B 57 05 03 02 Real Time Consultants Pty Ltd 18 26 GE FANUC SERIES 90 70 Reliabilty Test Proprietary Information v7 02 Page 52 gt gt RUNG 48 lt lt Reliabilty test example 2 Scan counter SCNCNT F R00800 Mis com pare er ror for IOCCM CMPERR M0O0181 H H MOVE_ MOVE_ INT INT Write Wrt com RD comp compare pare va are val registe lue on ue one r error I rtor IO WRTCMP TSTERR1
3. START OF LD PROGRAM RELIAB1 59 I VARIABLE DECLARATIONS VARIABLE DECLARATION TABLE REFERENCE NICKNAME REFERENCE DESCRIPTION I00001 INTABL I00017 INTABH I00033 AINITAB 100257 AOPIIN 101313 AOP2IN 000001 OPTAB1L 000017 OPTAB1H 000257 AOP1TAB 001313 AOP2TAB M00002 SAMPLE1 Sample rate for digital IO M00003 SCN1OK SM00004 SCN2OK M00007 WINIOK M00008 WIN2OK M00101 SLOT6OK M00104 MAXCNT2 Max value of counter for A out M00105 MAXERR M00106 MECNT M00107 STATCNT M00112 SLOT8OK M00181 CMPERR Mis compare error for IOCCM M00201 DATOPOK M01080 MEOVR M01081 STSOVR M01110 IP1ERR1 Monitor error M01111 IP2ERR1 T00001 KEYOFF P00001 SWSTAT P00002 RSTSTS Reset status from RUN switch P00004 PRINP P00006 SL6STA P00008 SL8STA SROOOOL COUNT1 R00002 COUNT2 SROOO11 SLOT R00021 WINIERR R00022 WINIHDR R00023 WINIBLD R00025 WIN2ERR SRO0026 WIN2HDR R00027 WIN2BLD R00030 AOPSTS R00031 AOP1STS R00032 AOPIBLD R00033 DUMMY1 Series Six Parallel I O Transmitter Module GFK 1883 Program GFK 1883 R Real Time Consultants Pty Ltd R00040 ELIABI AINSTS Proprietary Information C NLM90NFOLD ERS R ELIABI Appendix B EXAMPLE 90 70 PROGRAMS Block _MAIN B 7 Real Time Consultants Pty Ltd Proprietar
4. Set up Register parameter block for read command 961 register parameter block address in S6PIO memory 6 number of reisters to copy OR KC ke ke ke ke kc e ek kc kk ke ke kk ee ke ko kc ek ke e ke ke ke ke ee ke he kk ke kk ke kk e ek KKK gt gt RUNG 18 lt lt Read serial IOCCM RD_CCM 51100082 4 DATA_ INIT_ INT 56210 R egister Paramet er Addr REGPADD Q SL00031 LE 00002 DATA INIT INT at L00031 1 00961 00006 SER 5 E Kol de Ok M See RR E HIE RR IE BR IER Ide V KA OR Re BRR TERK AE RR e BRK y Set up for IOCCM cmd Write From Target To Source Register Tabl Location 1 6111 Command No Location 2 5 Target Id K Location 3 1 Target Memory Type Location 4 1 Target Memory Address 20 Location 5 64 Data Length Location 6 968 Source memory Address ERR RW dc desee RRR ye RRB dee gt gt IER RBI RI ICTR de e oae eoe FERN Program RELIAB1 C LM90 FOLDERS RELIAB1 Block CCMTST GFK 1883 Appendix B EXAMPLE 90 70 PROGRAMS B
5. Real Time Consultants Pty Ltd Proprietary Information Q R00300 DATA INIT INT 3 0 Issue asynch passive scan on the auxilliary io chain The C block will return immediately without error if the passive scan command was successfully queued to the 56210 in slot 8 X1 0x8008 Use slot 8 and scan in asynch mode Ie just queue the command to the S6PIO in slot 8 and return X2 0x0064 Specifies a tieout of 100msec on sync address X3 0x0F02 Require the first 4 expanded channels only Only data for these channls will be copied If any chanels are not scaned by the Series Six the data areas are set to zero X4 18193 Use inputs 18193 112288 for input data WARNING Beware of writing beyond end of configured table memory limits X5 508193 Use outputs 508193 5012288 for output data table memory limits WARNING Beware of writin beyond end of configured X6 OxOOFF Synchronisation address use th PDT window to PDT window Y1 R100 Error register synchronise It is always recommended to use the Y2 M2049 Card Present CP map This is a bitmap indicating what input address bytes have responded with input data Y3 M3073 Address AM map This is a bitmap indicating what address cycles have been sent out by the Series Six CPU Series S
6. gt gt RUNG 19 lt lt ALW_ON 5500007 F SUB_ RANGE4 INT INT STATCNT TEMP1 MONSTAT M00107 R00141 I1 Q RO0211 CONST L1 Q 00010 CONST 2 CONST L2 01000 4 F 100010 MONSTAT R00211 IN lt lt RUNG 20 gt gt STATCNT STSOVR M00107 F M01081 ONDTR C 1 00s STSOVR M01081 es CONST PV CV 32767 Static Analog value monitor ERRCNT2 R00321 Program RELIAB1 C NLM90NFOLDERSNRELIABI Block ANLGLB GFK 1883 Appendix B EXAMPLE 90 70 PROGRAMS B 31 Real Time Consultants Pty Ltd Proprietary Information 05 03 02 18 26 GE FANUC SERIES 90 70 v7 02 Page 26 Reliabilty Test Reliabilty test example 2 RUNG 21 gt gt STATCNT 51 100107 4 F MOVE_ INT Static Analog Err Value TEMP1 TSTERR7 SROO141 IN Q R00507 LEN 00001 lt lt RUNG 22 gt gt SLOT 60K M00101 CALL S6AIN EXTERNAL SLOT AINSTS 1 00011 Y1 RO0040 AINBUF SAQ0033 X2 Y2 SROO111 AIN1IOS CONST X3 Y3 R00041 0021 AINSBTS CONST 4 Y4 R00131 0001 Reset 5 tatus f rom RUN switch RSTSTS 211118110 P00002 4X5 Y5 SRO00043 PRINP AIN1TAB P00004 X6 Y6 I00033 Program RELIAB1 C LM90 FOLDERS RELIAB1 Block ANLGLB B 32 Series Six Parallel I O Trans
7. lt lt RUNG 7 gt gt CALL S6NOOP 4 EXTERNAL CONST X1 Y14 0006 4 4 Series Six Plus PLC Consultants Pty Ltd GE FANUC SERIES 90 70 LOGIC Proprietary Information v7 02 This program tests expanded channel passive mode and demonstrates the asynchronous passive mode operation In this example it is assumed that there are two S6PIO modules installed in slots 6 amp 8 of a 90 70 020 rack The 90 70 PLC is cabled up to the primary 6 auxilliary chains of a The chains are terminated on the S6PIO modules The module in slot 6 is connected to the primary chain slot 8 is connected to the auxilliary chain The Series Six Plus PLC has all 8 channels enabled the module in Page 1 5 5 s S 50 Ax F ad 5 4
8. X m o 5 X 2 5 B RUNG 23 Asynch cmd to aux ch OK ASYNCH8 PSV80K 100004 F T00006 0 S6PSV EXTERNAL S6PSV async aux ch err reg CONST X1 Y1 SRO0100 0008 Aux ch CP map CP_AUX CONST 2 Y2 M02049 0032 Aux ch address map AM_AUX CONST 3 Y3 M03073 0001 Slot 8 io status GFK 1883 Appendix B EXAMPLE 90 70 PROGRAMS B 83 B 84 101025 4 001025 5 CONST 6 gt gt RUNG 24 lt lt CONST 2 0088 00061 11 Q gt gt RUNG 25 lt lt 00001 CONST I2 OFFF 4 4 200063 11 Qt OFFF 4 4 4 reg S8IOST R00101 C Block build number F R00102 F SR00054 S R00061 R00062 CONST OFFF R00063 R00064 CONST OFFF END OF PROGRAM LOGIC Real Time Consultants Pty Ltd Proprietary Information F R00062 58000 4 Series Six Parallel I O Transmitter Module GFK 1883 3 Real Time Consultants Pty Ltd A Analog Inputs 5 2 Bit Addressing Verses Channel Number 4 3 C C Block Error Codes 4 5 C Block Summary 4 1 C Blocks See Software Interface Configuration Plug amp Play Mode 3 7 RF Test Refer GE Fanuc Document GFK1179H S6PIO Address Modifier Codes 3 2 Series 90 70 Programmed Address Modifier Codes 3 2 User Configuration Mode 3 2
9. KK KK ko Block CCMTST B 41 B 42 Real Time Consultants Pty Ltd Proprietary Information 05 03 02 18 26 GE FANUC SERIES 90 70 v7 02 Page 36 Reliabilty Test Reliabilty test example 2 RUNG 8 gt gt FST SCN WT CCM S00001 M00081 ges ub C Write IOCCM W serial rite cm to d compl IOCCM ete WT CCM CCMWCOM M0O0081 T00018 tem 1 IOCCM R Read ead cmd serial complet IOCCM e RD CCM CCMRCOM 500082 9 kept gt gt RUNG 9 lt lt Write serial to IOCCM WT 6 RD_CCM 0 1 60 2 C BRK gt k e KR KR KKK ke kk KR KR koc ke kk KR KR KKK KER KK KK KKK KER KKK KKK ke koc ke ko ke ek ke KK KK If pulsed to write to the IOCCM then call DATATST to write some random data into buffer memory for transmission RRR gt ke k KKK KKK KKK kkk gt kkk kkk kkk kkk kkk kkk kkk kkk ke e kk kkk kkk k Program RELIAB1 C LM90 FOLDERS RELIAB1 Block CCMTST Series Six Parallel I O Transmitter Module GFK 1883 Real Time Consultants Pty Lt
10. F 00100 4 F Program RELIAB1 C LM90 FOLDERS RELIAB1 Block ANLGLB GFK 1883 Appendix B EXAMPLE 90 70 PROGRAMS B 33 B 34 05 03 02 6 gt gt RUNG 26 lt lt ALW ON S00007 MUL 4 10 band plus 10 MAXLIM 00411 11 Q CONST 4 Real Time Consultants Pty Ltd Proprietary Information GE FANUC SERIE S 90 70 v7 02 Page Reliabilty Test Reliabilty test example 2 00002 4 lt lt RUNG 27 gt gt Program RELIAB SSS F ADD INT 10 band plus 10 MAXLIM R00411 I1 Q CONST I2 00020 F 1 SUB INT 10 10 baqnd band minus plus 10 10 TEMP2 MAXLIM MINLIM R00412 5200411 11 7 3 TEMP2 9 2 F SUB INT 10 10 10 baqnd baqnd band minus minus plus 10 10 10 MAXLIM MINLIM MINLIM 5200411 R00413 I1 Q R00413 CONST 2 00020 F C NLM90NFOLDERSNRELIABI Series Six Parallel I O Transmitter Module 28 Block ANLGLB GFK 1883 Real Time Consultants Pty Ltd Proprietary Information 05 03 02 18 26 GE FANUC SERIES 90 70 v7 02 Page 29 Reliabilty Test Reliabilty test example 2 RUNG 28 gt gt ALW ON 500007 t 4 F 4 808 RANGE INT INT 10 baqnd minus 10 MECNT COUNT2 MONAIO MINLIM M00106 R00002 I1 Q R00201 R00413 L1 0 10 band plu
11. GFK 1883 Chapter 4 SOFTWARE INTERFACE 4 25 4 Real Time Consultants Pty Ltd Proprietary Information S6XWIN C Block Introduction The S6XWIN C Block provides an enhanced S6WIN interface to the S6PIO module for use in Master DMA mode to open a DMA window at a specific address The S6XWIN block has two additional pairs of parameters These allow the user to specify a block of registers and a command byte to transfer to the S6PIO prior to opening the DMA window and a status byte to copy back after the window has closed Since certain modules such as the Genius Bus Controller GBC require access to the DPREQ or WINDOW instruction OPCODE in logic memory the S6X WIN block instructs the S6PIO to transparently emulate the scratchpad and logic memory entries as required This emulation saves the user from coding several SOMOVE blocks Parameter Data Type Comment Bits 1 8 slot number Bits 9 14 rack number Bit 15 set use expanded channel mode Bit 16 not used should be 0 DMA address The address is specified in standard Series Six bit notation Refer to fable 4 2 Bit Addressing erses Channel Number for details Bit 16 set DMA flow through Command timeout in milliseconds Specifies the maximum time the C Block will wait for a window to complete Window timeout in units of 111usecs Specifies the window timeout Normally a value of 45 should be used to give a timeout of 5 milliseconds X5 Word Array 2 words 1 Regist
12. KKK KK KKK KK Open window to IOCCM card at address location 961 The 100011 status will be returned at parameter Y6 and used to indicate he error status will be checked for a window timeout and a counter will be incremented each time a timeout occurs Program RELIAB1 C LM90 FOLD ERS R ELIABI Series Six Parallel I O Transmitter Module v7 02 Page 42 Command block will 5 x 2 Block CCMTST GFK 1883 Real Time Consultants Pty Ltd Proprietary Information 05 03 02 18 26 GE FANUC SERIES 90 70 v7 02 Page 43 Reliabilty Test Reliabilty test example 2 RUNG 27 gt gt Write serial to IOCCM SLOT6OK WT CCM WIN1OK MOO101 1 M00007 CALL S6XWIN EXTERNAL Read serial IOCCM RD_CCM M00082 WINIERR pod feat CONST 1 Y1 R00021 4006 IOCCM return status WINISTS CONST 2 Y24 R00035 07C1 WINIHDR CONST 3 Y3 R00022 0032 WINIBLD CONST 4 03 002D 56210 R egister S6IOCCM Paramet Output er Addr Address
13. ES 90 70 Proprietary Information v7 02 Reliabilty Test Reliabilty test example 2 C LM90 FOLD ERS R ELIABI Series Six Parallel I O Transmitter Module Page 46 Block CCMTST GFK 1883 Real Time Consultants Pty Ltd Proprietary Information 05 03 02 18 26 RUNG 35 gt gt IOCCM c ommand status complet CCMCOMP GE FANUC SERIES 90 70 v7 02 Reliabilty Test Reliabilty test example 2 T00013 5 IOCCM serial transfe r error CCMXFER T00015 CONST IN 00000 lt lt RUNG 37 gt gt SLOT6OK M00101 4 NEL INT WINIERR 4 R00021 I1 Q 4 Window error c ount fo r IOCCM ERRCNTA CONST I2 R00341 4 00000 CONST 4 00001 4 IOCCM status data CCMSTS Qt R00391 m 00001 Check the window return error status for any errors and record in the error counter register CREEK ke ke kk eek kk kkk kkk ke ke kkk kkk kkk ke kkk kkk kkk kkk ke e ke kkk KKK kkk t ADD INT Window error c ount fo r IOCCM ERRCNTA tIl Q R00341 FI2 Program RELIAB1 GFK 1883 If there has been a transfer error to determine what caused the failure RRR gt RK KKK KKK KKK KKK
14. OPERATION MODE S EQU ENC E OF EV are stopped only one master mod Program EXAMPL4 system i e redundant communications lost SL6STAT ALW ON 57 4 4 H I CALL S6NOOP EXTERNAL CONST X1 Y1 P00006 ENTS 1 Both units power up into passive mode 2 Before a unit can move to master mode the following must be true d Local Unit is the active unit There is no I O chain activity chain activity 3 On the transition from passive mode to master mode the passive blocks The test for chain activity ensures that if both units are in SOLO then there 111 still be PSVMODE is held while there is E3 A 5 x AD e 82 P4 2 C LM90 FOLDERS EX
15. X6 Sync Address OFFH PDT window IN7 not used x Program EXAMPL4 C LM90 FOLDERS EXAMPL4 Block _MAIN GFK 1883 Appendix B EXAMPLE 90 70 PROGRAMS B 69 B 70 Real Time Consultants Pty Ltd Proprietary Information 04 22 02 15 20 GE FANUC SERIES 90 70 v7 02 lt lt RUNG 20 gt gt PSVMODE M01028 T 4 F BLKMV INT R amp S_PSV CONST IN1 Q RO1301 00006 CONST IN2 00030 CONST IN3 00001 CONST IN4 00000 CONST IN5 00000 CONST IN6 00255 CONST IN7 00000 4 F Set up parameters to stop passive mode Note that IN3 is now set to 0 EXAMPLE 4 RDNDTEX Example of using redundancy PLC configuration with S6PIO cards Program EXAMPL4 C NLM90NFOLD ERS EXAMPL4 Series Six Parallel I O Transmitter Module Page 4 KKK KKK KKK KKK KKK KKK Block 5 x 50 _MAIN GF
16. will return immediately without error if the passive scan command was successfully queued to the S6PIO in slot 6 s X1 0x8006 Use slot 6 and scan in asynch mode Ie just queue 50 the command to the 56210 in slot 6 and return X2 0x0064 Specifies a timeout of 100msec on sync address X3 OxFF02 Require data for all 8 expanded channels Run in xpanded chanel mod X4 10001 Use inputs 100001 108192 for input data X5 500001 Use outputs 5000001 5008192 for output data X6 OxOOFF Synchronisation address use the PDT window to s synchronise It is always recommended to use the 50 PDT window Y1 R0020 Error register Y2 5210001 Card Present CP map This is a bitmap indicating what input address bytes have responded with input data Series Six Parallel I O Transmitter Module GFK 1883 YS X5 c Y6 S6PIO in slot 6 OK SLOT6OK T00001 4 pee CONST 4 8006 CONST 4 0032 CONST 4 0001 Main ch inputs I MAIN 100001 Main ch outputs O_MAIN 000001 4 CONST 4 M1025 R0021 R0022 R0024 Real Time Consultants Pty Ltd Address AM map what address cycles hav Six CPU IO status register 2 register array indicatiing the C block and S6PIO build numbers Scanned
17. COR gt ok KKK KEK KK KK KKK ke KK k ke ke ko ke KKK KK koc ko kk ke ee m GFK 1883 Real Time Consultants Pty Ltd Proprietary Information 00001 00001 CONST 12 CONST 12 OFFF 4 OFFF 4 RUNG 21 RO0033 4 I1 Q RO0033 R00034 I1 Q R00034 LE LE 00001 00001 CONST I2 CONST 2 OFFF 4 4 OFFF 4 4 1 Wait for the passive scan command to complete for the auxilliary io chain Only call the command if the previous scan command was successfully queued to the S6PIO in slot 8 Parameters are the same as for the async call except for X1 which has the most significant bit cleared
18. ELIABI C NLM90NFOLD Series Six Parallel I O Transmitter Module ERS R C Block CCMTST GFK 1883 Real Time Consultants Pty Ltd Proprietary Information 05 03 02 18 26 GE FANUC SERIES 90 70 v7 02 Page 45 Reliabilty Test Reliabilty test example 2 RUNG 31 gt gt SLOT6OK 51100101 4 fool abe ats TEST WORD IOCCM status data CCMXFER CCMSTS 55 SROO391 IN Q CA LEN 00001 CONST BIT 00003 lt lt RUNG 32 gt gt SLOT 60K MOO0O101 4 F tss 11 1 TEST_ WORD IOCCM status data CCMBUSY CCMSTS T00014 1 00391 Q LEN 00001 57 60 00001 F Program RELIAB1 C NLM90NFOLDERSNRELIABI Block CCMTST GFK 1883 Appendix B EXAMPLE 90 70 PROGRAMS B 51 B 52 05 03 02 IOCCM serial transfe r error CCMXFER IOCCM D iagnost ics dat a value DIAGDAT IOCCM serial transfe error CCMXFER IOCCM status data CCMSTS Program 00361 1 CONST 12 00001 4 4 R Real Time Consultants Pty Ltd 18 26 lt lt RUNG 33 gt gt 100015 IOCCM D iagnost ics dat a value DIAGDAT F R00361 RUNG 34 gt gt T00015 4 MOVE 00001 ELIAB Xfer error data value ERRDATA SROO391 IN Q RO0371 1 FANUC 5 GE ERI
19. M00001 4 4 BIT SEQ Q00161 4R LEN 00016 1 DIR CONST STEP 00001 000145 ST R00004 END OF PROGRAM LOGIC Program EXAMPL4 C LM90 FOLDERS EXAMPL4 Block _MAIN GFK 1883 Appendix B EXAMPLE 90 70 PROGRAMS B 75 Real Time Consultants Pty Ltd Proprietary Information Example 5 Illustrate Use of S6PSV Block in Asynchronous Mode Generally a S6PSV block will not return until it has received the synchronizing event usually the PDT window Hence if two passive blocks are required as may be the case for a system with main and auxiliary I O there is no guarantee both will be able to synchronize to the Series Six I O Indeed it is possible one of the blocks will return after a time out with a time out error An alternative is to use the 562517 blocks in asynchronous mode In this case the block will return before the synchronizing event but the request will have been queued In this manner two S6PSV blocks can effectively queue their requests thus allowing both blocks to synchronize on the same event A third S6PSV block would be used to block until the event is actually received The following program illustrates the point Series Six Parallel I O Transmitter Module GFK 1883 3 Real Time Program Listing 04 30 02 16 56 Expanded Channel Passive Mode Test START OF PROGRAM
20. F DATA INI 1 6 Clea lt lt RUNG FST_SCN 1 5500001 4 4 DATA_ IOCCMAD Q R00961 T INT at R00961 06003 00000 00000 00001 00020 00361 KKK KK KKK k k k k k KKK k KEK KR RK KR KK RK KK KKK r Diagnostics data on first scan 25 gt gt IOCCMAD Q R00961 DATA INIT INT at R00961 06002 Program RELIAB1 C LM90 FOLDERS RELIAB1 Block CCMTST GFK 1883 Appendix B EXAMPLE 90 70 PROGRAMS B 47 B 48 Real Time Consultants Pty Ltd 05 03 02 18 26 GE FANUC SERIES 90 70 Proprietary Information Reliabilty Test Reliabilty test example 2 be picked up by the IOCCM and execut when the command is complete ed KKK KKK
21. KKK KKK KKK KKK KKK KKK kkk kkk kkk kkk kk kkk kk KKK KK KKK KKK BRR RRR kc KKK KR RK KEK KR KK KKK KER KK KK KKK KER KK KK ke ko ko KKK KKK KEK KE KKK Write IOCCM c serial ommand to status IOCCM IOCCM complet busy SLOT6OK WT CCM CCMCOMP CCMBUSY CCMWCOM 51100101 51100081 100013 4 T00018 I I 1 1 e Program RELIAB1 C LM90 FOLDERS RELIAB1 Block CCMTST B 56 Series Six Parallel I O Transmitter Module GFK 1883 Real Time Consultants Pty Ltd 05 03 02 18 26 lt lt RUNG 45 gt gt Read serial IOCCM SLOT60K RD_CCM 51100101 32 IOCCM c ommand status IOCCM complet busy CCMCOMP CCMBUSY 5100013 4 GE FANUC SERIES 90 70 v7 02 Reliabilty Test Reliabilty test example 2 Proprietary Information Page 54 CCMRCOM T00019 BRK Ck KK KK ck k ck kc kck ck kckck ck kckckckck ck k ck ck KK RK KK KK onitor serial IOCCM data loopback after 20 scans to ensure start up errors are not indicated Each write word is compared against the read word
22. OK else de rok AER S OR RR REE ERE ERE eek ER ESE EER KY Wait for the passive scan command currently pending on the main io chain to complete Only issue command if the previous asynch command was successfully queued xy Ce Parameters are the same as for the async call except for X1 which has the most significant bit cleared c Ce lt lt RUNG 18 gt gt GFK 1883 Appendix B EXAMPLE 90 70 PROGRAMS B 81 B 82 Asynch cmd to main ch OK ASYNCH6 5100003 4 bu 4 CONST 4 0006 CONST 4 0032 CONST 4 0001 Main ch inputs I MAIN 100001 Main ch outputs O_MAIN 000001 4 CONST 4 OOFF 4 lt lt RUNG R00031 4 Real Time Consultants Pty Ltd 20 CALL S6PSV 4 EXTERNAL X1 Y1 X2 Y2 X3 1X4 Y4 X5 Y54 HX6 Y 64 Proprietary Information PSV60OK STO 0005 S6PSV async main ch err reg F R00020 Main ch CP Map CP MAIN F M00001 Main ch address map AM MAIN F M01025 Slot 6 io status reg S610ST F SR00021 C Block build number F SR00022 Main ch channel map F R00024 F SRO0031 R00032 4 Need to mask of top 4 status bits to make it more readable o gt eh EERE EERE ERE EER ER ER EE KEKERE e eR ee eo de EEKE e sew Roo dee eo do EES EER F R00032 Series Six Parallel I O Transmitter Module
23. Series Six Parallel I O Transmitter Module Block MAIN GFK 1883 Real Time Consultants Pty Ltd Proprietary Information 05 03 02 18 25 GE FANUC SERIES 90 70 v7 02 Page 7 Reliabilty Test Reliabilty test example 2 START OF LD BLOCK INIT Ir VARIABLE DECLARATIONS VARIABLE DECLARATION TABLE ESCRIPTION EFERENCE LU REFERENCE NICKNAM NO VARIABLE TABLE ENTRIES P DAB Ne L 2 1 TABLE IDENTIFIER IDENTIFIER TYPE IDENTIFIER DESCRIPTION NO IDENTIFIER TABLE ENTRIES START OF BLOCK LOGIC F gt RR KR KKK ke kk ke KR KKK KKK KK KR KKK ke kk KK KKK KER KK KK KER KK ke KE KK KKK Determine the state of the RUN keyswitch CKRERL EER ER ESHER ERIE REER EER gt RIK EER HK gt RIK BERGER HO CSS EER OR OR gt gt RUNG 4 lt lt 4 4 6 SVC 4 4 FEQ RE INT KEYOFF SWSTAT T00001 CONST FNC P00001 I1 Q C 00012 SWSTAT SP00001 PARM CONST 2 4 400001 4 KEK KKK x kc KKK KER koc ke KK ke ko ke ke kk KKK koc ke KR KK ko KR
24. is th be returned RUNG 12 gt gt Array of at least 3 registers channel bitmap indicating what channels have been Proprietary Information This is a bitmap indicating n sent out by the Series First register is a size of th Second register is a counter which increments each time a synchronisation event occurs Third register HX2 HX3 X4 X5 EXTERNAL LL S6PSV 4 Y14 Y 23 Y34 Y44 Y54 OOFF 4 FST_SCN GFK 1883 lt lt RUNG 13 gt gt Appendix B EXAMPLE 90 70 PROGRAMS KKK KKK KKK KK KKK KKK special passive mode data that may For this example this will be zero m 0 x HP 30 50 x ASYNCH6 T00003 F S R00015 Main ch CP Map CP MAIN F M00001 Main c address map AM MAIN F M01025 F S R00016 F R00017 Main ch channel map F R00024 x B 79 B 80 500001 1
25. 3 GE Fanuc Automation Programmable Control Products Series Six Parallel IO Transmitter Module for the Series 90 70 PLC User s Manual GFK 1883 May 2002 Contents Real Time Consultants Pty Ltd Proprietary Information Warnings Cautions and Notes as Used in this Publication Warning notices are used in this publication to emphasize that hazardous voltages currents temperatures or other conditions that could cause personal injury exist in this equipment or may be associated with its use In situations where inattention could cause either personal injury or damage to equipment a Warning notice is used Caution notices are used where equipment might be damaged if care is not taken Note Notes merely call attention to information that is especially significant to understanding and operating the equipment This document is based on information available at the time of its publication While efforts have been made to be accurate the information contained herein does not purport to cover all details or variations in hardware or software nor to provide for every possible contingency in connection with installation operation or maintenance Features may be described herein which are not present in all hardware and software systems Real Time Consultants Pty Ltd assumes no obligation of notice to holders of this document with respect to changes subsequently made Real Time Consultants Pty Ltd makes no representation or
26. COR gt ke KR KKK KEK KK KK KKK ke KK KKK ke KKK ke ke ko KKK ke kk ke koc ke ke ke koe Detect whether 562108 are installed in slots 6 amp 8 and active FERRE ESR EERE e ee oh ael EEA EER CON o ER ERR ER EEE EER EERE EERE EER EER EERE EER AR EEE REE KY 3 tn LOT6OK T00001 oe S6NOOP for main ch err rg RUNG 8 gt gt CALL S6NOOP 4 EXTERNAL CONST X1 Y14 0008 4 4 gt gt RUNG 9 lt lt Appendix B F SR00010 C n LOT80K T00002 oe S6NOOP for Aux ch err reg F SR00011 EXAMPLE 90 70 PROGRAMS MR B 77 B 78 Real Time Consultants Pty Ltd Proprietary Information tDATA_ INIT_ INT S6PSV async aux ch err reg Q R00100 LE 00006 DATA INIT INT at R00100 00033 00001 00001 00257 00002 1 00001 6 RUNG 10 gt gt lt lt FST_SCN F M00002 4 500001 r CALL S6PMAP EXTERNAL 1 CONST X1 0006 CONST X2 Y2 R00002 0001 CONST X3 Y3 R00003 0002 S6PSV async aux ch err reg R00100 X4 Y4 R00004 Issue asynch passive scan on the main io chain The C block
27. REGISTER RO1311 00000 00000 00000 00000 0 28530 29253 08275 22867 00000 00005 00000 00000 00000 0 00000 00000 00000 00008 00000 00000 00001 00001 01198 00000 00000 00000 00000 00000 0 00000 00003 00000 00009 00000 00001 37803 00000 00000 0 00000 00000 00000 00000 0 00000 00011 00000 00001 00001 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 SOFTWARE INTERFACE 00000 00012 00016 00007 00000 33023 00001 00000 00002 37804 00000 00000 00000 00000 00000 00000 00000 00000 00001 00000 00000 00000 00000 00000 00000 00800 00103 00001 00000 00010 37800 00000 00010 00000 00000 00000 00000 00012 28492 00001 00000 00000 00000 00000 00000 00000 00000 00000 00000 00001 08306 01197 00000 00008 00000 1A00 00001 00000 00007 00124 4 37 Chapter 5 Real Time Consultants Pty Ltd Proprietary Information SYSTEM DESIGN Describes the requirements for good system design including safety considerations and architecture issues Itis strongly recommended that the software and hardware are unit and system tested before implementation in a live environment Safety Considerations Of paramount importance in planning a changeover between a Series Six CPU and the combination of S6PIO and 90 70 PLC is consideration of safety For this reason attention is drawn to the following sections which outline critical points which must be taken into account dur
28. x 50 An 3 5 A 5 50 59 NOCHACT M01029 C NLM90NFOLD ERS EXAMPL4 Ks J MAIN GFK 1883 Real Time Consultants Pty Ltd Proprietary Information 04 22 02 15 20 GE FANUC SERIES 90 70 v7 02 Page 7 EXAMPLE 4 RDNDTEX Example of using redundancy PLC configuration with S6PIO cards Passive mode is not turned off until the local is active AND there is no I O chain activity Hence the master mode S6SCAN block will not be activated until these requirements are met Additionally the S6SCAN block is executed after the S6PSV block has been turned off For the S6SCAN block X1 rack 0 slot 6 X2 Output table starting at Q00001 X3 Starting S6 address channel 0 address 1 X4 End 56 address channel 0 address 1000 X5 0 RST de asserted It is recommended that the state of RST follow the run run disable stop CPU keyswitch This is not illustrated here X6 Scan options 11100000 Force Idle mod Issue PDT window Only copy input data for which a valid CP was recieved Force idle mod nsures the I O chain is relinquished when the firmware watchdog
29. Bitl Set if board OK apd valid data Bit2 Set if out of ran Bit3 Set if open wire Bit4 Sign bit Y5 Word Array Software build numbers This is an array of 2 registers to receive the C block build number and the S6PIO firmware build number Y6 Word Pointer to the input table The S6PIO copies analog input bit data to the input table image If this pointer is not NULL the C Block copies the image data to this address It is recommended that this pointer point to the area in 90 70 I O memory corresponding to the analog input module address Table 4 12 S6AIN Parameter List As of build 123 previously under range 2 As of build 123 previously over range 3 As of build 123 previously open wire Chapter 4 SOFTWARE INTERFACE 4 17 4 18 Real Time Consultants Pty Ltd Proprietary Information Notes Keep in mind that scanning analog inputs also sends out output data to output modules at overlapping addresses Parity retries are set to 1 There is no provision in S6AIN to change the number of retries If more than two consecutive I O cycles to the same address have a parity error the scan is aborted Use the priority input mode to scan inputs without updating outputs This mode should be used for the first couple of scans after a power up until the input states have been read at least once Refer to Appendix B EXAMPLE 90 70 PROGRAMS for an example on the use of priority input mode Use the RST st
30. Console Connections 7 1 CPU ID 4 24 D DMA Log Layout 4 35 Error Codes 4 6 Event Log Common Event Log Information 4 34 Common Information Layout 4 34 System Event Log 4 36 Types 4 34 Event Log Header 4 34 Event Log Header Layout 4 34 Example 90 70 Programs Example of Two 90 70 CPU s In Redundancy Configuration B 66 Example to Demonstrate Use of C Blocks B 5 Example to Demonstrate Use of the S6PSV Block B 62 Example to Demonstrate Use of the S6SCAN Block B 1 Expanded S6 I O 5 5 Proprietary Information Index F Features 1 2 Jumpers See Jumpers Onboard LED 7 3 Onboard Reset Button 4 Selectable Scan Rates 1 2 Status LEDS 2 BRDOK Board OK LED 2 CHOK Chain OK LED 3 CHPAR Chain Parity LED 7 3 HACT Chain Active LED 1 3 ISOPWR Isolated Power LED 3 RST Reset LED 3 Special LED Functions 3 FLASH Upgrading See Utility Programs Front Panel 7 7 H Header Descriptions JP26 2 5 JP27 and JP28 2 5 JP29 2 5 JP33 2 6 I O Status Register 4 3 Installation amp Wiring Field Wiring Options Master Mode 2 9 Redundancy Configuration 2 71 S6 Primary and Auxiliary I O Channels 2 0 S6 Primary I O Chain Only 2 9 Passive Mode 2 6 S6 Primary and Auxiliary I O Channels 2 8 S6 Primary I O Chain 2 7 Header Descriptions See Header Descriptions Installing a Module 2 1 General 2 1 Installing in a Series 90 70 Rack 2 1 Jumper Settings See Jumper Settings M
31. DIGLB PROGRAM BLOCK ANLGLB PROGRAM BLOCK SCA PROGRAM BLOCK S6STA EXTERNAL BLOCK CCMTS PROGRAM BLOCK S6OPT EXTERNAL BLOCK S6WIN EXTERNAL BLOCK RELIABI PROGRAM NAME PROGRAM BLOCK DECLARATIONS S6AOP ANG EXT 20 PARAM 6 S6AIN ANG EXT 4 4 1 PARAM 6 Program RELIAB1 C LM90 FOLDERS RELIAB1 Block _MAIN GFK 1883 Appendix B EXAMPLE 90 70 PROGRAMS B 9 B 10 05 03 02 Program Real Time Consultants Pty Ltd 18 25 RELIAB1 G E FANUC SERI Proprietary Information ES 90 70 v7 02 Reliabilty Test Reliabilty test example 2 ANG EX x PARAM 6 LANG EX PARAM 1 ANG EXT PARAM 5 JANG EXT PARAM 5 ANG EXT PARAM 6 ANG EXT PARAM 4 LANG LD LANG LD LANG LD LANG LD Ce ANG EXT PARAM 3 ANG LD 5 LANG EXT PARAM 3 C LM90 FOLDERS R ELIABI Series Six Parallel I O Transmitter Module Page 4 Block MAIN GFK 1883 Real Time Consultants Pty Ltd Proprietary Information 05 03 02 18 25 GE FANUC SERIES 90 70 v7 02 Page 5 Reliabilty Test Reliabilty test example 2 S6WIN LANG EXT xX H PARAM 4 INTERRUPTS START OF PROGRAM LOGIC lt lt RUNG 5 gt gt ALW
32. JP28 rr erar e mmmmmmmmr 2 o 3 1 2 c 2 c P a colo 12 a T 4 o rrjg Jug S JP33 Enable w EER 555 o o JP4 oj oj oj ni n Not Mounted co 5 CO JP6 irm JP7 JP8 uu 0 1 RQ3z 6 8022 8012 o eee 8002 JP3 oo 4 oo oo oo oo oo oo 2 lola JP27 4 2 co HH 8 JP32 2B SB o E m _ gt 8 5 2 JP9 9 2 2 JP31 p lACINOUT Enabled Figure 2 1 S6PIO Module Showing J umpers in As Shipped Position Series Six Parallel I O Transmitter Module 3 2 Real Time Consultants Pty Ltd Proprietary Information Jumpers J P1 J P2 and J P3 Microcontroller Mode Selection These are factory set and cannot be changed Factory default positions JP1 2 3 JP2 1 2 JP3 1 2 On revision 2 00 and later boards these jumpers are not physically fitted Jumper J 24 FLASH Memory Protect FLASH memory protect jumper This jumper is set to the protected disabled position in the Enabled factory and should not be moved unless fi
33. X1 X2 3 X4 XS 18 gt gt GE FANUC SERIES 90 70 Proprietary Information v7 02 Reliabilty Test Reliabilty test example 2 AOPSTS2 Y1 R00071 AOP2IN Y 2 101313 AOP2STS Y3 R00072 AOP2BLD Y4 R00073 AOP2TAB Y54 001313 Monitor Analog input 2 outside the 5 TEMP 1 F SR00141 DUMMY2 Y6 R00075 static value range to make sur Get data from both analog input cards starting at 33 C NLM90NFOLD ERS R ELIABI Series Six Parallel I O Transmitter Module it never goes Page 24 5 5 Block ANLGLB GFK 1883 Real Time Consultants Pty Ltd Proprietary Information 05 03 02 18 25 GE FANUC SERIES 90 70 v7 02 Page 2 5 Reliabilty Test Reliabilty test example 2
34. X4 Word Window timeout in units of 1 1105608 Specifies the window timeout Normally a value of 45 should be used to give a timeout of 5 milliseconds Y2 Word I O status register refer to Register for details Y3 Word Number of window headers processed including the close window header Word Software build numbers This is an array of 2 4 registers to receive the C block build number and the S6PIO firmware build number Table 4 14 S6WIN Parameter List Notes The window duration is limited by the timeout specified in X4 In reality the SOPIO will allow the timeout to extend a few milliseconds beyond the programmed timeout provided that window headers continue to be received Chapter 4 SOFTWARE INTERFACE 4 23 4 24 Real Time Consultants Pty Ltd Proprietary Information Each data transfer to or from the S6PIO is specified by a window header sent to the S6PIO by the smart device The window header specifies the direction of transfer the memory table and offset address and the length of the transfer The window header is protected by a checksum byte Following the window header the data transfer takes place A special window header is used to close the window The window is also closed if the window timeout is exceeded without a new header being received The S6PIO stores the window headers and first few bytes of every data transfer in a DMA header log This log is accessible via the console port and is someti
35. baqnd minus 10 Wrt compare value on error IOCCM RD compare value on error IOCCM Dig Loopback OP Low Err Value Dig Loopback IP Low Err Value C LM90 FOLDERS RELIABL Block _MAIN B 8 Series Six Parallel I O Transmitter Module GFK 1883 Real Time Consultants Pty Ltd Proprietary Information 05 03 02 18 25 GE FANUC SERIES 90 70 v7 02 Page 3 Reliabilty Test Reliabilty test example 2 R00505 STERR5 Dig Loopback OP High Err Value R00506 STERR6 Dig Loopback IP High Err Value R00507 STERR7 Static Analog Err Value SRO0508 STERR8 Analog Cnt OP Value R00509 STERR9 Analog Cnt IP Value R00961 IOCCMAD R00968 WRTREG R00969 RDREG R01015 TMR2 R01020 CNTR2 R01182 RAWTPIL Data test block raw o p data R01183 RAWTP 1 R01184 ESTPIL Digital IO point test lower reg R01185 ESTP1H R02000 OGERR SRO2011 LOGHDR R02031 LOGCNT R02032 OGBLD SRO2041 LOGDATA 52104 AIN2TAB IDENTIFIER TABLE IDENTIFIER IDENTIFIER TYPE IDENTIFIER DESCRIPTION S6AOP EXTERNAL BLOCK S6AIN EXTERNAL BLOCK S6SCA EXTERNAL BLOCK S6NOOP EXTERNAL BLOCK S6EVTLG EXTERNAL BLOCK S6MOVE EXTERNAL BLOCK S6XWI EXTERNAL BLOCK DATATST EXTERNAL BLOCK INIT PROGRAM BLOCK
36. kk ke gt KO If keyswitch is in run disable mode then set 0 clock parameter to x assert RST on the S6IO Bus CR gt ke k ke ek ke ke ke ke koc ke ke ke ke ke kkk KKK KKK KKK KK Program RELIAB1 C LM90 FOLDERS RELIAB1 Block INIT GFK 1883 Appendix B EXAMPLE 90 70 PROGRAMS B 13 05 03 02 CONST 0 6 CONST 4 Real Time Consultants Pty Ltd Proprietary Information 18 25 RUNG 6 gt gt 00001 GE FANUC SERIES 90 70 v7 02 Page 8 Reliabilty Test Reliabilty test example 2 IN Q P00002 SLOT F SR00011 KEYOFF 1 MOVE INT Reset s Reset s tatus f tatus f rom RUN rom RUN switch switch RSTSTS RSTSTS CONST IN Q P00002 00001 LE 00001 5 ke KEK KKK KKK KKK KR KR KKK KR KR k ke kk ke KR KKK k k kk k Check to ensure 56210 is in slot 6 FERRER de deo e oae RH eol sek eoo I ose oe E woes oe olde BBR E KEE We OX e e X Ao esee vole y RUNG
37. koc KKK ko KKK KKK KR KR ke kc KKK KK ke koe ke ek x _MAIN GFK 1883 04 22 02 lt lt RUNG 00000 Scan Mn X2 XB X4 X5 X6 Yles 2 Y3 Y4 X X X X F X F X X X x Y6 x Cn Real Time Consultants Pty Ltd Proprietary Information 12 237 GE FANUC SERIES 90 70 v7 02 Page 4 EXAMPLE 1 This example is for reference only 9 lt lt DISABL 4 4 T00001 4 4 R 4 HMOVE I MOVE INT INT RST RST CONST 1 Q P00002 CONST IN Q P00002 LE 00001 LE 00001 00001 the Series Six I O Power flow occurs if the scan is successful without errors 5 X Rack Slot number set for CPU rack slot 7 Pointer to output table set to 1 Start address in bit format set to 1 32 Scan channel 0 starting at bit 1 End address in bit format set to 1000 En
38. will be returned by a SOPMAP call 4 Word Software build numbers This is an array of 2 registers to receive the C block build number and the S6PIO firmware build number Table 4 19 S6PMAP Parameter List Note that as the SSPMAP block is basically an initialization block it generally only needs to be run on startup However care should be taken when using first scan as this may be missed if the S6PIO is initialized after the 90 70 CPU It is be better to use the SONOOP block to detect a healthy S6PIO first and when a healthy S6PIO is initially detected then run any initialization blocks such as the SOPMAP block Example Usage The following example sets up a card map with an analog output at 33 2 33 1 another analog output at 65 2 65 1 and two analog input cards at 33 1 33 2 2 0 DATA INIT INT 80 0 1 2 3 00001 00002 00065 6 00001 00001 00033 00002 GFK 1883 Chapter 4 SOFTWARE INTERFACE 4 31 4 Real Time Consultants Pty Ltd Proprietary Information 1 M00002 FCALL S6PMAP 4 EXTERNAL CONST X1 Y14 R00001 0006 CONST X2 Y24 R00002 0001 CONST X3 Y3 R00003 0003 800100 4
39. 255 3 10 Failed to change I O channels 00 02 22 399 4 7 Reset Asserted 00 07 48 150 5 8 Reset De Asserted Refer to Figure 7 1 Anatomy of an Error Log Entry for details on the layout of the error log Chapter 7 UTILITY PROGRAMS 7 5 Real Time Consultants Pty Ltd Proprietary Information 00 07 48 150 5 8 Reset De Asserted Error Description Error Code Error sequence number Timestamp Figure 7 1 Anatomy of an Error Log Entry System Event Log The following is a typical dump from the system event log BootLdr evtrd 50 2 usEventIdx 2 usNextEvent 26 ulMaxEvents 200 ulTotalNumEvents 26 qname Event Log usInfoSize 80 Maximum entries 9 buffer size 870 00 00 00 103 0 O Event system initialised 00 00 00 593 1 0 S6PIO 0x00001000 version 1 00 build 127 May 10 2002 03 52 12 00 00 00 595 2 0 Testing for modules start 0x00001000 size 0x0001F000 00 00 00 844 3 0 Module S6PIO size 70308 type CODE addr 0x00001000 00 00 00 991 4 0 Module XCS40 size 41436 type FPGA XILINX addr 0x000122B0 00 00 01 034 5 0 Module XC9572 size 11665 type XSVF addr 0x0001C490 00 00 01 037 6 0 Module ERASE size 316 type XSVF addr 0x0001F230 00 00 01 040 7 0 Module COPYRIGHT size 422 type TEXT addr 0x0001F370 00 00 01 055 8 0 Writing XCS40 xcs40 ncd s40xlpq208 2002 05 09 11 11 16 00 00 01 637 9 0 FPGA Config complete 00 00 01 638 10 0 Configuration mode MODE PLUG AND PLAY 00 00 01 640 11 0 VME sl
40. 7 Chapter 8 Appendix A Appendix B NTRODUCTION Provides an overview of the Series Six Parallel I O Transmitter S6PIO module including the chief modes of operation features and specifications NSTALLATION amp WIRING Includes guidelines for the installation and removal of the S6PIO module jumper settings header descriptions and field wiring options ONFIGURATION Includes configuration data and information for both Plug Play mode and User Configuration mode SOFTWARE INTERFACE Describes the Series 90 70 module configuration options and the features of the C Blocks that comprise the Series 90 70 PLC software interface and includes example usage for all but the S6PIO C Block SYSTEM DESIGN Describes the requirements for good system design including safety considerations and architecture issues It is strongly recommended that the software and hardware are unit and system tested before implementation in a live environment STANDARDS amp APPROVALS Lists the standards met by the S6PIO module including EMC Emissions EMC Immunity Isolation Environmental and Safety standards TILITY PROGRAMS Includes guidelines and procedures applicable to the bootLdr utility program for communication with the S6PIO module via the front panel console port to upgrade FLASH memory or to retrieve diagnostic information from the S6PIO module card ROUBLESHOOTING Includes guidelines and procedures applicable to the
41. 8 Erasing sector 9 BootLdr download 0 1000 1ffff 86010 f bin Starting download press any key to abort 0x0001FF80 Download from file 10 56 f bin completed BootLdr exit User Configuration Mode In this mode the S6PIO uses configuration data that has been written to FLASH memory This mode is not supported in a 90 70 PLC but is supported for S6PIO use in a standard VME system as well as Innovation controllers The use may specify A16 or A24 addressing using address modifiers 0x29 Ox2D 0x39 or Ox3D No other address modifiers are supported Note that the S6PIO will respond only to the programmed address modifier It cannot respond to multiple address modifier codes The S6PIO occupies an 8K memory window In either A16 or A24 mode the address may be set on any 8K boundary within the 64K or 16M address space The S6PIO as shipped has a blank VME configuration This means that if the card is installed in user config mode the configuration will fail The mode will flash the ACTIVE LED at approximately 1 second period and turn all other LEDs off to indicate that it has entered console mode If the S6PIO has already been configured with a valid VME configuration use 128 to set the S6PIO to boot into the command line monitor Connect a serial terminal emulator to the console port Setting should be 57 600 baud 8 bits no parity Terminal emulator may be an application like Hyperterminal or it could be the BootLdr application shipped wi
42. 9 gt gt ALW ON 5101016 2800007 4 4 M00101 CALL S6NOOP EXTERNAL SLOT SL6STAT ROO011 4X1 1 6 Program RELIAB1 C LM90 FOLDERS RELIAB1 Block INIT B 14 Series Six Parallel I O Transmitter Module GFK 1883 Real Time Consultants Pty Ltd Proprietary Information 05 03 02 18 25 GE FANUC SERIES 90 70 v7 02 Page 9 Reliabilty Test Reliabilty test example 2 des NOE ao ICR Je e Reo aede vede d dese cer EREKE EAE TIE f RET sed dew sede SIR IEF First of all clear counter and error registers on first scan 50 11 0 50 301R Number of scans ERRCNT1 311R Random digital loopback error count ERRCNT2 321R Static Analog value monitor error count K ERRCNT3 331R Analog counter loopback error count ERRCNT4 341R IOCCM window error count ERRCNT5 351R IOCCM serial loopback mis compare error count TSTERR1 501R IOCCM last read error value x TSTERR2 502R IOCCM last write error value TSTERR3 503R Digital Loopback Output error value low 2 TSTERR4 504R Digital Loopback Input error value low J TSTERR5 505R Digital Loopback Output error value high TSTERR6 506R Digital Loopback Input error value high TSTERR7 507R Static Analog error value TSTERR8 508R Analog counter output erro
43. AOUT1P4 R00002 I1 Q RO0104 CONST 12 00004 F Output analog output to first analog card at 7 x The output to second analog card at 289 KEKEREKE KEREKERE ERRER 5 veo eoe esc csese dol e BBR HR TERR See SRK RK Ao y Block ANLGLB GFK 1883 Real Time Consultants Pty Ltd Proprietary Information 05 03 02 18 25 GE FANUC SERIES 90 70 v7 02 Page 23 Reliabilty Test Reliabilty test example 2 gt gt RUNG 15 lt lt SLOT6OK MOO0101 H CALL 56202 EXTERNAL SLOT AOPSTS ROO011 4X1 Y1 R00030 AOUTXA AOP1IN RO0101 4X2 Y2 100257 AOP1STS CONST 3 Y3 R00031 0101 AOP1BLD CONST 4 Y4 R00032 0001 Reset s tatus f rom RUN switch RSTSTS AOP1TAB P00002 X5 Y5 000257 PRINP DUMMY1 P00004 X6 Y6 R00033 Program RELIAB1 C LM90 FOLDERS RELIAB1 Block ANLGLB GFK 1883 Appendix B EXAMPLE 90 70 PROGRAMS B 29 B 30 05 03 02 lt lt RUNG SLOT 60K SLOT 00011 AOUTX4 00101 CONST 0521 CONST 0001 Reset s tatus f rom RUN switch RSTSTS P00002 PRINP 200004 gt gt RUNG ALW ON 5500007 SRO0112 CONST OFFF Program R Real Time Consultants Pty Ltd 18 25 16 gt gt M00101 4
44. An invalid rack address was specified Possible Cause s The rack number supplied is incorrect or invalid possibly because the rack does not exist or is not accessible Only rack addresses 0 to 7 are valid Corrective Action s Enter the correct rack number Make sure the rack is properly configured and is accessible Error Code 13 An invalid slot address was specified Possible Cause s The slot number is invalid Only slots 2 to 9 are valid Corrective Action s Ensure a valid slot number is entered as a parameter to the C block Error Code 14 There is a software version conflict between the C Block and the S6PIO Possible Cause s Both the S6PIO firmware and the C blocks have their own version or build numbers Generally these numbers should be in agreement indicating the blocks and the firmware are from the same release If the version numbers are in conflict it means either the firmware or the C block was updated without the other component being updated Corrective Action s Chapter 8 TROUBLESHOOTING 8 3 Real Time Consultants Pty Ltd Proprietary Information Update the out of date component Refer to Adding C Blocks to 90 70 Block Library for details on adding C blocks to the block library Refer to Upgrading Flash for details on upgrading the S6PIO firmware Error Code 15 An error occurred when reading or writing the VME interface Possible Cause s The 90 70 encountered an error while trying to communicate
45. CPU rack or any local expansion rack It can not be installed in a remote I O rack The S6PIO module may be installed in any slot to the right of the CPU module in a CPU rack or to the right of a BRM module in a local expansion rack The S6PIO should be placed to the right of any modules capable of generating interrupts If the 562100 module is to be installed in an existing system then simply select the next available slot If the Series 90 70 PLC is used to control factory equipment then schedule a time period when the rack power may be safely shut off without affecting production or equipment Note Once the board is installed into the 90 70 rack it is important to configure the 90 70 CPU with the slot and address information for the S6PIO This is done via the LM90 software by selecting a third party VME card for the card type Refer to hapter 3 CONFIGURATION for more details Jumper Settings Real Time Consultants Pty Ltd Proprietary Information TxD GND RxD inn arm JP29 Termination ON TCK GND TDO TMS 2 2 8 ON eng decia ON c ON ON c rin 8 1 2 2 ma 2 a ON ON e ON ON ON c ON moja fo 5 oo 2 12 1 c ON rug 8 T2 c N N c X 5 SEE 8 1 2 c 3 o JP18 mm 14 13 a
46. Command To get help on the available commands type BootLdr gt The bootldr utility will respond with the following brief help on commands BootLdr gt Help or help Print this message reset Reset the target board boot lt baud gt Boot a target processor optional baud baud lt baudrate gt Set new baudrate exec Execute a procedure file md lt start gt lt end gt Memory display mm lt start addr gt Memory modify ferase device lt sector gt lt sector sector gt all Erase FLASH sector s go lt addr gt lt stack gt term baud Execute from specified HEX address upload lt dev gt lt st gt lt end gt lt file gt Upload from target FLASH to binary file rupload lt st gt lt end gt lt file gt Upload from target RAM to binary file download lt dev gt lt st gt lt end gt lt file gt lt file offset gt Download bin file to tgt FLASH rdownload lt st gt lt end gt lt file gt lt file offset gt Download bin file to tgt RAM verify lt dev gt lt st gt lt end gt lt file gt lt file offset gt Verify FLASH with binary file rverify lt st gt lt end gt lt file gt lt file offset gt Verify RAM with binary file term baud rate Go to terminal mode return to BootLdr with delay lt msec gt Delay for specified number of milliseconds pkt type Set packet or simple protocol evthdr log id Read and display specified event log headers evtrd num entries log id Read and disp
47. IOCCM s Window IOCCM X erial 1 error c fer com oopback ount fo plete w er coun r IOCCM ith err ERRCNT5 ERRCNT4 XFERCNT CONST IN Q RO0351 CONST 1 Q RO0341 CONST 17 1 00000 LE 00000 LE 00000 LE 00001 00001 00001 RUNG 5 gt gt FST SCN 51 d 2 3 F 3 MOVE_ MOVE_ MOVE_ INT INT INT Xfer Window error Timeout data error Scan value count counter ERRDATA WIN1TO SCNCNT CONST IN Q RO0371 CONST 1 Q RO0291 CONST IN Q RO0800 00000 LE 00000 LE 00000 LE 00001 00001 00001 RUNG 6 gt gt FST SCN 500001 4 F 3 MOVE_ MOVE_ MOVE_ INT INT INT BITREF BITNO OUTCPY CONST IN Q RO0O711 CONST 1 Q RO1520 CONST IN Q RO01521 00000 LE 00000 LE 00000 LE 00001 00001 00001 data Program R GFK 1883 until complete and repeat Start with write serial data until status complet KK KK KK KK KK KK 8 ELIABI ELIABi1 C NLM90NFOLD ERS R Appendix B EXAMPLE 90 70 PROGRAMS then read serial RK RK RK RK KK
48. In this mode the VME bus is disabled JP5 0 JP6 1 Boot from FLASH or RAM JP7 specifies whether to boot from a program in FLASH or RAM This mode is only used during module testing The factory default position is to boot from FLASH Position 0 Boot from RAM Position 1 Boot from FLASH Boot into Onboard Monitor JP8 specifies whether to boot into a monitor program for diagnostic and testing purposes or the application program The factory default is to boot into the application program Position 0 Boot into monitor program Position 1 Boot application program Jumper J P9 VME SYSFAIL 3 rn SYSFAIL The diagram at left shows the jumper with SYSFAIL enabled normal position moving the jumper to the upper two pins disables SYSFAIL SYSFAIL is asserted from the S6PIO module at power up until all self tests are complete J umpers J P10 through J P25 Bus Termination JP10 These jumpers are Series Six Bus termination jumpers In the default position ON pins 1 2 jumpered terminates all signals on the 2 DB37 connectors with 150ohm resistors This setting is appropriate when the S6PIO module is in Master Scan mode at the start of an I O chain and there is only one Series Six I O cable plugged into a DB37 connector generally the bottom DB37 connector Jumpers 1210 through JP25 should be placed in pins 2 to 3 position when the S6PIO module is used in Passive mode where the 56210 module is not at the
49. KKK KKK KR ke kkk KKK KKK KKK KK C NLM90NFOLDERSNRELIABI Appendix B EXAMPLE 90 70 PROGRAMS read in the status diagnostics Page 47 BRK KEK ke KKK KKK KR KKK KR KKK KR KK RK RK KK KEK KR KKK KK KK 6 gt RRR ke KKK KKK KR KR KKK KKK KR KR KKK KEK KK KK KKK KEK KK KK KKK KEK KK KE KK KKK Block CCMTST B 53 B 54 05 03 02 Real Time Consultants Pty Ltd 18 26 lt lt RUNG 39 gt gt IOCCM Read serial serial transfe IOCCM r error SLOT6OK RD CCM CCMXFER M00101 M00082 100015 F a TANT FDATA CAI INIT_ INT MEM1TYP Q R00082 CONST X1 LEN 0006 00003 F CONST 2 0005 CONST X3 0168 CONST 4 0000 CONST X5 DATA INIT INT 3 2 1 8 00720 00001 Program RELIAB1 C LM90 FOLDERS RELIAB1 GE FANUC SERIES 90 70 v7 02 Reliabilty Test Reliabilty test example 2 0028 4 Series Six Parallel I O Transmitter Module Proprietary Information Page MOVIERR Y1 R00081 MEMITYP Y2 R00082 MEMIOFF Y3 R00083 MEMIID Y4 R00084 MOV1BLD 5 5 48 Bloc
50. Mode and desired channel bitmap Bits 1 amp 2 define the mode bits are numbered 1 to 16 0 stop 1 run single channel 2 run expanded channel mode Bits 3 8 are set to 0 Bites 9 16 define the desired channels in expanded channel mode These bits represent channels 0 7 respectively and if set the data for that channel is copied to the next available buffer space This feature allows the user to tailor exactly what expanded channel data is returned to the 90 70 program X4 Byte Array Pointer to input table PM Byte Array Pointer to output table Synchronization address This address is monitored by the SOPIO and when a bus cycle occurs to this address the C block will return with the most current passive mode data Usually this address is set to OxFF the PDT window address Y2 Word Array Card Present map A map of CP status encountered since the last time the passive mode C block was executed Consists of 1 bit per address starting at address 0 The respective bit is set if a Card Present signal is received during the scan to that address Card Present is a signal on the Series I O Bus that is asserted whenever an input module is scanned The CP map consists of 8 words per channel When running the S6PSV block in expanded channel mode ensure that sufficient space is allocated for 8 expanded channels ie 64 words Y3 Word Array Address map A map similar to the CP map that indicates the addresses scanned since the last time the passi
51. Program EXAMPL4 Series Six Parallel I O Transmitter Module CAI GE Test for chain activity see previous comment or 110 will be reported on the output of the passive block when the timeout has been exceeded FANUC 5 ERI EXAMPLE 4 ES 90 70 RDNDTEX Example of using redundancy PLC configuration with S6PIO cards Proprietary Information v7 02 Page 6 PSCANOK M01051 LL S6PSV EXTERNAL PSV_ERR Y1 R01310 CPMAPO1 Y24 R01311 ADMAP01 Y3 R01331 PSVSTAT Y4 R01349 PSVBBLD Y5 R01350 CHNLO amp 1 Y6 RO01352 A chain is considered to be inactive if the pdt window is not detected within the timeout period that the timeout period therefore be set to an appropriate value The NOCHACT coil is really only valid while in passive mode ck Ck Ck Ck Ck Ck Ck Ck Ck Ck Ck Ck Ck Ck Ck ck Ck ck It is essential 3 a
52. RDREG TSTERR2 SRO3011 IN Q R00501 SRO1101 IN Q R00502 LE LE 00001 00001 RUNG 49 gt gt 5101016 51 100101 H EQ ADD 4 INT INT Scan Scan counter counter SCNCNT SCNCNT SROO800 I1 0 FMOVE t 00800 11 Q4 INT Scan counter SCNCNT CONST I2 CONST 1 Q ROO0800 CONST 2 32767 t 5 LE 00001 4 00001 Program RELIAB1 C LM90 FOLDERS RELIAB1 B 58 Series Six Parallel I O Transmitter Module Block CCMTST GFK 1883 Real Time Consultants Pty Ltd Proprietary Information 05 03 02 18 26 GE FANUC SERIES 90 70 v7 02 Page 53 Reliabilty Test Reliabilty test example 2 gt gt RUNG 50 lt lt SLOT6OK 51100101 4 GEL HS INT Scan counter SAMPLE SCNCNT 0 9 200800 11 Q CH CONST I2 00020 4 F END OF BLOCK LOGIC Program RELIAB1 C LM90 FOLDERS RELIAB1 Block CCMTST GFK 1883 Appendix B EXAMPLE 90 70 PROGRAMS B 59 Real Time Consultants Pty Ltd Proprietary Information 05 03 02 18 26 GE FANUC SERIES 90 70 v7 02 Page 54 Reliabilty Test Reliabilty test example 2 THE LOGIC FOR THE FOLLOWING EXTERNAL BLOCKS CANNOT BE PRINTED S6AOP S6AIN S6SCA S6NOOP S6EVTLG S6MOVE S6XWI DATATST S6STAT S60PT S6WIN Program RELIABI C NLM90NFOLDERSN
53. REGPADD 0_5 5100031 65 Y54 000961 IOCCM status data IOCCMAD CCMSTS RO0961 4X6 Y6 R00391 Program RELIAB1 C NLM90NFOLDERSNRELIABI Block CCMTST GFK 1883 Appendix B EXAMPLE 90 70 PROGRAMS B 49 B 50 05 03 02 lt lt RUNG ALW_ON WINIERR RUNG SLOT60OK M00101 4 IOCCM status data CCMSTS R0O0391 4 CONST 4 800007 4 EQ_ 4 200021 11 Q4 CONST I2 00114 4 4 Real Time Consultants Pty Ltd 18 26 28 30 00002 4 Program R 1 gt Window Timeout error count WIN1TO SROO291 12 E FANUC SERIES 90 70 Proprietary Information Reliabilty Test INT Window Timeout error count WIN1TO CONST I1 Q RO0291 Reliabilty test example 2 Test bit 2 of the status byte for command complete without error When complete clear status register for next command e ke kk ke kk kk ke ke e ke ke ke kk ke ke ek ke ke ek ke KKK KK v7 02 Page 44 5 ke KR KKK KK KR KKK KKK KR KR KKK KKK KR KKK KK KEK kc ERK KKK CCMCOMP 53 ELIABI
54. S00007 CALL INIT lt lt RUNG 6 gt gt ALW_ON 27 0 CALL CCMTST lt lt RUNG 7 gt gt ALW_ON 27 0 I CALL DIGLB RUNG 8 gt gt ALW ON 27 4 1 I CALL ANLGLB 4 lt lt RUNG 9 gt gt ALW_ON S00007 4 4 I CALL SCAN Program RELIAB1 C LM90 FOLDERS RELIAB1 Block _MAIN GFK 1883 Appendix B EXAMPLE 90 70 PROGRAMS B 11 Real Time Consultants Pty Ltd G E FANUC 5 ERI ES 90 70 Proprietary Information v7 02 Reliabilty Test Reliabilty test example 2 Page 6 0 9 SR01400 R01401 R01420 LOGERR S R02000 LOGHDR SRO2011 LOGCNT R02031 LOGDATA R02041 LOGBLD R02032 LOGIC 05 03 02 18 25 lt lt RUNG 10 gt gt ALW_ON 500007 F F CALL S6STAT EXTERNA SLOT R00011 X1 1 CONST 2 Y2 0000 R00900 4X3 Y3 RUNG 11 SLOT6OK 51 100101 4 F F CALL S6EVTLG EXTERNAI CONST 1 1 0006 CONST X2 Y2 0002 CONST X3 Y3 0000 CONST 4 4 0002 CONST X5 YS 0000 END PROGRAM Program RELIAB1 C NLM90NFOLDERSNRELIABI
55. Y4 R00004 4 M00003 FCALL S6PSV EXTERNAL CONST X1 Y1 R00050 0006 CONST X2 Y24 M00129 0032 CONST 3 Y34 M00257 0001 100001 4 Y44 R00051 Y54 R00052 000001 CONST X6 Y6 R00053 OOFF 1 Refer to Appendix B EXAMPLE 90 70 PROGRAMS for further example use of the SOPMAP C Block 4 32 Series Six Parallel I O Transmitter Module GFK 1883 4 Real Time Consultants Pty Ltd Proprietary Information S6EVTLG C Block GFK 1883 The S6EVTLG C Block provides an interface to the S6PIO event logs The S6PIO module maintains three event logs the system event log the system error log and the DMA header log The event logs are available using the BootLdr utility described in By using the SGEVTLG C Block application code in the 90 70 may retrieve the event logs and present the information to higher level alarming and reporting systems to assist in routine system maintenance The S6EVTLG C Block provides the ability to clear the event logs and to retrieve the most recent information Parameter Data Type Comment Rack in high 8 bits slot in low 8 bits Log type O DMA log 1 system error log 2 system event log If I returns header only X4 Word Maximum number of log entries to return This parameter effectively sizes the buffer to use at Y4 Maximum number of entries i
56. across the back plane to the S6PIO Corrective Action s Ensure the S6PIO is properly seated in the card rack and that the SOPIO is free of hardware faults Error Code 20 An invalid function code was specified Possible Cause s A C block has asked the firmware to perform an unknown task This can occur when a new C block with new functionality is run on a system which has old S6PIO boards with earlier versions of the firmware The firmware in this case does not know how to deal with the new functionality Corrective Action s Update the firmware to the latest version Error Code 21 A timeout occurred Possible Cause s A time limit was exceeded usually resulting from an expected event failing to occur within a set time For example the S6PSV block waits for t milliseconds for a synchronization address to appear on the I O chain where t is set via the X2 parameter of the block The synchronization address is usually OxFF the PDT window A timeout in this case means the PDT window failed to appear within t milliseconds Corrective Action s Ensure the timeout period is appropriately set As a rule of thumb for the passive block the timeout should be about 5046 greater than the average Series Six sweep time If the timeout period is reasonable but timeout errors still occur check the user application program to ensure the synchronization address is occurring as expected Error Code 41 The defined series 6 I O start address is out
57. checksum errors were encountered This may occur if the I O chain is unreliable either through poor connections or high levels of induced noise Exceeding cable length limits may also cause this problem In particular Genius I O on very long cables can also generate this problem Corrective Action s Refer to the Series Six installation manual to details on the proper installation of the Series Six equipment If possible reduce I O chain cable lengths Self test Mode If hardware problems are suspected then the S6PIO module may be placed in Self test mode In Self test mode continuous tests are performed on the FPGA DPRAM SRAM and the isolated Series Six interface Before running the Self test ensure that all jumpers other than JP5 amp JP6 are in the factory default positions The Self test function is invoked by placing both JP5 and JP6 in the 1 2 position i e the position away from the back plane connector Do not invoke the self test function unless the S6PIO has been disconnected from the I O system both up stream and down stream connections should be disconnected Failure to disconnect from the I O system may cause physical damage While in Self test mode the front panel LEDs indicate the following Bottom LEDs Active RST Flash in unison to indicate self test mode Middle LEDs PARITY ISOK Binary coded progress indicator Top LH LED BRDOK Binary coded progress indicator Top RH LED CHAIN Error indicator In Sel
58. example 2 RUNG 5 gt gt Max val ue of c ounter for A o MAXCNT2 M00104 M00120 1 9 gt gt RUNG 6 lt lt M00109 HONDTR 1 00s M00109 v R CONST PV CV RO4001 00005 SRO4011 BRK gt KEK KR KEK KKK KK KR KKK KEK RK KKK RK KR KKK KK KEK KR KKK KEKE KKK KK KK Simple count up and down routines for controlling changing analog values to test varying outputs and inputs KER KK KKK KKK KKK KKK KKK kkk kkk kkk kk kkk ke KK KKK KKK lt lt RUNG 8 gt gt MAXCNT2 51100120 51400109 F M00104 i 11 gt UPCTR S Max val ue of c ounter for Ao MAXCNT2 51100120 M00104 a LI Por R COUNT2 CONST 2 7 SRO4021 Program RELIAB1 C LM90 FOLDERS RELIAB1 Block ANLGLB B 26 Series Six Parallel I O Transmitter Module GFK 1883 Real Time Consultants Pty Ltd Proprietary Information 05 03 02 18 25 GE FANUC SERIES 90 70 v7 02 Page 21 Reliabilty Test Reliabilty test example 2 RUNG 9 gt gt MAXCNT2 M00120 M00109 H M00104 l gt DNCTR R Max val ue of c ounter for Ao MAXCN
59. fatal parity error arises when the preprogrammed number of parity retries is exceeded The current scanning function is aborted DWORD Total number of parity error retries Parity retries are recoverable up to the retry limit specified This counter counts the total number of retries whether recoverable or not 10 DWORD Total number of analog input scan errors These errors typically arise when an S6AIN block scans a set of addresses where one or more analog input cards are missing DWORD Total number of DMA window errors A DMA window 4 8 Series Six Parallel I O Transmitter Module GFK 1883 4 Real Time Consultants Pty Ltd Proprietary Information Register Data Type Comment Offset error can be caused by a checksum error timeout or invalid DMA window header being received or by data under run or overrun 14 DWORD Total number of expanded channel errors The channel error count will increment each time a scan fails to change from one channel to another Table 4 9 Description of S6STAT Status Counters Example Usage Refer to Appendix B EXAMPLE 90 70 PROGRAMS for an example use of the S6STAT C block GFK 1883 Chapter 4 SOFTWARE INTERFACE 4 9 4 Real Time Consultants Pty Ltd Proprietary Information S60PT C Block Interface The S6OPT block provides a means of reading or writing S6PIO option settings Currently the only option parameter able to be set is the board watchdog timer S6OPT C block was created wi
60. lt lt SVC t EQ RE INT RDISPRM Ck Ck Ck KKK KKK 50 x P ke ke kk kk KK ko ke kk KEK KK KK ke KK KR KKK gt COR RRR Ae KEK KK KK KKK KEK e KKK KKK k k k kk k k k DISABL T00001 FNC 200001 11 Q FPARM CONST 12 R 4 t 400001 If keyswitch is in run disabled mode rt RST on the S6 IO Bus EXAMPL1 C LM90 FOLD ERS EXAMPL1 Series Six Parallel I O Transmitter Module then set C Block parameter to Block C KKK KR KKK
61. of the PLC memory range Possible Cause s The PLC does not physically contain the I O address specified Corrective Action s Ensure the parameter specifying the I O address refers to a physical address Error Code 42 The defined series 6 I O range is out of the PLC memory range Possible Cause s The address range provided means that when added to the start address some or all of the later addresses do not physically exist Corrective Action s Make sure the address range specified does not put the later addresses out side the usable range Error Code 43 The defined series 6 channel number is out of range Possible Cause s The specified channel number is outside the range O to 7 Corrective Action s Ensure the channel number is inside the range 0 to 7 Error Code 44 Size exceeds capacity of transfer buffer Series Six Parallel I O Transmitter Module GFK 1883 Real Time Consultants Pty Ltd Proprietary Information Possible Cause s The transfer buffer is a dual port memory buffer used for buffering data between the 90 70 and the S6PIO In this case the amount of data requested to be transferred is greater than this buffer can hold Corrective Action s Transfer less data per block This can be achieved by splitting the transfer across two blocks Error Code 45 Bad DMA header encountered when transferring data to the 90 70 Possible Cause s A DMA header failed to decode to a valid type or valid address or header
62. other address modifiers are supported The S6PIO occupies an 8K memory window In either A16 or A24 mode the address may be set on any 8K boundary Refer to Chapter 7 UTILITY PROGRAMS for details on how to program configuration data into FLASH memory 3 2 Series Six Parallel I O Transmitter Module GFK 1883 Chapter 4 Real Time Consultants Pty Ltd Proprietary Information SOFTWARE INTERFACE 90 70 Module Configuration C Blocks Once the board is installed into the 90 70 rack it is important to configure the 90 70 CPU with the slot and address information for the S6PIO This is done via the LM90 software by selecting a third party VME card for the card type Refer to Chapter 3 CONFIGURATIONT for more details The 90 70 PLC interface software is in the form of a collection of C Blocks The C blocks provide the interface between Series 90 70 PLC application programs and the 56210 module At the completion of processing a C block returns a comprehensive status to the user program Number of Parameter Pairs S6NOOP Simple block to test presence of S6PIO ENDO module 6STAT Block to get or clear SGPIO status counters 3 SaoPT Read Write options N Master Scaninterface Master Scan analog output interface Master Scan analog input interface Passi i pt ITAN le V oO lt lt n Passive Mode interface 6 6WIN DMA Windowing interface XWIN Expanded DMA Windowi
63. physical input will not be disturbed Series Six Parallel I O Transmitter Module GFK 1883 4 Real Time Consultants Pty Ltd Proprietary Information Example Usage The following example scans I O from bits 1 to 1000 and issues a PDT window at the completion of the scan Outputs are taken starting at 96001 Inputs are copied starting at I1 Active Scans Running ACTSCAN S6SCNOK 500006 qeu 2 M00002 CALL S6SCAN EXTERNAL S6SCAN Error Status ERRST CONST 1 Y1 R00001 0007 S6 S6 Output Input Table Table S6 OUT S6 IN 000001 4X2 Y24 100001 S6PIO Command Timeout S6SCNIO CONST Y3 M00081 0001 S6SCAN CBlock Build Number CBUILD CONST 4 Y4 R00003 03E8 CONST 5 5t 0000 CONST X6 Y6 0040 ene GFK 1883 Chapter 4 SOFTWARE INTERFACE 4 13 4 Real Time Consultants Pty Ltd Proprietary Information S6AOP C Block Introduction The S6AOP C Block provides a simple interface to the S6PIO module for use in master scan mode to output data to analog output cards The S6PIO module automatically scans and multiplexes the data to output to the four analog output channels on each card The S6AOP C Block consists of 6 pairs of parameters as follows Parameter Data Type Comment Rack in high 8 bits slot in low 8 bits EX Word Amy Pointer to analog output data 4 registers per c
64. timer expires This watchdog will expire when the 90 70 CPU stops communicating with the S6PIO It is important that Force Idle Mode is selected for redundant applications Program EXAMPL4 C NLM90NFOLDERSNEXAMPLA Block MAIN GFK 1883 Appendix B EXAMPLE 90 70 PROGRAMS B 73 Real Time Consultants Pty Ltd Proprietary Information 04 22 02 15 20 GE FANUC SERIES 90 70 v7 02 Page 8 EXAMPLE 4 RDNDTEX Example of using redundancy PLC configuration with S6PIO cards RUNG 28 SLOT6OK PSVMODE MSCANOK 51100106 M01028 F q 4 F M01061 Sce 1 I BLKMV CALL S6SCAN INT EXTERNAL R amp SSCAN R amp SSCAN SCANERR CONST 1 1 Q RO1411 RO1411 X1 Y1 RO1421 00006 CONST IN2 000001 4X2 Y24 100001 00000 STAADDR SCNSTAT CONST IN
65. 0 70 PROGRAMS for example uses of the S6PSV block Examples of normal use of the block as well as asynchronous use are provided 4 22 Series Six Parallel I O Transmitter Module GFK 1883 4 Real Time Consultants Pty Ltd Proprietary Information S6WIN C Block GFK 1883 Introduction Smart Series Six I O modules communicate by becoming bus masters on the Series Six I O bus The mechanism for doing this is termed a DMA Window The S6PIO supports DMA windows and allows a particular addressed device to become a bus master and direct the flow of data between the device and emulated Series Six memory tables within the S6PIO The DMA referred to here is termed Master DMA mode in this case the S6PIO is normally the bus master and allows a slave device to become a bus master and own the bus for the duration of a window The S6PIO does not support slave DMA mode The S6WIN C Block provides an interface to the S6PIO module for use in Master DMA mode to open a DMA window at a specific address The S6WIN C Block consists of 4 pairs of parameters as follows Data Type Bits 1 8 slot number Bits 9 14 rack number Bit 15 set use expanded channel mode Bit 16 not used should be 0 X2 Word DMA address The address is specified in standard Series Six bit notation Refer to for details Bit 16 set DMA flow through X3 Word Command timeout in milliseconds Specifies the maximum time the C Block will wait for a window to complete
66. 3 R01413 4X3 Y3 R01423 00001 ENDADDR SCNBBLD CONST IN4 R01414 X4 Y4 R01424 01000 SCNRSET CONST IN5 R01415 X5 5 00000 SCNOPTN CONST IN6 R01416 4X6 6 00224 4 F CONST IN7 00000 4 4 F RRA IRE RR ese ue Sexo esie AE HI RRR e eoe IE eae ee eoe FORK IIE RR KA So Roe e ex eae OE y ADD USER LOGIC CODE HERE 3 s A The following is included for example purposes only e x gt AR gt e deo x AE eie Re IC deed se e ORO GRE RI SE He RR de eee eoe gt gt RUNG 30 lt lt F M00001 1 HFONDTR C 0 01s M00001 ae R CONST PV CV 00010 P00026 Program EXAMPL4 C NLM90NFOLDERSNEXAMPLA Block MAIN B 74 Series Six Parallel I O Transmitter Module GFK 1883 Real Time Consultants Pty Ltd Proprietary Information 04 22 02 15 20 GE FANUC SERIES 90 70 v7 02 Page 9 EXAMPLE 4 RDNDTEX Example of using redundancy PLC configuration with S6PIO cards RUNG 31 M00001 4 4 BIT SEQ 000145 8 LEN 00016 1 DIR CONST STEP 00001 000129 ST R00001 lt lt RUNG 32 gt gt FST_SCN 500001 000161 EN lt lt RUNG 33 gt gt
67. 45 B 46 Real Time Consultants Pty Ltd Proprietary Information 05 03 02 18 26 GE FANUC SERIES 90 70 v7 02 Page 40 Reliabilty Test Reliabilty test example 2 RUNG 20 gt gt Write serial TO IOCCM WT CCM 51100081 4 DATA_ INIT INT IOCCMAD Qt R00961 LE 00006 DATA INIT INT at R00961 1 06111 00005 00001 03011 00064 6 00968 57 gt KEER R KEK REER EEE I RESIS ES HIER RIS ERK BRIER CRS HK REIS ER EER RKE Set up register parameter block 961 register parameter address in 56210 where data will be moved to 71 64 regs of write data 7 regs of command data HERERERERERERER RA EREEREER ERES EERE EES EERE ese EER 5 5 SERRE REE EER AE ES dese de eK ey lt lt RUNG 22 gt gt Write serial TO IOCCM WT CCM 51100081 4 DATA_ INIT INT 56210 8 egister Paramet er Addr REGPADD Q SL00031 LE 00002 DATA INIT INT at L00031 1 00961 00071 Program RELIAB1 C LM90 FOLDERS RELIAB1 Block CCMTST Series Six Parallel I O Transmitter Module GFK 1883 05 03 02 IOCCM serial transfe r error CCMXFER T00015 POM Real Time Consultants Pty Ltd Proprietary Information 18 26 GE FANUC SERIES 90 70 v7 02 Page 41 Reliabilty Test Reliabilty test example 2 RUNG 23 gt gt Read serial IOCCM RD CCM 51100082
68. 52 12 VersionString S6PIO 0x00001000 version 1 00 build 127 May 10 2002 03 52 12 SFPGAModule XCS40 SFPGANCDFile xcs40 ncd SFPGAPackage s40xlpq208 sFPGADate 2002 05 09 SFPGATime TIST1416 usFPGA OK OK BootLdr BootLdr evtrd Command The evtrd command allows the BootLdr utility to retrieve diagnostic information from the S6PIO The evtrd command allows the user to look at the three event logs maintained by the S6PIO module e System Event Log e System Error Log e DMA Header Log Each event is time stamped with a time since boot an event number a priority field and a message field By default evtrd displays the last 50 entries in the System Event Log Examples of the use of the evtrd command are as follows DMA Header Log The following is an excerpt from a DMA log generated using the boot loader command evtrd 50 0 It shows one complete DMA window for a GBC and IOCCM card as well as a PDT window 1003058 0 9 BR0961 1003059 0 9 BR0961 1003060 0 19 BR0961 1003061 0 8 BR0961 1003062 0 9 BR0961 1003063 0 8 BR0961 1003064 0 9 BR0961 1003065 1 7 BR0961 1003066 0 9 BR0513 1003067 0 9 BR0513 1003068 0 9 BR0513 1003069 0 9 BR0513 1003070 0 9 BR0513 1003071 0 9 BR0513 1003072 0 9 BR0513 1003073 0 25 BR0513 Chapter 7 UTILITY PROGRAMS W SP 00055 00056 0000 R RM 00961 00961 7017 R RM 00961 00966 4 R TR 00000 00000 0 W RM 00961 00961 0000 80 100961 100968 3 58 00055 00056 02F3 CLOSE WI
69. 6 1 IEC 68 2 6 6 1 Isolation 6 1 IEC 950 6 1 Safety 6 1 IEC 950 6 1 Standards and Approvals Table 6 1 Switching Modes A 1 System Error Log 4 35 System Error Log Fault Codes 4 36 T Testing 5 3 Troubleshooting Self test Mode 8 5 U User Configuration Mode See Utility Programs Utility Programs BootLdr Utility 7 1 BootLdr Boot Command 7 7 BootLdr evtrd Command 7 3 BootLdr exec Command 7 2 BootLdr exit Command 7 2 BootLdr help Command 7 2 Introduction 7 1 Console Interface 7 7 Invoking BootLdr 7 7 Upgrading FLASH 7 7 User Configuration Mode 7 8 Watchdog Timeout 5 GFK 1883 Index 3
70. AMPL4 Block _MAIN Series Six Parallel I O Transmitter Module GFK 1883 Real Time Consultants Pty Ltd Proprietary Information 04 22 02 15 20 GE FANUC SERIES 90 70 v7 02 Page 3 EXAMPLE 4 RDNDTEX Example of using redundancy PLC configuration with S6PIO cards X OR OE ode 7 wide de qo eue dede sede e eR dob ooo dede odo e oer dede E EREE de eR ER e we e we Set passive mode x Note that passive mode is held while there is chain activity The NOCHACT coil is only valid in passive mode lt lt RUNG 18 gt gt L_ACTIV PSVMODE M00136 M01028 t C FST SCN S00001 d EH PSVMODE NOCHACT M01028 M01029 I Set up parameters for normal passive mode Be careful not to scan shared I O t 1 X1 rack 0 slot 6 2 X2 time out of 30 ms this would have to be increased for a large program m S As a general rule of thumb use 1 5 times the averag x sweep time IN3 X3 mode single channel mod m INA not used x IN5 not used 6
71. B VARIABLE DECLARATIONS VARIABLE DECLARATION TABLE REFERENCE NICKNAME REFERENCE DESCRIPTION NO VARIABLE TABLE ENTRIES IDENTIFIER TABLE IDENTIFIER IDENTIFIER TYPE IDENTIFIER DESCRIPTION NO IDENTIFIER TABLE ENTRIES START OF BLOCK LOGIC Set up sample rate for digital scan checks Sample is taken every 2 scans CR 5 3 5 SOROR 5 EEE ERE QOR UR oe eo eR e e E OR RES deo ed e R gt gt RUNG 4 lt lt ALW 500007 F prc F EQ ADD INT INT SCNCNT1 SCNCNT1 SCNCNT1 00301 11 Q 4 FMOVE RO0301 I1 Q R00301 INT 21 CONST 2 CONST IN Q RO0301 CONST I2 32767 32768 LE 00001 F 00001 Program RELIAB1 C LM90 FOLDERS RELIAB1 Block DIGLB B 18 Series Six Parallel I O Transmitter Module GFK 1883 Real Time Consultants Pty Ltd Proprietary Information 05 03 02 18 25 GE FANUC SERIES 90 70 v7 02 Page 13 Reliabilty Test Reliabilty test example 2 RUNG 5 gt gt 4 4 GE INT SAMPLE1 SCNCNT1 M00002 800301 11 Q4 4 FMOVE C INT SCNCNT1 CONST I2
72. CONST IN Q R00301 00002 00000 LE 00001 BRR RK KKK RK KR KR KKK KKK KR KK KKK KEK KK KK KEK KK KK KKK KEK KK KK KKK KKK KK KK Monitor the returned input data against the raw output digital random data Both lower and upper registers are monitored ON OEC KK ko RK KKK KKK KK KKK KKK KKK KK KR ke ke kc kkk KKK KKK KKK KK lt lt RUNG 7 gt gt Sample rate fo r digit al IO SAMPLE1 M00002 i NA INT Digital IO poin Gest IP1LERR1 TESTPIL UE R01184 I1 Q 0 INTABL 1 2 Program RELIAB1 C LM90 FOLDERS RELIAB1 Block DIGLB GFK 1883 Appendix B EXAMPLE 90 70 PROGRAMS B 19 Real Time Consultants Pty Ltd Proprietary Information 05 03 02 18 25 GE FANUC SERIES 90 70 v7 02 Page 14 Reliabilty Test Reliabilty test example 2 lt lt RUNG 8 gt gt Sample rate fo 2 Git al IO SAMPLE1 M00002 4 F sca ai EQ INT Digital IO poin t test lower r IP1ERR1 TESTP1L M01110 R01184 I1 Q R INTABL I00001 I2 lt lt RUNG 9 gt gt Sample rate fo r digit al IO SAMPLE1 SM00002 1t 4 F INT IP2ERR1 TESTP1H M01111 R01185 I1 Q S INTABH
73. E IDENTIFIER DESCRIPTION NO IDENTIFIER TABLE ENTRIES START OF BLOCK LOGIC Testing expanded channel mode Channel 0 has digital 1 0 starting at 129 to 145 And analog input at 33 And Analog output at 257 Channel 1 das digital I O stating at 0 to 17 And analog input at 65 And Analog output at 9 The upcounter counts 0 to 1024 FS incrementing each second The CV is used as the analog output value for analog channel 1 Analog channel 2 has a constant value 1024 Analog channel 3 has Channel 1 2 Analog channel 4 has channel 1 4 KKK KK KKK KKK KK KKK KK gt gt RUNG 4 lt lt SLOT6OK M00101 M00120 C Program RELIAB1 C LM90 FOLDERS RELIAB1 Block ANLGLB GFK 1883 Appendix B EXAMPLE 90 70 PROGRAMS B 25 Real Time Consultants Pty Ltd Proprietary Information 05 03 02 18 25 GE FANUC SERIES 90 70 v7 02 Page 20 Reliabilty Test Reliabilty test
74. EFERENCE NICKNAME REFERENCE DESCRIPTION NO VARIABLE TABLE ENTRIES I DAE Ne L 2 1 TABLE IDENTIFIER IDENTIFIER TYPE IDENTIFIER DESCRIPTION NO IDENTIFIER TABLE ENTRIES START OF BLOCK LOGIC Program GFK 1883 RELIAB1 C NLM90NFOLDERSNRELIABI Appendix B EXAMPLE 90 70 PROGRAMS Block Scan digital I O on both channels BR gt R KR KR KKK KR KK RK KK KKK KK KK KKK KER KK KKK KER KEK KK KEK KK KK KEK KK KK SCAN B 37 B 38 05 03 02 SLOT60K OPTAB1L 000001 CONST 0081 CONST 00A1 Reset s tatus f rom RUN switch RSTSTS P00002 PRINP Program M00101 4 m 5200004 53 18 26 Real Time Consultants Pty Ltd lt lt RUNG 4 gt gt GE FANUC SERIES 90 70 Proprietary Information Reliabilty Test Reliabilty test example 2 v7 02 Page 32 SCN10K M00003 SCNSTS SR00051 INTABL 100001 SCN11IOS R00053 SCNIBLD SR00054 DUMMY3 SR00056 DUMMY 4 R00057 CALL S6SCAN 4 EXTERNAL X1 Y1 2 Y2 X3 Y3 X4 Y4 X5 5 X6 6 RELIAB1 C LM90 FOLD ERS R ELIABI Series Six Parallel I O Transmitter Module Block 9 SCAN GFK 1883 05 03 02 18 Real Time Consultants Pty Ltd Proprietary Inf
75. EXAMPL3 GFK 1883 Appendix B EXAMPLE 90 70 PROGRAMS ood Block MAIN B 65 Real Time Consultants Pty Ltd Proprietary Information Example 4 Two 90 70 CPU s In Redundancy Configuration This program illustrates the use of two Series 90 70 CPU s in redundancy configuration driving a single Series Six I O chain With additional coding multiple I O chains can be controlled by the use of the redundancy CPU configuration In such a case a S6PIO module should be used for each chain in each Series 90 70 CPU rack Bumpless change over between CPU s is achieved when either CPU rack is powered down for maintenance or modifications or in the event of a failure The example is intended to be used as a guide when constructing real world applications This example makes the following assumptions 1 Two Series 90 70 CPU racks with redundancy processors wired as per Figure 2 6 Master Mode wiring with two 90 70 s in Redundancy Configuration to a Series Six primary I O chain 2 Asingle S6PIO module in slot 6 of each of the 90 70 CPU racks are used to control the Series Six I O Chain Also note that the example does not cater for the situation where both units are inactive in which case both units will remain in passive mode It is possible for the system to operate with both units active both in Solo mode in which case the first unit to enter master mode will prevent the other unit from entering master mode as well If
76. GFK 1883 3 Real Time Consultants Pty Ltd Proprietary Information n expanded channel n where n PDT PDT window 961 Card Address Header Type Indicator Header data between has been decoded for the users convenience Alternatives include version 1 header version 2 header W Data Direction Alternatives include W write by target device R read by target device SP Memory Type Alternatives Include SP scratchpad memory byte addressed in hex LM logic memory word addressed in hex RM register memory word addressed in decimal TR transition table bit addresses OV override table bit addressed space I O status memory bit addressed 55 56 Data Address Range memory type refer Memory Type above This can be byte word or bit address range depending on In this example the address range given is 55 to 56 in Scratch pad memory hence they are byte addresses 0000 Data Presented in hex In this example 00 is being written to scratch pad memory 55 and 00 is being written to scratch pad memory 56 Table 7 1 Anatomy of a DMA Header Log System Error Log BootLdr evtrd 20 1 usEventIdx dk usNextEvent 6 ulMaxEvents 800 ulTotalNumEvents 6 qname SYS Error Log usInfoSize 16 Maximum entries 30 buffer size 966 00 00 02 250 0 1 Chain OK Good 00 00 02 251 1 5 Isolated Power OK Good 00 00 02 254 2 8 Reset De Asserted 00 00 02
77. I00017 I2 Program RELIAB1 C LM90 FOLDERS RELIAB1 Block DIGLB B 20 Series Six Parallel I O Transmitter Module GFK 1883 Real Time Consultants Pty Ltd 05 03 02 18 25 lt lt RUNG 10 gt gt Sample rate fo 2 Git al IO SAMPLE1 M00002 EN 4 d ESTP1H R01185 4 oe INTABH 100017 4 Proprietary Information GE FANUC SERIES 90 70 v7 02 Page 15 Reliabilty Test Reliabilty test example 2 INT IP2ERR1 M01111 H1 Q R FI2 This STERR3 STERR4 STERRS STERR6 xoxo ox F FH lt lt RUNG 12 gt gt Sample rate fo r digit Monitor al IO error SAMPLE1 IP1ERR1 51100002 MO1110 4 EU 7 4 ADD_ KMOVE 4 INT INT Digital Digital Digital loopbac loopbac IO poin k error k error t test counter counter lower r ERRCNT1 ERRCNT1 TESTP1L R00311 I1 Q R00311 R01184 IN LE 00001 CONST SRE 222222 c 4 F 00001 4 F Program RELIAB1 C NLM90NFOLD GFK 1883 Appendix B EXAMPLE 90 70 PROGRAMS rror register records any di
78. Information Note that care should be taken to ensure sufficient space is reserved for the output parameters in particular 16 registers must be reserved for Y2 and sufficient space for the number of requested log entries should be reserved for Y4 The block will limit the number of entries that can be returned Event Log Header The event log header specifies information about the event log including its name the pointers to the next free entry in the log and the number of events posted to the log Byte Data Type Comment Offset o WORD Event log number 0 DMA log 1 system error log 2 system event log DWORD Maximum number of events allowed 8 DWORD Totalnumberofeventspostedtothelog O Table 4 21 Event Log Header Layout Common Event Log Information Individual event log entries consist of common information such as a timestamp log sequence number and fault number followed by log specific information The common log information occupies 16 bytes of memory per event log entry The common information is as follows Offset DWORD Milliseconds time Either the milliseconds part of the day number since S6PIO reboot or if the time has been set in the S6PIO module the number of elapsed milliseconds since midnight E Day number Either the number of whole days of uptime or if the time ae has been set the day number since 1 January 2000 8 DWORD__ Ever increasing e
79. K 1883 Real Time Consultants Pty Ltd Proprietary Information 04 22 02 15 20 GE FANUC SERIES 90 70 v7 02 Page 5 EXAMPLE 4 RDNDTEX Example of using redundancy PLC configuration with S6PIO cards RUNG 22 gt gt PSVMODE M01028 T 4 F BLKMV INT R amp S_PSV CONST IN1 Q RO1301 00006 CONST IN2 00030 CONST IN3 00000 CONST IN4 00000 CONST IN5 00000 CONST IN6 00255 CONST IN7 00000 7 ane gt de gt ee es E EE e qe eK EKR KERER ve ele de KY Passive block the scanned I O should not overlap with any shared 0 TCR ROCK ARR EERE E ERE EK E IR ERIE IS HE EEE N Program EXAMPL4 C LM90 FOLDERS EXAMPL4 Block _MAIN GFK 1883 Appendix B EXAMPLE 90 70 PROGRAMS B 71 B 72 04 22 02 PSVMODE M01028 Real Time Consultants Pty Ltd 15 20 RUNG 24 SLOT60K M00106 4 ma 4 PSVMODE M01028 R amp S_PSV 37 An error of 6E F RO1301 4X1 TIMEOUT R01302 4X2 POPMODE R01303 4X3 101025 4 001025 5 PSVMODE M01028 es v E PSV ERR R01310 411 CONST I2 00110
80. N6 00000 00000 CONST IN7 CONST IN7 00000 4 00000 4 Program RELIAB1 C LM90 FOLDERS RELIAB1 Block INIT B 16 Series Six Parallel I O Transmitter Module GFK 1883 Real Time Consultants Pty Ltd Proprietary Information 05 03 02 18 25 GE FANUC SERIES 90 70 v7 02 Page 11 Reliabilty Test Reliabilty test example 2 Derive priority input mode Used during the first active scan of the x S6PIO Priority input mode allows the 56210 to read input data from the 0 bus without allowing output data to be received by output cards It 50 is used for the first scan after the 56210 becomes active OR gt kk kk kk kk ke ke k kk eek ke kc ke ek kc ke ke kk KKK ke ke KKK gt gt RUNG 15 lt lt 5101015 M00101 4 4 4 4 KMOVE MOVE_ INT INT PRINP PRINP CONST 1 Q P00004 CONST IN Q P00004 00016 LE 00002 LE 00001 00001 END OF BLOCK LOGIC Program RELIAB1 C LM90 FOLDERS RELIAB1 Block INIT GFK 1883 Appendix B EXAMPLE 90 70 PROGRAMS B 17 Real Time Consultants Pty Ltd Proprietary Information 05 03 02 18 25 GE FANUC SERIES 90 70 v7 02 Page 12 Reliabilty Test Reliabilty test example 2 START OF LD BLOCK DIGL
81. NDOW W SP 00055 00056 0000 R SP 00035 00036 7FF9 R SP 00055 00056 0178 W SP 00055 00056 0000 R LM 07ff8 07ff8 64E4 R SP 00055 00056 0148 W SP 00055 00056 0000 R RM 00102 00110 OD0001001F006F0006001EA0D30086001F20 7 3 00 20 00 20 00 20 00 20 002205 003 20s 00 20 239573 29554 23vT57 2325773 2957 29b 23 951 23573 23 535 2397577 235573 23 57 295 237543 232573 295514 238574 23 573 23957 29 5 2357 23574 232533 PAC Eo 7 4 44 44 44 44 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 395 355 355 1952 44 44 44 356 359 359 Real Time Consultants Pty Ltd Proprietary Information 1003074 0 29 BR0513 R SP 00055 00056 02F8 1003075 0 9 BR0513 W SP 00055 00056 0000 1003076 0 9 BR0513 W RM 00103 00103 0100 1003077 0 9 BRO513 R SP 00055 00056 0001 1003078 1 7 BR0513 CLOSE WINDOW 1003079 0 30 PDT R SP 00000 00016 0303011F00007000000000FFFFFFFF0F000A0079000001 1003080 0 30 PDT R SP 00000 00016 0303011F00007000000000FFFFFFFF0F000A0079000001 The data between the brackets or is header data that has been decoded for the users convenience This is the default action If undecoded data is desired for low level debugging purposes use the evt dma command to toggle between decoded and undecoded headers evtdma 0 Sets the header mode to undecod
82. NUC SERIES 90 70 v7 02 Page 1 EXAMPL3 Example of using the S6PIO to only monitor the S6 I O activity START OF PROGRAM LOGIC Sample program for a Passive Mode configuration using an S6PIO module in the 90 70 CPU rack to monitor the I O activity of a single Series Six I O chain RE koc k ke kc KK KKK KEK KK KK KKK KEK KR KR KKK KEK KK gt 6 Test to see if an 56210 card exists in Slot 6 and is healthy x gt gt RUNG 7 lt lt ALW_ON SLOT 60K S00007 4 M00106 tm iL CALL S6NOOP EXTERNAL SL6STAT CONST 1 3 6 0006 1 Program EXAMPL3 C NLM90NFOLDERSNEXAMPL3 Block MAIN GFK 1883 Appendix B EXAMPLE 90 70 PROGRAMS B 63 B 64 Real Time Consultants Pty Ltd Proprietary Information 04 22 02 15 02 GE FANUC SERIES 90 70 v7 02 Page 2 EXAMPL3 Example of using the S6PIO to only monitor the S6 I O activity
83. O1182 I1 2 4 LEN 00001 CONST 2 FFFF Program RELIAB1 C LM90 FOLDERS RELIAB1 Block DIGLB GFK 1883 Appendix B EXAMPLE 90 70 PROGRAMS B 23 Real Time Consultants Pty Ltd Proprietary Information 05 03 02 18 25 GE FANUC SERIES 90 70 v7 02 Page 18 Reliabilty Test Reliabilty test example 2 RUNG 17 SLOT6OK M00101 4 AND_ WORD RAWTP1H TESTP1H R01183 I1 Q RO1185 LEN 00001 CONST 2 FEBRE pe 1 gt gt RUNG 18 lt lt ALW_ON 59500007 F qp 2 3 F 4MOVE MOVE_ INT INT Digital IO poin t test lower r TESTP1L 0212811 TESTP1H OPTAB1H RO1184 IN Q Q00001 RO1185 IN Q Q00017 LEN LEN 00001 00001 END OF BLOCK LOGIC Program RELIAB1 C LM90 FOLDERS RELIAB1 Block DIGLB B 24 Series Six Parallel I O Transmitter Module GFK 1883 Real Time Consultants Pty Ltd Proprietary Information 05 03 02 18 25 GE FANUC SERIES 90 70 v7 02 Page 19 Reliabilty Test Reliabilty test example 2 START OF LD BLOCK ANLGLB VARIABLE DECLARATIONS VARIABLE DECLARATION TABLE REFERENCE NICKNAME REFERENCE DESCRIPTION NO VARIABLE TABLE ENTRIES IDENTIFIER TABLE IDENTIFIER IDENTIFIER TYP
84. OCCMAD Q RO00961 LE 00001 DATA INIT INT at R00961 RUNG Read serial IOCCM RD CCM M00082 A DATA INIT 1 6 Program R 16 gt gt DATA_ INIT_ INT IOCCMAD Q SRO0961 LE 00006 INT 3 1 1 5 1 1 ELIABL C LM90 FOLDERS RELIAB1 B 44 Series Six Parallel I O Transmitter Module v7 02 Page 38 03011 1 06000 37 5 0 CX 03 HIG IR IER BRR ve a TE BRD IE BBR RE TERS Seat BBR ye se eode e 5 e Ao y Set up for IOCCM cmd Read From Target To Source Register 1 Location 1 6101 Command No to read from target to source reg table Location 2 5 Target Id Location 3 1 Target Memory Type Location 4 1 Target Memory Address on S6 m Location 5 64 Data Length 64 registers Location 6 1101 Source memory Address m gt gt 5 ERE gt E EER TIE SE HR 00064 Block CCMTST GFK 1883 Real Time Consultants Pty Ltd Proprietary Information 05 03 02 18 26 GE FANUC SERIES 90 70 v7 02 Page 39 Reliabilty Test Reliabilty test example 2
85. Pty Ltd Proprietary Information S6AIN C Block GFK 1883 Introduction The S6AIN C Block provides a simple interface to the S6PIO module for use in master scan mode to input data from analog input cards The S6AIN C Block consists of 6 pairs of parameters as follows The S6AIN C Block consists of 6 pairs of parameters as follows Parameter Data Type Comment Rack in high 8 bits slot in low 8 bits Word Array Pointer to 90 70 output data to be sent out during the analog input scan Start channel and address The address i is 5 pecified i in standard Series Six bit notation Refer to Number for details This address refers to the FIRST bit in the scan Note that a channel may NOT be crossed X4 Word Number of analog input cards Maximum 31 cards if starting at the beginning of a channel X5 Word RST status Bitl first bit 20 means RST de asserted RST is the Series Six Bus reset line and if asserted will cause the I O modules to go to their default states E HR Scan refer to able 4 4 Scan Options Register for details Return error status ees error status array Pointer to analog input data This is arranged as a block of 8 16 bit registers per analog card y3 wordu I O status register refer to able 4 3 I O Status Register f Y4 Word Pointer to analog input status data 4 bits of status data per channel packed 4 channels per 16 bit register The meanings of the 4 bits are as follows
86. RELIABI B 60 Series Six Parallel I O Transmitter Module GFK 1883 Real Time Consultants Pty Ltd 05 03 02 18 26 Program RELIAB1 GFK 1883 LO _MA INI DIG ANL SCAN m Q GIC IN Variable Logic T Variable Logic LB Variable Logic GLB Variable Logic Variable Logic CCMTST Variable Logic FANUC SE TABL Table Table Table Table Table Table RIES 90 70 OF Non printable Blocks Lists C LM90 FOLD ERS R ELIAB1 Proprietary Information v7 02 CONT Appendix B EXAMPLE 90 70 PROGRAMS T hb 12 12 12 19 19 19 31 31 31 34 34 34 54 S Contents TABLE OF CONT ENTS B 61 Real Time Consultants Pty Ltd Proprietary Information Example 3 Demonstrate Use of the S6PSV Block This example program illustrates the use of the S6PSV C Block The example is intended to be used as a guide when constructing real world applications This example makes the following assumptions 1 A single S6PIO module is used in series with a Series Six Primary I O Chain 2 Normal mode scanning is used 3 The S6PIO module is installed in slot 6 of the CPU rack Series Six Parallel I O Transmitter Module GFK 1883 Real Time Consultants Pty Ltd Proprietary Information Program Listing 04 22 02 15 02 GE FA
87. Self test mode of operation invoked where hardware faults are suspected SWITCHING BETWEEN MODES PASSIVE TO MASTER Illustrates the areas that need to be taken into account when switching between passive and master mode This is particularly pertinent to redundant systems EXAMPLE 90 70 PROGRAMS Includes several example programs that illustrate the use of the C Blocks that comprise the software interface One example illustrates the use of two Series 90 70 CPUs in redundancy configuration driving a single Series Six I O chain Contents RealTime Consultants Pty Ltd Proprietary Information Related Publications GFK 1179H Installation Requirements for Conformance to Standards June 2000 GE Fanuc Automation North America Inc GEK 96602A Series Six Plus Programmable Logic Controller User s Manual GE Fanuc Automation North America Inc GFK 0171B Series Six Genius Bus Controller User s Manual GE Fanuc Automation North America Inc GFK 0398C 90 70 Genius Bus Controller User s Manual GE Fanuc Automation North America Inc GEK 25364A Series Six Programmable Controller CCM Communications User s Manual GE Fanuc Automation North America Inc GEK 25367E Series Six Programmable Controllers Data Sheets GE Fanuc Automation North America Inc GEK 25379D Logicmaster TM 6 Programming and Documentation Software User Manual GE Fanuc Automation North America Inc GFK 1883 Real Time Consultants Pty Ltd Pr
88. T2 51100120 M00104 1 1 R COUNT1 CONST PV CV R00001 7 R04031 AOUTIPA Count 4 Set up channel values AOUTX4 Count 0 gt 2047 2047 gt 0 2 2001122 1000 static value x AOUT1P3 Count 2 lt lt RUNG 11 gt gt ALW_ON 29500007 4 4 4MOVE MOVE_ INT INT COUNT2 AOUTX4 AOUTI1P2 SROOOO2 IN Q ROO101 CONST IN Q RO0102 LE 01000 LE 00001 00001 Program RELIAB1 C LM90 FOLDERS RELIAB1 Block ANLGLB GFK 1883 Appendix B EXAMPLE 90 70 PROGRAMS B 27 B 28 05 03 02 Real Time Consultants Pty Ltd 18 25 Program RELIAB1 C LM90 FOLD Series Six Parallel I O Transmitter Module Proprietary Information ERS RELIABL GE FANUC SERIES 90 70 v7 02 Page 22 Reliabilty Test Reliabilty test example 2 lt lt RUNG 12 gt gt ALW_ON 59500007 DIV_ INT COUNT2 AOUT1P3 R00002 I1 Q R00103 CONST 12 00002 lt lt RUNG 13 gt gt ALW_ON 59500007 DIV_ INT COUNT2
89. VME Slave 0x200000 VME AM 0x3D VME Enable TRUE S6PIO gt Chapter 7 UTILITY PROGRAMS 9 Chapter 8 Real Time Consultants Pty Ltd Proprietary Information TROUBLESHOOTING The following section may help in troubleshooting problems Troubleshooting Strategy OFF 0 ON FLASH Key 3 When the system does not operate as expected it is useful to check the following items 1 S6PIO Front Panel LEDs During power on initialization all of the LEDs will cycle twice through an LED test routine before being set to their standard states refer to EEDSI or a description of each LED If an error occurs during power on the Active LED will flash rapidly and the remaining LEDS will display an error code If this condition is encountered the board has become unserviceable If however the active LED is flashing slowly then it is possible that the board has been jumpered to Config from FLASH but there is no configuration data in the FLASH memory In this case ensure the board is jumpered correctly for the mode of operation expected refer and if required that the FLASH memory contains configuration data refer User Configuration Mode The following diagrams illustrate the state of the front panel LEDs after power on under certain operating conditions Q shpok cuan Normal Operation Master mode parry isok In this mode all LEDs should be on Q ctive RESET shpok cuam Norma
90. able 3 1 VME Slave Addressing by Slot Number This configuration allows the S6PIO module to be used in Series 90 70 rack 0 or any of the local expansion racks 1 7 without impacting on the use of GE Fanuc modules in the same racks The use of other third party VME modules should be carefully considered Note A S6PIO module cannot be installed in slot 1 of any rack Note The configuration should also be entered via the LM90 configuration program to ensure the 90 70 CPU is aware of the location and addressing range of the card Slot Number S6PIO AM Code S6PIO VME A16 Address Dual Port Memory Size 9 0x20 oxEoo0 8K byte access ls 0229 jxcoo BK byte access 0x29 0x8000 8K byte access fsa ooo Tate access 0x6000 8K byte access Table 3 1 VME Slave Addressing by Slot Number The supplied Series 90 70 C Blocks use special programmed address modifier codes to select the correct Series 90 70 CPU or Expansion rack These codes are transparent to the user but are documented in the following table for completeness GFK 1883 3 1 3 Real Time Consultants Pty Ltd Proprietary Information 0x29 0x2D 0x29 Ox2D Table 3 2 90 70 Rack Selection AM Codes User Configuration Mode In this mode the S6PIO uses configuration data that has been written to FLASH memory This mode is not supported in a Series 90 70 PLC The user may specify A16 or A24 addressing using address modifiers 0x29 0x2D 0x39 or 0x3D No
91. ard Start channel and address The address is specified in standard Series Six bit notation Refer to Table 4 2 Bit Addressing Verses Channel Number for details This address refers to the FIRST bit in the scan Note that a channel may NOT be crossed X4 Word Number of analog output cards Maximum 62 cards if starting at the beginning of a channel X5 Word RST status Bitl first bit 20 means RST de asserted RST is the Series Six Bus reset line and if asserted will cause the I O modules to go to their default states Scan options refer to able 4 4 Scan Options Register for details Return error status Y2 Byte Array Pointer to input table This is the table within the 90 70 to receive input data Note that scanning analog output cards also results in input data being returned to the 90 70 PLC EE I O status register refer to for details Array Software build numbers This is an array of 2 registers to receive the C block build number and the S6PIO firmware build number Word Pointer to the output table The S6PIO copies analog output bit data to the output table image If this pointer is not NULL the C Block copies the image data to this address It is recommended that this pointer point to the area in 90 70 I O memory corresponding to the analog output module address Word Dummy parameter not used Table 4 11 S6AOP Parameter List Notes Keep in mind that scanning analog outputs also
92. ary Information CHAIN Chain OK LED The CHAIN Chain OK LED is on when power is on at all downstream stations and continuity is OK to all upstream points If any of these conditions are not met then the CHAIN Chain OK LED is off Previously this LED was marked CHOK PARITY Chain Parity LED The PARITY Chain Parity LED is on if output parity is OK at all downstream stations The PARITY Chain Parity LED is off if there is an output parity error at one or more stations This LED is based on the state of the bus parity signal and will flicker during DMA cycles in passive mode as the parity bus signal line is used for another purpose during DMA windows Previously this LED was marked CHPAR on the front panel ISOPWR Isolated Power LED The ISOPWR Isolated Power LED is on if the output voltage of the onboard isolated 5V DC DC converter is within tolerance If the DC DC converter voltage is out of tolerance then the ISOPWR Isolated Power LED is off ACTIVE Command Handler Active LED Indicates when the S6PIO command handler is processing a command This may be VME communications via the back plane or S6PIO VME commands issued through the serial port In normal operation the commands arrive via the VME back plane from the 90 70 and hence this LED indicates communications is active between the S6PIO and the 90 70 CPU To present an acceptable user interface the ACTIVE LED remains on for 200 milliseconds whenever a command i
93. aster Mode wiring with Series Six Primary and Auxiliary I O s 2 10 Master Mode wiring with Series Six Primary I O Only 2 9 Master Mode wiring with two 90 70 s in Redundancy Configuration 2 71 Index 1 Index Real Time Consultants Pty Ltd Passive Mode wiring with Series Six Primary and Auxiliary I O s 2 8 Passive Mode wiring with Series Six Primary I O Only 2 7 J Jumper Settings JP1 JP2 and JP3 2 3 JP10 through JP25 Bus Termination 2 4 JP32 IACKIN OUT Daisy Chain 2 5 JP4 FLASH Memory Protect 2 3 JP5 JP6 JP7 and JP8 Boot Into Onboard Monitor 2 4 Self test Mode 2 3 VME Configuration from FLASH Mode 2 4 VME Disabled Mode 2 4 JP5 JP6 JP7 and JP8 Plug amp Play Mode 2 3 JP9 VME SYSFAIL 2 4 JumperJP5 JP6 JP7 and JP8 Configuration 2 3 S6PIO Module Showing Jumpers in As Shipped Position 2 2 Jumpers JP5 JP6 JP7 and JP8 Boot From FLASH or RAM 2 4 M Modes of Operation 2 Master Scan Mode 7 2 Passive Mode 7 2 Self test Mode See Troubleshooting P Parameter List S6AIN 4 17 S6AOP 4 14 S6EVTLG 4 33 S6MOVE 4 28 S6NOOP 4 7 S6PMAP 4 31 S6PSV 4 21 S6SCAN 4 11 S6STAT 4 8 S6WIN 4 23 S6XWIN 4 27 Priority Input Mode 5 7 Program Conversion 5 2 Index 2 Proprietary Information R Rack Selection Address Modifier Codes 90 70 3 2 Redundant Systems 5 2 Related Publications vi Run Disable 5 2 9 S6MOVE Memory Types 4 29 56210 1 S6PIO Firmwa
94. atus X5 to assert or de assert RST It is recommended that the state of RST follow the run run disabled stop CPU keyswitch Refer to Appendix B EXAMPLE 90 70 PROGRAMS for an example on the use of the CPU keyswitch The S6PIO is very particular about analog input card error conditions The user program MUST CHECK the analog input status data for each analog input channel and take appropriate action if the Board OK Data valid bit is reset In the case where this bit is reset the data cannot be considered to be valid in fact it may very well have been set to zero by the S6PIO The user should take appropriate action for example preserving the last known good value Refer to Appendix B EXAMPLE 90 70 PROGRAMS for an example on the use of the data valid bits for checking analog input data Checking the range error bit is optional although in conjunction with the scanned value can indicate if the input is in limit minimum or maximum Care should be taken however when using the open wire error bit as it is defined only for 4 20mA current loop type analog cards and is undefined for other card types For a 0 10V analog card for example the open wire bit will be set for some perfectly valid readings Example Usage The following example scans 2 analog input cards beginning at address 33 Inputs are copied to 90 70 analog input registers AI1 AI8 The output data is copied to the output table at 7033 input data is read into the input table a
95. beginning of an I O chain In such circumstance Series Six I O bus cables will be plugged into both DB37 connectors Alternatively a termination plug RTC part J1320 P003 can be used instead of terminating internally This is convenient if constant switching between master and passive mode is required Series Six Parallel I O Transmitter Module GFK 1883 2 Real Time Consultants Pty Ltd Proprietary Information Care should be taken to ensure the I O chain is not multiply terminated If an external termination is used and the internal termination is also present then system mis operation is likely to occur J umper J P32 IACKIN OUT Daisy Chain Positions 1 to 2 and 3 to 4 to bypass the IACK daisy chain Positions 1 to 3 and 2 to 4 to enable the IACK daisy chain IACINIOUT Enabled EE JP32 The diagram at right shows the chain bypassed Header Descriptions There are a number of headers present on the S6PIO module The functions of some of these headers are described below Header J P26 Connector for low level FLASH programming adapter This is used in initial factory testing to load the low level bootstrap monitor Headers J P27 and J P28 Connectors for EPLD programming bridge cable This is used if ever the onboard EPLD needs to be field upgraded Header J P29 TxD E GND Second RS232 Port This serial port is configured to run at 57 600 baud and outputs event log messages in ASCII format is P
96. ce is overridden it is maintained in the state on or off it was in when the override was applied This state remains the same until the override is removed or its state is changed Overridden bits can be changed by the mnemonic functions References can be overridden expanded Inputs and Outputs cannot be overridden The table is 256 bytes long with the first 1024 bits 00 to 7F corresponding in layout one to one to the outputs and the second half 80 to FF corresponding in layout one to one to the inputs 1 0 Status Table This table is 256 bytes long with the first 1024 bits 00 to 7F corresponding in layout one to one to the outputs and the second half 80 to FF corresponding in layout one to one to the inputs Chapter 4 SOFTWARE INTERFACE 4 29 4 Real Time Consultants Pty Ltd Proprietary Information Scratchpad Memory This memory block emulates the memory used by the series six microcode and is 256 bytes long Logic Memory Logic memory normally stores the series six logic program Logic memory is accessed by certain modules such as the GBC that require the DPREQ or WINDOW instruction opcode be present Information in the opcode is used to enable the GBC to determine the location of its requisite parameter block Expanded CPU Operation The Series Six Plus PLC can operate in either normal or expanded mode and the S6PIO can be used in either situation If further information on expanded CPU operation is require
97. cmd complete T00019 CCMRCOM IOCCM Read cmd complete L00031 REGPADD S6PIO Register Parameter Address R00035 WIN1STS IOCCM return status R00281 XFERCN IOCCM Xfer complete with error R00291 WIN1TO Window Timeout error count R00361 DIAGDAT IOCCM Diagnostics data value SROO371 ERRDATA Xfer error data value R00381 ERRCODE Jl Port Error code for diag data R00391 CCMSTS IOCCM status data R00711 BITRE R00800 SCNCNT Scan counter R01101 RDREG R01520 BITNO R01521 OUTCPY R03011 WRTCMP Write compare register IDENTIFIER TABLE IDENTIFIER IDENTIFIER TYPE IDENTIFIER DESCRIPTION NO IDENTIFIER TABLE ENTRIES RRR RRR kk RK KK KR KK RK KK KKK KR KK KKK ke kk KK KKK KKK KKK KER KK KK KKK KEK KK KK Clear error counters on first scan START OF BLOCK LOGIC I I III III III I ICICI A I k k k A A gt Program RELIAB1 C LM90 FOLDERS RELIAB1 Block CCMTST B 40 Series Six Parallel I O Transmitter Module GFK 1883 Real Time Consultants Pty Ltd Proprietary Information 05 03 02 18 26 GE FANUC SERIES 90 70 v7 02 Page 35 Reliabilty Test Reliabilty test example 2 lt lt RUNG 4 gt gt FST_SCN 5 1 4 I MOVE_ MOVE_ MOVE_ INT INT INT
98. d Proprietary Information 05 03 02 18 26 GE FANUC SERIES 90 70 v7 02 Page 37 Reliabilty Test Reliabilty test example 2 lt lt RUNG 11 gt gt Write serial to IOCCM WT_CCM 5100009 CALL DATATST EXTERNAL WRTREG CONST X1 1 8 0002 CONST X2 27 0080 CONST X3 YO 0000 CONST 4 Y4 0000 ea F lt lt RUNG 12 gt gt Write serial to IOCCM WT_CCM 51100081 4 2 MOVE_ INT Write compare registe WRTREG WRTCMP SROO968 IN Q R03011 LE 00064 EEEE e ok RRR BA BIER ER ELS de gt gt e eC Rose ede We ko eoe XO EEEE eoe de KEEKEEKE RRR ERN The IOCCM will be sent an internal NOOP command between read and write commands to prevent overflow in the IOCCM The command parameters contain the command number only Location 1 6000 NOOP x EERE RARE RN RRR LL CN ecole C doge RBI TELE RRR EE EEEE EREE REA KEE Jo EREE EE EEEE dee y Program GFK 1883 RELIAB1 ELIAB1 C LM90 FOLD ERS R Appendix B EXAMPLE 90 70 PROGRAMS Block CCMTST B 43 Real Time Consultants Pty Ltd Proprietary Information 05 03 02 18 26 GE FANUC SERIES 90 70 Reliabilty Test Reliabilty test example 2 lt lt RUNG 14 gt gt tDATA_ INIT_ INT I
99. d the user is encouraged to refer to GEK 96602 Series Six Plus Programmable Logic Controller User s Manual chapter 4 Example Usage Refer to Appendix B EXAMPLE 90 70 PROGRAMS for an example use of the SOMOVE C Block 4 30 Series Six Parallel I O Transmitter Module GFK 1883 4 Real Time Consultants Pty Ltd Proprietary Information S6PMAP C Block The S6PMAP C Block is an initialization block supporting the 562517 block It provides a means to set or clear the passive mode special card table in the S6PIO The S6PIO uses this table to know what special cards are present in the I O map so that it can demultiplex the data Currently analog output and input cards are supported Data Type Rack in high 8 bits slot in low 8 bits X2 Word If 1 clear the special card map in the S6PIO before inserting the card map pointed to by X4 If 0 just add to the existing special card map from the data pointed to by parameter X4 Number of special card segments in the card map at X4 Word The special card map This consists of a set of segments the number is defined by X3 For each segment there are three 16 bit parameters the card type 1 analog input 2 analog output the card bit address and the number of cards at consecutive addresses Return error status ee 16 bit word indicating the number of card entries in the special card map EE us 16 bit word indicating the number of bytes of special card data that
100. d Series Six Memory The S6PIO emulates Series Six memory locally onboard refer to Beries Six Table Descriptions for memory type descriptions To devices on the Series Six Bus the S6PIO looks like a version 0 Microcode Series Six CPU with 32K Logic Memory and 16K Register memory and a CPUID of 1 the CPUID is selectable refer to Setting the CPU IDP on page alor this chapter for details Note DMA windows initiated by the S6PIO result in data transfers to and from the emulated Series Six memory not the 90 70 memory tables Refer to POWIN Block for details Error Codes GFK 1883 The C Block may return a number of error codes Errors may be generated by the C Blocks themselves or by the S6PIO firmware during the execution of a command Errors that may be generated by the C blocks include Value Hex Description Value 0 O Successful command completion 1 I Ablock parameter was missing 1 O0B The S6PIO is not present at the specified rack slot number 13 oD Aninvalid slot address was specified 20 14 Aninvalid function code was specified 21 p15 Atimeoutoccured id The defined series 6 T O start address i is out of the PLC memory range E gt 43 28 the defined series 6 chanel number is out fangs Size exceeds capacity of transfer buffer The tronsfer buffer is a dual port memory buffer used for buffering data between the 90 70 and the S6PIO Bad DMA heade
101. d the scan on channel 0 at bit 1000 RST status follows the state of the RUN keyswitch 1 means asserted 0 8 A x Ax Scan options set to issue PDT window at the completion of scanning Return error status Pointer to the input table set to 1 I O Status register Software build number 2 registers first is the C Block build number second is the S6PIO build number Not used Not used ko KKK KKK ck ck Ck ck Program EXAMPL1 C LM90 FOLDERS EXAMPL1 Block _MAIN GFK 1883 Appendix B EXAMPLE 90 70 PROGRAMS 3 Real Time Consultants Pty Ltd Proprietary Information 04 22 02 14 37 GE FANUC SERIES 90 70 v7 02 Page 5 EXAMPLE 1 This example is for reference only lt lt RUNG 11 gt gt ALW_ON 500007 F M00002 CALL S6SCAN EXTERNAL ERRST CONST 1 3 1 0007 S6_OUT S6_IN 000001 4X2 Y24 100001 IOSTAT CONST 3 Y3 4 R00002 0001 CBUILD CONST 4 Y4 R00003 03E8 RST P00002 4X5 5 CONST X6 6 0040 F END PROGRAM LOGIC Program EXAMPL1 C LM90 FOLDERS EXAMPLI Block MAIN Series Six Paral
102. de rogram Listing Example 1 Demonstrate Use of the S6SCAN Block This example program illustrates the use of the S6SCAN C Block The example is only intended as a guide when constructing real world applications This example makes the following assumptions 1 A single 56210 module is used to replace a Series Six Primary I O Chain 2 Normal mode scanning is used 3 The Series Six I O chain follows the RUN DISABLE key switch status 4 The S6PIO module is installed in slot 7 of the CPU rack GFK 1883 B 1 2 Program mode the scan 5 1 px Det Real Time Consultants Pty Ltd Listing Proprietary Information EXAMPL EI This example is for re START OF PROGRAM LOGIC The scan is done on channel zero of operation from bits 1 to 1000 Scan a PDT window is issued The S6 I O Bus RST status will ow the state of the RUN keyswitch ference only KKK KKK KKK KKK KKK KKK This short example demonstrates how to use the S6SCAN block in a straight forward application similar to the default Series Six assuming non expanded At the completion of rmine the state of the RUN keyswitch lt lt RUNG CONST 00012 RDISPRM P00001 asse Program 7
103. e 2 5 Master Mode wiring with Series Six Primary and Auxiliary 1 0 2 10 Series Six Parallel I O Transmitter Module GFK 1883 2 Real Time Consultants Pty Ltd Proprietary Information 90 70 In Redundancy Configuration In this configuration two Series 90 70 CPU s replace the original Series Six CPU and control the Series Six primary I O chain in a redundancy configuration In Figure 2 6 below S6PIO modules are installed in each of the Series 90 70 CPU racks to provide interface functionality Tm P S 90 70 CPU RACKS 1 P S SERIES 6 I O RACK 20 To other 56 I O racks Figure 2 6 Master Mode wiring with two 90 70 s in Redundancy Configuration An alternate redundancy configuration comprises two S6PIO modules in each Series 90 70 CPU rack to control primary and an auxiliary Series 6 I O chains Refer to Appendix B EXAMPLE 90 70 PROGRAMS for example Series 90 70 coding GFK 1883 Chapter2 INSTALLATION amp WIRING 2 11 Real Time Consultants Pty Ltd Proprietary Information Chapter CONFIGURATION 3 Outlines the various configuration modes and how the user may configure the S6PIO Refer to hapter 2 INSTALLATION amp WIRING for details on how to set the configuration mode Plug amp Play Mode If Plug amp Play mode is selected then the S6PIO module will configure its VME interface in accordance with
104. e is in passive mode it will not switch into master mode until the S6PSV block refer Chapter 4 SOFTWARE INTERFACE is used to stop passive mode or the 90 70 program is restarted Passive Mode In this mode the S6PIO module may be used to monitor an existing I O bus This mode is very useful during system change over as it allows the Series Six I O to be mirrored into a 90 70 PLC system The 90 70 PLC has access to all of the inputs and outputs scanned by the Series 6 CPU Passive mode can demultiplex analog inputs or outputs on the fly This is useful where DOIOs are used in the Series Six to rapidly read analog inputs or write analog outputs Demultiplexed data is maintained in a separate table Use of this feature requires the user to specify the layout of analog input and analog output cards in an address map refer Chapter 4 SOFTWARE NTERFACE for further detail The synchronization feature allows the sweep time of the 90 70 to be locked to the sweep time of the Series Six Note It is not recommended to use a single 90 70 to monitor I O chains spread across multiple Series Six PLCs Series Six Parallel I O Transmitter Module GFK 1883 3 2 Real Time Consultants Pty Ltd Proprietary Information Note In Passive mode the entire chain is driven by the Series Six I O Controller IOC or Auxiliary I O Controller AUX IOC Accordingly care should be taken to position the Series 90 70 rack such that the 50 feet 15 24
105. e section entitled Refer Chapter 4 SOFTWARE INTERFACE below A number of C Blocks are supplied to interface Series 90 70 PLC system software with the S6PIO Module Specifications This section details specifications of the SOPIO module Environmental Operating Temperature 0 to 50 C no forced air cooling 0 to 60 C for forced air cooling inlet air to bottom of VME rack 40 to 85 C 40 to 185 F Humidity 5 to 95 non condensing Mechanical Board Height 6U double Euro card height General Module Details Technology Designed using state of the art technology incorporating FPGA and embedded microcontroller Configuration Jumpers Jumpers for setting bus termination and plug and play operation Also jumpers for manufacturing testing and diagnostic purposes Front Panel Port RS232 front panel port for configuration and debug use LED Indicators 6 LED indicators mounted on the front panel Standalone Operation For testing can be set for standalone scanning Allows a host device access to the I O bus as a VME host I O Interface Any Series Six compatible I O cable Series Six Parallel I O Transmitter Module GFK 1883 Real Time Consultants Pty Ltd Proprietary Information Isolation 1 500 volts dielectric isolation Total Bus length Maximum 2000ft 600 meters I O Bus segment length Maximum 500ft 150 meters Number of Segments Maximum four segments downstream from the S6PIO modu
106. e to expanded I O Generally the Series Six systems to be replaced by 90 70 plus S6PIO combination are highly complex systems It is essential that a replacement system be given adequate unit and system testing before being brought online Chapter 5 SYSTEM DESIGN 5 3 Real Time Consultants Pty Ltd Chapter Proprietary Information STANDARDS amp APPROVALS 6 The S6PIO meets the following standards STANDARD CONDITIONS EMC Emissions Radiated Conducted EN55011 Class A ea a GE 90 70 integrator rack FCC Part 15 configuration EMC Immunity ESD IEC 1000 4 2 8KV Air 4KV Conducted RF Susceptibility IEC 1000 4 3 10Vrms m 80MHz to 1000MHz 80 AM El Fast Transient Burst IEC 1000 4 4 1KV I O communications Surge Withstand TEC 1000 4 5 Conducted RF IEC 1000 4 6 10Vrms 150Khz to 80MHz 80 AM 3 Magnetic Immunity TEC 1000 4 8 Voltage Interruptions IEC 1000 4 11 control equipment Isolation Dielectric Withstand IEC 950 1 5KV for modules rated from 51V to 250V Power Supply N A Environmental Vibration IEC 68 2 6 1G 40 150Hz 0 012in p p 10 727 Shock IEC 68 2 27 15G 11ms Enclosure Protection N A Safety Safety for industrial IEC 950 Pollution degree 3 industrial environments Table 6 1 Standards and Approvals General system configuration to be as per GFK 1179H GFK 1883 6 1 Real Time Consultants Pty Ltd Proprietary Informatio
107. ed evtdma 1 Sets the mode back to decoded The following fragment illustrates the format of the undecoded log 290937588 1 7 80F8 0002008082 290937589 0 9 80C0 5510010066 0000 290937590 0 9 80C0 35100180C6 7FF9 290937591 0 9 80C0 55100180E6 0178 290937592 0 9 80C0 5510010066 0000 290937593 0 9 8000 F8FF008077 64E4 290937594 0 9 80C0 55100180E6 0148 290937595 0 9 80C0 5510010066 0000 290937596 0 25 80C0 654008802D 0D0001001F006F0006001EA0D30086001F20 290937597 0 9 80C0 55100180E6 02F8 290937598 0 9 80C0 5510010066 0000 290937599 0 9 80CO 66400000A6 0100 290937604 0 9 8000 3510018006 9 290937605 0 9 80C0 55100180E6 0178 290937606 0 9 80C0 5510010066 0000 290937607 0 9 8000 F8FF008077 64E4 290937608 0 9 80C0 55100180E6 0148 290937609 0 9 80C0 5510010066 0000 290937610 0 25 80C0 654008802D 0D0001001F006F0006001EA0D30086001F20 290937611 0 9 8000 55100180E6 02F8 290937612 0 9 80C0 5510010066 0000 290937613 0 9 80CO 66400000A6 0100 290937614 0 9 80C0 55100180E6 0001 290937615 1 7 80CO 0002000002 Using the following example entry from a DMA log 00 22 02 735 790203 09 BR 961 W SP 00055 00056 0000 as an example the data can be interpreted as follows Field Description 00 22 02 735 Timestamp 790203 Sequence Number 0 Error Indicator Alternatives include 0 no error 1 error 9 Bytes In Header BR Channel Alternatives include BR broadcast channel Series Six Parallel I O Transmitter Module
108. eld upgrading the on board FLASH memory zu Enabled FLASH memory is write enabled ME Protected FLASH memory is protected normal position The diagram on the left shows the normal position for the jumper J umpers J P5 J P6 J P7 and J P8 Configuration Configuration jumpers JP5 amp JP6 specify the configuration mode for the S6PIO module RE MN The diagram on the left shows the normal position for these jumpers Beza JP7 Ezine Plug amp Play Mode 0 1 This is the factory default position In this mode the S6PIO module automatically senses the slot number into which it is plugged and configures its VME slave interface according to the slot number The actual slave interface address and address modifiers are described later This mode is the normal mode of operation for a Series 90 70 PLC system JP5 1 JP6 0 Self test Mode In this mode the S6PIO module continually runs manufacturing self tests The progress of the self tests is indicated on the front panel LEDs and is described in Chapter 8 TROUBLESHOOTING JP5 0 JP6 0 GFK 1883 Chapter2 INSTALLATION amp WIRING 2 3 Real Time Consultants Pty Ltd Proprietary Information VME Configuration from FLASH Mode This mode is intended to be used when the S6PIO module is installed in a standard VME system The VME slave address and address modifier are programmed into onboard FLASH memory during S6PIO module configuration prior to first use JP5 1 JP6 1 VME Disabled Mode
109. eneral rule of thumb is that if the S6PIO has an open connector the terminations must be applied If both connectors are used e g for passive mode monitoring the terminations must be removed Program Conversion When converting Series Six programs to run in the 90 70 PLC there are a number of architecture considerations that must be taken into account The most important considerations are the differences in memory architecture between the 90 70 and Series Six and the emulated Series Six memory facilities provided by the S6PIO 5 2 Series Six Parallel I O Transmitter Module GFK 1883 5 Real Time Consultants Pty Ltd Proprietary Information S6 Emulated Memory The S6PIO emulates Series Six memory The emulated memory consists of the STATUS table of 1024 outputs and 1024 inputs 16K words of register memory and 32K words logic memory Associated transition tables for I O are also supported The memory reserved for I O scanning is distinct from the emulated memory The purpose of this distinction is to provide as much flexibility as possible when designing systems Users must remember to transfer data between the 90 70 PLC and the emulated Series Six memory in the S6PIO This is particularly important for applications involving smart devices that use DMA windowing Expanded 56 I O Testing 3 In the Series Six expanded I O overlays register memory This must be considered when translating Series Six programs that make referenc
110. er parameter block address in S6PIO register memory 2 Number of registers to transfer to S6PIO emulated memory up to 256 bytes 128 words can be transferred Word Array Register parameter block in 90 70 register memory Up to 128 registers 256 bytes may be specified here This block will be transferred to the location in S6PIO emulated S6 memory as given in X5 Return error status Y2 Word I O status register Refer to l able 4 3 I O Status Register for details Y3 Word Number of window headers processed including the close window header Word Array Software build numbers This is an array of 2 registers to 4 receive the C block build number and the S6PIO firmware build number Word Command byte to copy to S6PIO status table output 5 command byte Applicable to ASCII module Status byte location for status byte copied from 56210 4 26 Series Six Parallel I O Transmitter Module GFK 1883 3 4 Real Time Consultants Pty Ltd Proprietary Information Parameter Data Type Comment status table input status byte Applicable to ACII module and IOCCM Table 4 16 S6XWIN Parameter List Example Usage A detailed example on the use of the S6X WIN block with a GBC controller card is given in an applicable RTC application note RTC application notes are available on the companion product CD or directly from RTC Chapter 4 SOFTWARE INTERFACE 4 27 4 Real Time Consultants Pty Ltd Proprietary Informati
111. f test mode the S6PIO module executes the following tests in a continuous repeating sequence Test Parity LED ISOK LED BRDOK LED Middle LHS Middle RHS Top LHS Start self test sequence 0 0 0 FPGA Download 1 0 0 Dual port RAM memory test 0 1 0 SRAM memory test 1 1 0 FPGA Register check 0 0 1 Manual Mode loopback test 1 0 1 Table 8 1 Self test LED Sequence Description GFK 1883 Chapter 8 TROUBLESHOOTING 8 5 Real Time Consultants Pty Ltd Proprietary Information Note The binary coding of the LEDs are indicated on the right hand side of the above table During Self test and while no errors are detected the Chain LED top right will be off The step through sequence of the other LEDs is indicated below If an error is detected the Chain LED top right will be turned on and Parity ISOK and BRDOK LEDs will indicate which test has failed The test is then suspended awaiting operator intervention or reset Top LHS RHS O O snpok cHok O OFF OO OO OO OO OO 0 Q cupar isok ON co 56 65 00 oo 00 O cHAcT RST FLASH 6 6 OOo e 6 0 0 Bottom Figure 8 1 Self TestLED pattern 8 0 Series Six Parallel I O Transmitter Module GFK 1883 Real Time Consultants Pty Ltd Proprietary Information Appendix SWITCHING BETWEEN MODES A This section illustrates the areas that need to be taken into account when switching between passive and master mode This situati
112. f the SONOOP C block Chapter 4 SOFTWARE INTERFACE 4 7 4 Real Time Consultants Pty Ltd Proprietary Information S6STAT C Block Interface The S6SSTAT C Block provides a means to set or clear various status counters within the 56210 module The C Block consists of 3 pairs of parameters as follows Parameter Data Type Comment Rack in high 8 bits slot in low 8 bits Set to 0 to get status from S6PIO Set to 1 to clear status in S6PIO Dummy parameter not used Y2 Word An array of 16 registers holding 8 32 bit status counters Table 4 8 S6STAT Parameter List The C Block asserts power flow if and only if there are no errors encountered If errors are encountered then the return error status register will identify the problem The 32 bit status counters are defined as follows Offset DWORD Total number of VME commands issued to S6PIO module VME commands are issued to the S6PIO as a result of executing C Blocks so normally this number will be incrementing at a rate of one or more counts per sweep DWORD Total number of VME command errors VME command errors arise when any C Block function causes a fatal error e g parameters out of range and detected by the S6PIO firmware or a fatal parity error or some other fatal I O error condition Total number of chain errors Chain errors arise when an I O cable is unplugged or an I O rack is switched off a Total number of fatal parity errors A
113. fferences in digital loopback ERRCNT1 number of mis compares in digital loopback Output lower reg value Input lower reg value Output Upper reg value Input upper reg value Dig Loo pback O P rr IOW E Valu TS F R00503 ERR3 INTABL 100001 4 x 3 MOVE_ INT Dig Loo pback I P Low E rr Valu TSTERR4 FIN Q ROO0504 00001 ERS RELIABL Block DIGLB B 21 B 22 Real Time Consultants Pty Ltd 05 03 02 18 25 lt lt RUNG 13 gt gt Sample rate fo 2 digit al IO SAMPLE1 IP2ERR SM00002 M01111 Top per Digital loopbac k error counter ERRCNT1 R00311 CONST 1 TESTP1L TESTP1H Program RELIAB1 BEL Q4 Proprietary Information GE FANUC SERIES 90 70 v7 02 Reliabilty Test Reliabilty test example 2 Digital loopbac k error counter ERRCNT1 SROO311 ESTP1H oe H est point 1 lower est point 1 upper 85 011 0000 Dig Loo pback 0 P High Err Val TSTERR5 FIN Q R00505 1 P
114. hich only provide binary data the system event log provides general ASCII text messages Each ASCII message is a NUL terminated string up to 80 bytes in size Example Usage The example below illustrates an example of using the SOEVTLG to retrieve the Event Log data and storing it in a designated R register The same data can be retrieved using the bootldr utility from the console port CALL S6EVTLG EXTERNAL CONST 4X1 Y1 6R01300 0006 0000 CONST 22 72 1 0001 0001 CONST 3 Y3 0 0000 0005 CONST 4 74 1 0005 04AD CONST 4X5 0 0000 0000 BootLdr gt evtrd 5 1 usEvent Idx 1 usNextEvent 12 ulMaxEvents 800 ulTotalNumEvents 12 qname SYS Error Log usInfoSize 16 4 36 Series Six Parallel I O Transmitter Module GFK 1883 3 Real Time Consultants Pty Ltd Maximum entries 00 01 00 01 00 01 00 01 00 01 06 06 43 43 43 733 734 336 339 340 3 7 8 9 10 11 0 1 8 0 3 2 buffer size 966 Reset D Changed Channel Successfully Parity Chain O Reset Asserted Asserted Error Channel 0 K Bad Proprietary Information byte 26 bit 0209 Event header starts at location R1301 and Log data at R1321 The parity error data starts at location 1361 and has been displayed as hex for ease of reading 01300 01310 01320 01330 01340 01350 01360 01370 01380 01390 01400 01410 Chapter 4 00100000 01110010
115. ies Six I O tables Event Log A circular PLC time stamped event log of 200 events is maintained Module status is available in dual port RAM Software Interface A number of C Blocks are provided for use as the Series 90 70 PLC interface Asynchronous operation Option for commands to be executed asynchronously via C block Return Status 16 bit status register is returned indicating the module status at the completion of a command Return Error Codes A number of error codes may be returned by the C Block Messages to PLC Fault Messages posted to PLC fault table via the C Block Fault message includes S6PIO slot number and Table C Block name Table 1 1 Module Specifications GFK 1883 Chapter 1 INTRODUCTION 1 5 Chapter 2 Real Time Consultants Pty Ltd Proprietary Information INSTALLATION amp WIRING Installing and Removing a Module Installing a Module GFK 1883 General The S6PIO module plugs into the J1 bus only of any VME 6U high rack Prior to installing the S6PIO module ensure that all of the jumper settings are appropriate to user requirements The jumper functions and settings are described in the section entitled Always turn rack power off prior to attempting to install the S6PIO module As with any complex electronic equipment use standard anti static precautions when handling the 56210 module Installing in a Series 90 70 Rack The S6PIO module can only be used in a
116. in 1 RX Pin 2 Signal Ground Pin 3 Signal Ground Pin 4 TX Header J P31 Provides monitoring and debugging signals via the FPGA Logic high indicates the function is active 1 Pin 2 VME command handler active Pin 4 VME mailbox ISR executing Pin 6 Not used Pin 8 DMA or passive ISR executing GFK 1883 Chapter2 INSTALLATION amp WIRING 2 5 Real Time Consultants Pty Ltd Proprietary Information Pin 10 2 Checksum error Pin 12 DMA window master passive Pin 14 Spare Pin 16 DMA debugging signal Header J P33 Terminations for spare pins of the EPLD chip Certain Series Six bus signals are available on this header as follows and is provided for low level debugging purposes only Pin 2 ADS address strobe Pin 4 IS input strobe Pin 6 CP card present Pin 8 PE parity error Field Wiring Options The S6PIO can be wired in two main modes passive mode for monitoring a Series Six I O chain or master mode for driving a Series Six I O chain The mode that the S6PIO is operating in depends not only on the wiring option chosen but also on the C blocks used in the 90 70 program that control the S6PIO It is the user s responsibility to ensure the appropriate C blocks are utilized for the selected field wiring configuration On power up the S6PIO is in an idle state and will enter master or passive mode depending on which C block is executed first Once the devic
117. ing the system design and implementation phase Priority Input Mode Series Six PLC s have a Priority Input Mode which is automatically performed for the first scan when the CPU is selected to RUN mode Priority Input Mode allows the PLC to read I O chain inputs without updating any outputs allowing the CPU to correctly solve logic prior to starting normal scanning where outputs are updated The S6PIO module supports this feature via the S6SCAN C block It is up to the user to add code in the 90 70 to select Priority Input Mode for the desired number of scans prior to changing to normal scan mode Watchdog Timeout GFK 1883 The S6PIO includes a watchdog timer that causes RST to be asserted on the IO BUS if commands are not received from the 90 70 PLC for a period exceeding the watchdog timeout setting default 270 milliseconds There is an option to prevent the watchdog timer from asserting RST that is necessary when programming a redundant mode system However if the S6PIO watchdog function is disabled the user must ensure that equivalent functionality is provided downstream in the IO chain by using a suitably configured Advanced IO receiver Module 5 1 5 Real Time Consultants Pty Ltd Proprietary Information Run Disable The 56210 should follow the state of the 90 70 CPU Run Disable keyswitch Refer to EXAMPLE 90 70 PROGRAMS for details on how to do this Redundant Systems When designing a redundant system due attent
118. ion must be paid to the possibility of both systems coming up in Solo mode Application code must be added to detect IO bus activity and prevent the S6PIO master scan mode being programmed if such activity is detected Failure to do this will mean that both 90 70 systems may attempt to control the I O bus with consequent parity errors and misoperation Analog Inputs When using the S6AIN C Blocks the 56210 is quite strict about analog input card status It is therefore necessary to check the data valid bit of the analog input status prior to using any analog input data Failure to do this may result in analog input data being momentarily set to zero if an error condition occurs I O Bus Terminations Care should be taken to ensure the I O chain is not multiply terminated If an external termination is used and the internal termination is also present then system mis operation is likely to occur When running an S6PIO in a system where there may be cabling changes to allow for both passive and master mode operation there is often a need to change bus terminations It is important that the correct terminations be applied to an S6PIO module Failure to do so may cause parity errors or other misoperation To make terminating the 56210 simpler and avoid having to change onboard jumpers the user may purchase a D37 terminator plug RTC J1320 P003 The onboard terminator jumpers may be removed and the plug used for quick change in termination status A g
119. ir original function For example the emulated Series Six override table does not perform any override function when the S6PIO is in master mode this is done by the 90 70 override table The following Series 6 descriptions are based on information provided in GEK 25379 Logicmaster TM 6 Programming and Documentation Software User Manual Section 12 The reader is encouraged to consult this reference if further information is required Transition Table The Transition table is 256 bytes long and is divided into two parts The first 1024 bits 00 gt 7F of the table correspond in layout one to one to the output bits in the Output Status table Counter and one shot functions use these bits to store the state of the enabling contact string With this information the functions sense the OFF to ON transition that either enables counting or fires a one shot The second half 80 gt FF is used by the auxiliary output counter and one shot functions with the advanced functions These 1024 bits correspond in layout one to one to the auxiliary output table which is of course the lowest 64 words x16 bits of the register memory Override Table The Override tables store override information for I O references in the Main and Auxiliary I O chains The Override tables are used by the following functions relays counters timers latches and one shots Mnemonic functions ignore the Override tables When an input output or auxiliary I O referen
120. isters to receive the C block build number and the S6PIO firmware build number Dummy parameter not used Dummy parameter not used Table 4 10 5656 Parameter List Notes The S6SCAN C Block asserts power flow only if there are no errors encountered GFK 1883 Chapter 4 SOFTWARE INTERFACE 4 11 4 12 Real Time Consultants Pty Ltd Proprietary Information If errors are encountered then the return error status register and the I O status register will identify the problem S6SCAN does not copy any input data if an error is encountered Parity retries are set to 1 There is no provision in S6SCAN to change the number of retries If more than two consecutive I O cycles to the same address have a parity error the scan is aborted Use the priority input mode to scan inputs without updating outputs This mode should be used for the first couple of scans after a power up until the input states have been read at least once Refer to lAppendix B EXAMPLE 90 70 PROGRAMS for an example on the use of priority input mode Use the RST status X5 to assert or de assert RST It is recommended that the state of RST follow the run run disabled stop CPU keyswitch Refer to Appendix B EXAMPLE 90 70 PROGRAMS for an example on the use of the CPU keyswitch Note the scan option USE CPT this option tells the block to copy input data only if the corresponding CP was received This means that input data in the 90 70 with no corresponding
121. it must be imported into the folder as detailed below Step 1 Step 2 Step 3 Step 4 Step 5 Step 6 Bit Addressing Most C Blocks take the Series Six I O addresses in bit format Valid bit numbers range from 1 to 8192 Table 4 2 Bit Addressing Verses Channel Number details the bit numbers for normal and expanded channel modes of operation Go into 90 70 Programming Software Select F6 Program Block Librarian Select F3 Import Library Element to Folder Select the C Block as the library element Press Enter to import the block Press ESC twice to return to main menu Note Ses the ranges for I O are listed in Table 4 2 Bit Addressing Verses Channel Number Series Six Parallel I O Transmitter Module GFK 1883 Channel Series Six Designation Start Bit End Bit Number Number Number I O0001 I O1000 1 0140001 I O 12 1000 1025 2024 1 02 0001 1 02 1000 2049 3048 6 UIO6 000 06 100 22 6145 174 Table 4 2 Bit Addressing Verses Channel Number lO Status Register GFK 1883 6 RESERVED AlwaysreadsO 8 ISOPSBAD Isolated power supply and or interface is BAD 9 CHAIN OK ChainOKisBAD RST Asserted RST Asserted 15 MODE 2 S6PIO mode bit 2 The two mode bits together indicate the following Mode 2 Mode 1 00 Scanning in passive mode or manual mode 01 Slave mode or idle mode 10 Master I O mode 11 Master DMA mode PRIORITY INPUT Priority input mode Table 4 3 I O Status Register No
122. ix Parallel I O Transmitter Module 1 00002 00289 00001 00001 00065 6 00001 lt lt RUNG 14 gt gt FST_SCN 500001 7 F M00003 CALL S6PMAP C EXTERNAL CONST 1 Y1 4 R00350 0008 CONST 2 Y2 R00351 0000 CONST 3 Y34 R00352 0002 00300 4 Y4 SRO00353 GFK 1883 Real Time Consultants Pty Ltd Proprietary Information Y4 58101 IO status register Y5 R102 2 register array indicating the C block and S6PIO build numbers x Y6 R104 Array of at least 3 registers First register is a channel bitmap indicating what channels have been 32 p scanned Second registr is a counter which increments each time a synchronisation event occurs Third register m is the size of the special passive mode data that may ps be returned For this example this will be zero xc Eo veu Rd eoe e dede dise xo deese MR dede EE deese desee dede xc koe ven Regen RUNG 16 gt gt S6PIO in slot 8 OK SLOT80K ASYNCH8 100002 4 F T0O0004 t CALL S6PSV EXTERNAL CONST 1 Y1 R00050 8008 Aux ch CP map CP AUX CONST 2 Y2 SM02049 0032 Aux ch address map AM_AUX CONST 3 Y3 M03073 0001 101025 4 Y4 SROO0051 Q01025 X5 Y5 SRO0052 CONST X6 Y6 R00054 OOFF Eo SCR e eie aede die AREER
123. k CCMTST GFK 1883 05 03 02 IOCCM serial transfe r error CCMXFER enm IOCCM D iagnost ics dat a value DIAGDAT SRO0361 CONST If w Real Time Consultants Pty Ltd 18 2 100015 11 00000 hav 6 lt lt RUNG 40 gt gt IOCCM D iagnost ics dat a value DIAGDAT SRO0361 4 GE HIN Q 00001 FANUC SERIES 90 70 Proprietary Information v7 02 Reliabilty Test Reliabilty test example 2 Jl Port Error c ode for diag da ERRCODE R00381 1 X2 X3 X4 X5 y2 y3 y4 Program R GFK 1883 6 5 1100 0 128 8 2200 1 just xecuted a read serial data and it has completed S6PIO slot number Source Source Sourc memory type memory word devic ID Number Target Target of bytes to memory typ memory byte then copy the data from S6PIO to 90 70 register memory Set up parameter block for S6MOVE to move IOCCM data back to 90 70 S6PIO register memory offse
124. l Operation Passive mode Parry isok The Reset RST LED should be off The parity LED may flicker if active RESET DMA headers are being received O Brook chAn Fault Break in I O Chain passive mode Q pany isok ACTIVE RESET The Chain LED is off check I O chain connections QC RDO CHAN Fault Break in I O Chain master mode parry isok active RESET Check I O chain connections 8 1 Real Time Consultants Pty Ltd Proprietary Information If the Active LED is permanently off it is probable that the 90 70 CPU is halted or there is no 90 70 application loaded that is communicating with the S6PIO i e there are no S6PIO C blocks being run 2 Cable Connections Check all connections to ensure they have been firmly made 3 Terminations Check all I O chain terminations Make sure the S6PIO is not double terminated i e make sure that the internal and external terminators have NOT both been applied 4 C block error returns Often the C block error returns indicate what the problem is It is highly recommended that the error return values be monitored and appropriate action taken Refer to Trouble Shooting C Block Error Returns for possible actions 5 Event and Error Logs The event and error logs can provide additional information that may allow the user to pin point the area providing trouble Refer to BootLdr evtrd Command above for information on how to read the event and erro
125. lay specified event log evtclr log id Clear the specified event log evtdma 1 Set simple or decoded mode for DMA header log read_id Read module id structure exit Exit BootLdr BootLdr gt The above commands are the most frequently used For help on additional commands used mainly for manufacturing testing type BootLdr gt BootLdr exit Command The exit command exits the bootldr utility and returns to the DOS prompt BootLdr exec Command The exec command allows a file of commands to be executed as a script The exec command is most often used to invoke the upgrade of onboard FLASH memory This is detailed in the section titled Upgrading Flash Series Six Parallel I O Transmitter Module GFK 1883 00 20 44 349 00 20 44 349 00 20 44 350 00 20 44 350 00 20 44 350 00 20 44 351 00 20 44 351 00 20 44 351 00 20 44 353 00 20 44 353 00 20 44 354 00 20 44 354 00 20 44 354 00 20 44 354 00 20 44 354 00 20 44 354 GFK 1883 Real Time Consultants Pty Ltd Proprietary Information BootLdr read id Command This command displays the board version information This is useful for confirming that the latest firmware is installed The following is an example of the command s usage Note that the firmware of the user s board should be equal to or later than that shown in the following example BootLdr gt read_id usModuleType 1 usSwMajorRev 1 usSwMinorRev 0 usSwBuild 127 BuildDate May 10 2002 BuildTime 03
126. le Number of Racks 10 daisy chained Series Six I O racks Genius Bus Controller When a Series Six Genius Bus Controller is to be driven by an S6PIO the total I O chain length Specific I O Chain limits between the S6PIO and the I O rack containing the GBC must not exceed 1050ft 320 meters There must be no more than two I O transmitter modules and three daisy chained I O racks between the S6PIO and the GBC Downstream Interface Series Six I O Receiver Module or a C Bus STMA interface module Normal or Expanded I O Up to 8 channels in Expanded Scanning mode Only normal mode may be used on C BUS unless the C BUS connection is downstream of an I O Transmitter module User Selectable I O Scan 45us per byte 5 625ms per 125 addresses max bus length 2000 30us per byte 3 75ms per 125 addresses max bus length 2000 15us per byte 1 875ms per 125 addresses max bus length 500 Programmable from 270msec to 2550msec in 10msec increments Programmable via a 90 70 C block Passive Mode This mode allows the module to monitor the I O bus cycles produced by another S6PIO module pee running in Master Mode or by a Series Six CPU Window Bus Cycles Can generate block transfer cycles for servicing smart devices requiring the use of a PDT or Mme OES Dik Window Parity Error Retries Number of parity retries may be specified in a command option If the specified number of retries Pere fail to correct the error the input table byte is not u
127. lel I O Transmitter Module GFK 1883 Real Time Consultants Pty Ltd Proprietary Information Example 2 Demonstrate Use of C Blocks This example program illustrates the use of the various C Blocks The example is intended to be used as a guide when constructing real world applications This example makes the following assumptions 1 AnS6PIO module set up in expanded channel master mode is used to replace a Series Six Primary I O Chain 2 Expanded mode scanning is used 3 Asingle IOCCM module is present in the system at address 961 channel 1 communicating serially to a CCM module in a external system 4 Priority input mode is used for the first active scan 5 The Series Six I O chain follows the RUN DISABLE keyswitch status 6 The 56210 module is installed in slot 6 of the CPU rack 7 Two high density digital input modules are present at 761129 961160 channel 0 and 9611 20132 channel 1 8 Two high density digital output modules are present at 700129 961160 channel 1 and 1 Q32 channel 1 Two analog input modules are present at address 133 channel 0 and I65 channel 1 10 Two analog output modules are present at address Q257 channel 0 and Q289 channel 1 GFK 1883 Appendix B EXAMPLE 90 70 PROGRAMS B 5 Real Time Consultants Pty Ltd Proprietary Information Program Listing 05 03 02 18 25 GE FANUC SERIES 90 70 v7 02 Page 1 Reliabilty Test Reliabilty test example 2
128. ltants Pty Ltd Proprietary Information Master Mode In this mode the S6PIO module is used to control an existing Series Six I O bus with a Series 90 70 processor Note The S6PIO module has the same driving capability as an I O Transmitter module therefore in master mode the 56210 module is capable of driving a 500 feet 152 4 meters cable segment With S6 Primary 1 0 Chain Only In this configuration a Series 90 70 CPU has replaced the original Series Six CPU and now controls the Series Six primary I O chain SERIES 90 70 90 70 CPU RACK I SERIES SIX PRIMARY I O SERIES 6 I O RACK To other Primary VO racks Figure 2 4 Master Mode wiring with Series Six Primary 1 0 Only GFK 1883 Chapter2 INSTALLATION amp WIRING 2 9 2 Real Time Consultants Pty Ltd Proprietary Information S6 Primary and Auxiliary IO Channels In this configuration a Series 90 70 CPU replaces the original Series Six CPU and controls the Series Six primary and auxiliary I O chains Figure 2 5 below two S6PIO modules are installed in the Series 90 70 CPU rack to provide interface functionality SERIES 90 70 TERR 90 70 CPU RACK 1 c 0 60 0 760 0 P u SERIES SIX SERIES SIX AUXILLIARY VO SERIES 6 I O RACK PRIMARY VO SERIES 6 I O RACK Vv To other Auxilliary To other Primary VO racks VO racks Figur
129. m PLC s EEA OR REA Rol Se e ok dco EEEE KEKEREKE KEKE EEKE KEEKEKE dee eo cR EEKE e exo doc dee eoe kool ee qe RUNG 7 gt gt PRI UNT PRIMARY 500033 M00133 C RUNG 8 gt gt SEC UNT SECNDRY S00034 M00134 M lt lt RUNG 9 gt gt LOC_RDY L_READY S00035 M00135 ET Program EXAMPL4 C LM90 FOLDERS EXAMPL4 Block _MAIN GFK 1883 Appendix B EXAMPLE 90 70 PROGRAMS B 67 B 08 Real Time Consultants Pty Ltd 04 22 02 15 20 lt lt RUNG 10 gt gt GE FANUC 5 ERI EXAMPL EA RDNDT Proprietary Information ES 90 70 v7 02 Page 2 EX Example of using redundancy PLC configuration with S6PIO cards LOC ACT L ACTIV 500036 M00136 RUNG 11 gt gt lt lt REM_RDY R_READY 500037 07 i lt lt RUNG 12 gt gt REM_ACT R_ACTIV 500038 M00138 RUNG 13 lt lt gt gt LOGIC EQUAL 500039 M00139 Eh gt gt RUNG 15 lt lt 0006 4 4 C koe koc ke koc ke RR KKK ke KK ko ko ke ke kk KK KK ke gt COR Test to see if an 56210 card exists in Slot 6 and is healthy x9 SLOT6OK M00106
130. mes useful when diagnosing DMA windowing problems Emulated Series Six Memory The full complement of Series Six memory tables is emulated on the S6PIO module The emulation is equivalent to that of a Series Six Plus running version 130 microcode At reset time all memory tables are cleared to zero and the scratchpad initialized with data appropriate to a version 130 microcode CPU scratchpad The CPU ID is set to 1 The sizes of the emulated memory tables are as follows Scratchpad 256 bytes 256 bytes 256 bytes 256 bytes 16384 words Logic Memory 32768 words Table 4 15 S6WIN Emulated Memory Sizes It is important to note that the emulated memory tables are distinct from the scanned I O This behavior is different to the Series Six and has been designed this way for maximum flexibility The user is responsible for moving scanned I O data to or from the emulated memory tables for access during a DMA window Refer to RTC technical notes for further details The user should also note that during a DMA window to an IOCCM or ASCII Basic module the command byte and status bytes are updated by the window not by an I O scan at the module address Therefore to ensure that a module receives the correct command byte it must be moved into the appropriate status or register table before executing the DMA window After the DMA window has completed the user may use a move command to move the DMA module status byte back to 90 70 memory Setting
131. meters total cable limit for the entire chain is not exceeded With S6 Primary 1 0 Chain Only In this configuration a Series Six CPU controls a primary I O chain which is daisy chained through an S6PIO module and then out to the I O system SERIES SIX SERIES 6 CPU RACK SERIES SIX 0 m o oor rom4z00 24 2 lt rox4zoo o oor o SERIES 90 70 90 70 CPU RACK HI 0 390 SERIES SIX PRIMARYVO SERIES 6 I O RACK P S 20 v To other Primary VO racks Figure 2 2 Passive Mode wiring with Series Six Primary I O Only Chapter2 INSTALLATION amp WIRING 2 7 2 Real Time Consultants Pty Ltd Proprietary Information S6 Primary and Auxiliary IO Channels In this configuration a Series Six CPU controls primary and auxiliary I O chains Both chains are daisy chained through separate S6PIO modules and then out to the respective I O systems SERIES SIX SERIES 6 CPU RACK 0zm o oor 024200 o oor 90 70 CPU RACK 1 SERIES SIX SERIES SIX AUXILLIARY I O PRIMARY I O SERIES 6 I O RACK SERIES 6 I O RACK V To other Auxilliary To other Primary VO racks VO racks Figure 2 3 Passive Mode wiring with Series Six Primary and Auxiliary 5 2 8 Series Six Parallel I O Transmitter Module GFK 1883 2 Real Time Consu
132. mitter Module GFK 1883 Real Time Consultants Pty Ltd Proprietary Information 05 03 02 18 26 GE FANUC SERIES 90 70 v7 02 Page 27 Reliabilty Test Reliabilty test example 2 lt lt RUNG 23 gt gt SLOT 60K M00101 0811 S6AIN EXTERNAL SLOT AIN2STS R00011 X1 Y1 R00045 AIN2BUF AQ0034 X2 Y2 R00121 AIN2IOS CONST 3 Y3 SRO0046 0441 AINSBTS CONST X4 1 0001 Reset s tatus f rom RUN switch RSTSTS 211118110 SP00002 X5 Y5 SRO00043 PRINP AIN2TAB P00004 X6 Y6 AI0034 KK ko Monitor analog in and out 1 to ensure they are within the allowed boundry range RR gt ke ke gt KKK KR KKK KKK KR kkk kkk kkk kkk kk kkk kk kkk kkk KKK KKK KKK KK gt gt RUNG 25 lt lt ALW_ON 500007 F 4 F MUL DIV INT INT 10 10 10 band band band plus 10 plus 10 plus 10 COUNT2 MAXLIM MAXLIM MAXLIM 200002 11 Q RO0411 ROO0411 I1 Q RO0411 CONST 2 CONST 2 00010
133. n Chapter UTILITY PROGRAMS BootLdr Utility Introduction The bootldr utility is a Windows console application that communicates with the SOPIO module through the front panel console port The bootldr utility may be used to field upgrade the S6PIO module FLASH memory or to retrieve diagnostic information from the card Console Interface To use the bootldr utility connect a cable from the S6PIO module console port to the PC serial port In the following examples it will be assumed that the PC serial port is COMI The console port pin out is compatible with the GE Fanuc Station Manager Cable IC693CBL316B which may be used to connect to a standard PC DB9 serial port Console port communication speed is 57600 baud This may present operational problems with older PCs RJ 11 Signal RJ 11 Port DB9 Signal Pin Pin Description Pin 1 CTS Cleartosend i p 7 RTS 2 TD Transmitted data o p 2 RD SG 4 SG Signalgromd 5 SG 5 RD JjRecivddaa p 3 TD 6 RTS Requesttosend op 8 cr Table 7 1 Console Connections Invoking BootLdr Invoke the bootldr utility by typing C gt bootldr 1 0 GFK 1883 7 1 7 2 Real Time Consultants Pty Ltd Proprietary Information The bootldr utility will respond with a signon message and a prompt similar to the following RTC Boot Monitor version 1 28 May 9 2002 Entering boot monitor type help for help BootLdr BootLdr help
134. n for this is that the PDT window occurs at the end of the sweep period and provides a natural sweep synchronization point The effect of synchronization is that the 90 70 and Series Six will generally synchronize to the same sweep time Depending on the work to be done by the 90 70 the 90 70 sweep time may be a multiple of the Series Six sweep time The S6PSV block will return shortly after the synchronization address has been received or the time out reached Since the data in the S6PIO is double buffered the data returned by S6PSV reflects the Series Six bus cycles that have occurred since the previous synchronization address Due to the need to synchronize to a Series Six sweep to ensure data coherency it is necessary to use the S6PSV block in asynchronous mode when monitoring a Series Six with both primary and auxiliary chains For this reason it is difficult for a 90 70 PLC with multiple S6PIOs to monitor multiple Series Six systems in passive mode If it is necessary to perform this type of monitoring the coherency of the Series Six data cannot be guaranteed In this case the block should be used in asynchronous mode refer 1 parameter so that the different passive blocks for the different S6PIO cards can have their requests queued and therefore not block until a synchronization event has occurred Refer to Appendix B EXAMPLE 90 70 PROGRAMS for an example program on how this is achieved When running passive mode on a Series Six I O bu
135. ng interface 6 OSE 27 CN B6AIN V 5 z 0 z Data Move interface Set or clear special card map for passive mode analog I O demultiplexing Clear or retrieve event log system error log or DMA headers 5 2 D fu 4 m Q Table 4 1 C Block Summary 90 70 Interface GFK 1883 The C Blocks communicate with the S6PIO module via VME dual ported memory Real Time Consultants Pty Ltd Proprietary Information Adding C Blocks to 90 70 Block Library Before using a C Function Block it must be added to the 90 70 block library using the Program Block Librarian in the 90 70 Programming Package To do this you must firstly ensure that the C Block is not read only Then carry out the following Step 1 Step 2 Step 3 Step 4 Step 5 Step 6 Step 7 Step 8 Step 9 Go into 90 70 Programming Software Select F6 Program Block Librarian Select F6 Add Element to Library Specify the full path name of the EXE file supplied Specify the Element Type as External Block Press Enter to add the Block to the library Answer correctly to the number of input output pairs and press enter Refer to able 4 1 C Block Summary for the number of parameter pairs corresponding to each C Block Press Y yes to accept the parameters entered Press ESC twice to return to main menu Importing C Blocks to Program Folder When the C block is required for use in a particular program folder
136. o abort line waiting for the user to press the reset button on the board or power cycle the 90 70 rack off on Alternatively the user can press any key to abort the boot command Upgrading Flash GFK 1883 To upgrade FLASH memory perform the following procedure Unprotect FLASH memory by moving the Jumper JP4 to the 2 3 position Connect the console cable between the S6PIO console port and COMI the PC Start the bootldr utility At the bootldr prompt type the boot command Press the reset button or power cycle the board When boot mode is entered type the exec command to initiate the FLASH download The file s6pio f bin is assumed to contain the FLASH binary image 7 When the download is complete protect the FLASH by moving jumper JP4 to the 1 2 position Qv pe EE An example FLASH download session follows BootLdr boot Setting baudrate to 57600 baud Reset target processor hit any key to abort Valid leadin RTES BOOT S6PIO 0 00 6 received BootLdr exec prog flash txt BootLdr rdownload ffe000 fff7ff bootmon bin Starting download press any key to abort OxOOFFF780 Download from file bootmon bin completed BootLdr go ffe018 0 Executing from 8002685885 8 BootLdr delay 100 BootLdr ferase 0 4 9 Erasing sector 4 Erasing sector 5 Erasing sector 6 Chapter 7 UTILITY PROGRAMS 7 7 Real Time Consultants Pty Ltd Proprietary Information Erasing sector 7 Erasing sector
137. o update their existing Series Six installations without Sore replacing all of the installed I O modules S6PIO Figure 1 1 The S6PIO Front Panel shows the current front panel layout The S6PIO was previously released with different front panel markings for the LEDs The function of each LED however remains the same as the previous superceded front panel U P 8 SePIO 000 Cr cno hphR isok 5 A CONSOLE M U P S T R E 0 A Te D M 2o 0 o eej w o o o N o o go S D o2 0 e 3 96 N o2 E S 38 A 3 M 0 E A M 4 Figure 1 1 The 56710 Front Panel left Superceded Front Panel right GFK 1883 1 1 Real Time Consultants Pty Ltd Proprietary Information Modes of Operation The S6PIO module has two major modes of operation Master Mode In Master Scan mode the S6PIO module acts as a Series Six Bus Master To the I O system the S6PIO module is indistinguishable from a Series Six CPU In Master Scan mode the S6PIO module can perform standard I O scans or provide Direct Memory Access DMA When a window is opened to a DMA device such as an I O Communication Control Module IOCCM data transfers occur between the DMA device and emulated Series Six memory tables that are resident on the S6PIO module Passive Mode In passive mode the S6PIO module can listen for standard I O scans issued by another Serie
138. oherency between the two units The user should be aware that when in solo mode the shared I O and registers are no longer shared If the master scan PLC should stop and the other PLC comes on automatically depending on the code the result on the I O and internal PLC status may be unpredictable The S6SCAN module does have a feature that is specific to redundancy configuration and allows the user to force the 56210 to idle mode if the 90 70 trips or is selected to stop refer Bcan Options Register In this mode if the watchdog times out while master scanning it is assumed that the PLC has stopped and will place the S6PIO module into idle mode so as not to freeze the I O chain and allow the running PLC to control it Real Time Consultants Pty Ltd Proprietary Information Appendix EXAMPLE 90 70 PROGRAMS b This section lists several example programs and illustrates the use of selected C blocks All the examples are intended as a guide only and are provided to illustrate particular uses for particular blocks In most cases the supporting code required for a safe live system has not been included The included examples are Example 1 Demonstrate Use of the S6SCAN Block rogram Listing Example 2 Demonstrate Use of C Blocks rogram Listing Example 3 Demonstrate Use of the S6PSV Block rogram Listing Example 4 Two 90 70 CPU s In Redundancy Configuration rogram Listing Example 5 Illustrate Use of SOPSV Block in Asynchronous Mo
139. on S6MOVE C Block Introduction The S6MOVE C Block provides an interface to the S6PIO module for use in moving data between the 56210 Series Six emulated memory and 90 70 The S6MOVE C Block consists of 5 pairs of parameters as follows Parameter Data Type Comment Table 4 17 S6MOVE Parameter List Memory types are specified according to the following table depending on whether the memory is resident in the S6PIO or the 90 70 Note that the C block allows source and target to be the same type i e memory can be moved from 90 70 to 90 70 90 70 to S6PIO S6PIO to 90 70 or S6PIO to 56210 Of particular importance for the SOMOVE block is the correct specification of the source and target memory offsets For all 90 70 memory types the source and target offsets are byte offsets For Series Six memory source and target types registers and logic memory are word offsets all other memory types are byte offsets Value 4 10 12 16 E 90 70 GE Memory Byte S6PIO Transition Table Byte S6PIO Override Table 2 Byte 4 28 Series Six Parallel I O Transmitter Module GFK 1883 3 4 Real Time Consultants Pty Ltd Proprietary Information S6PIO Scratchpad 3 Byte S6PIO I O Status Table 56210 Registers S6PIO Logic Memory Table 4 18 S6MOVE Memory Types Series Six Table Descriptions The S6PIO emulates the Series Six memory tables while in master mode however these emulated tables generally do not serve the
140. on often arises in redundant systems Switching Modes GFK 1883 A fully redundant system may require a standby system to be monitoring in passive mode while the main system is operating in master mode On change over to the standby system it would be required for the standby system to become the master and to switch from passive to master scan mode The previous master may also be required to switch from master scan mode to passive scan mode However it is not desirable to enter master scan mode immediately as it is required that the passive blocks be stopped first failure to stop any running passive blocks will result in the S6PIO being held in passive mode indefinitely Additionally no unit should switch into master mode if I O chain activity is detected chain activity may be the result of a fault where communication is lost and both units go into solo mode with Local Active set A program example is provided in Appendix B EXAMPLE 90 70 PROGRAMS The example illustrates how both units should start up in passive mode with the master unit only going to master mode if no chain activity is detected The passive block is stopped on the transition from passive mode to master mode Note also that the passive block is not being used to scan any shared I O The passive block is primarily being used to monitor chain activity not to maintain data coherency between the master and stand by units Shared I O should still be used to maintain data c
141. onitored Program EXAMPL3 C LM90 FOLDERS EXAMPL3 Block Series Six Parallel I O Transmitter Module A x x 50 30 50 a 50 5 P i a X An _MAIN GFK 1883 Real Time Consultants Pty Ltd 04 22 02 15 02 G Example of using t lt lt RUNG 9 gt gt SLOT60K 514100106 F BLKMV INT R amp S PSV CONST IN1 Q R01301 00006 CONST IN2 00030 CONST IN3 00000 CONST IN4 00000 CONST EENS 00000 CONST IN6 00124 CONST IN7 00000 4 4 Program EXAMPL3 R amp S PSV R01301 TIMEOUT R01302 POPMODE R01303 100001 000001 SYNCADD Proprietary Information FANUC SERIES 90 70 v7 02 EXAMPL3 he S6PIO to only monitor the S6 I O activity Page 3 PSVOK M01032 R01306 END OF PROGRAM LOGIC C LM90 FOLDE CALL S6PSV 4 EXTERNAL ERRSTAT X1 Y1 RO1310 CPMAPO1 X2 Y2 RO01311 ADMAPO1 X3 1 IO_STAT X4 Y4 R01349 PSVBLD X5 Y5 RO1350 PSVDBO1 X6 Y6 SRO1351 RSN
142. oprietary information Contents Chapter 1 INTRODUCTION suavtaasetsvaussentens seen Series Six Parallel I O Interface Transmitter Module S6PIO m x WIRING eee eese ease ean hapter 2 INSTALLATION lel 2 2 2 2 2 2 2 2 2 2 212121212 12 212 1 12 1 2 12 1 1 1 1 1 1 hapter3 3 vii Contents Real Time Consultants Pty Ltd Proprietary Information hapter 4 viii GFK 1883 Real Time Consultants Pty Ltd Proprietary Information Contents 7 1 Safety Considerations GFK 1883 x Contents Real Time Consultants Pty Ltd Proprietary Information Figures Tables GFK 1883 Real Time Consultants Pty Ltd Proprietary Information Chapter 1 INTRODUCTION The aim of this chapter is to provide a brief overview of the S6PIO module Series Six Parallel I O Interface Transmitter Module S6PIO This User Manual is for the Series Six Parallel I O Transmitter Module S6PIO which provides an interface to GE Fanuc Series Six Input and Output I O modules The S6PIO module complies with the VME standard VME REV C 1 October 1985 and De may be used in GE Fanuc Series 90 70 PLC systems and standard VME systems The O army sox S6PIO module allows users t
143. or Returns GFK 1883 Most of the 90 70 C blocks provide 8 standard error return number to give some feedback on what the mis operation is likely to be fable 4 5 C Block Error Codesllists the possible error code returns This section lists some of the possible causes for particular errors and suggests some actions that may be taken to avoid the error Error Code 1 A block parameter was missing Possible Cause s The user has failed to provide an essential parameter to the block Corrective Action s Check the data sheet user manual for a description of each of the parameters of the C block returning the error Ensure all parameters have been correctly applied Error Code 3 An invalid data address was supplied to a C Block Possible Cause s The user s program has provided an invalid address as one of the parameters to the C block Corrective Action s Ensure the addresses being supplied exist and are of the appropriate type Error Code 11 The S6PIO is not present at the specified rack slot number Possible Cause s 1 An incorrect rack slot parameter value was provided to the C block 2 S6PIO not detected as present on the slot rack Corrective Action s 1 Make sure the correct slot rack number is provided to the C block 2 Possible hardware failure run the board under self test refer to ensure board is operating correctly If self test passes check the 90 70 rack to ensure it is operating correctly Error Code 12
144. ormation 226 GE FANUC SERIES 90 70 v7 02 Page 33 Reliabilty Test Reliabilty test example 2 lt lt RUNG 5 gt gt SLOT 60K SCN2OK SM00101 F M00004 CALL S6SCAN EXTERNAL SLOT SCNSTS2 R00011 X1 Y1 R00061 COUNT1 R00001 X2 Y2 I01025 SCN2IOS CONST X3 Y3 R00063 0401 SCN2BLD CONST X4 Y4 R00064 0421 Reset s tatus f rom RUN switch RSTSTS DUMMY3 P00002 X5 Y5 R00056 DUMMY 4 CONST X6 Y6 R00057 0070 4 END OF BLOCK LOGIC Program RELIAB1 C LM90 FOLDERS RELIAB1 Block SCAN GFK 1883 Appendix B EXAMPLE 90 70 PROGRAMS B 39 Real Time Consultants Pty Ltd Proprietary Information 05 03 02 18 26 GE FANUC SERIES 90 70 v7 02 Page 34 Reliabilty Test Reliabilty test example 2 START OF LD BLOCK CCMTST VARIABLE DECLARATIONS VARIABLE DECLARATION TABLE REFERENCE NICKNAME REFERENCE DESCRIPTION 5000961 Q S6CCM S610CCM Output Address M00001 S6 6 OK S6PIO in slot 6 OK M00081 WT CC Write serial to IOCCM SM00082 RD_CC Read serial IOCCM M00119 SAMPLE Indication to start sampling T00013 CCMCOMP IOCCM command status complete T00014 CCMBUSY IOCCM busy 55 CCMXFER IOCCM serial transfer error T00018 CCMWCOM IOCCM Write
145. ot 6 slave 0x00008000 AM 0x29 Enable TRUE 00 00 01 663 12 0 DPRAM Request 0x00400060 00 00 01 664 13 0 DPRAM Response 0x00400080 00 00 01 666 14 0 DPRAM CP 0x004000B0 00 00 01 667 15 0 DPRAM AM 0x00400130 00 00 01 668 16 0 DPRAM Inputs 0x004001B0 00 00 01 669 17 0 DPRAM Outputs 0x004005B0 00 00 01 670 18 0 DPRAM XfrBuff 000400980 size 0x1000 00 00 01 672 19 0 DPRAM pucChIdx 0x004019B0 00 00 01 673 20 0 DPRAM mem used 1900 0 free space 1584 bytes 00 00 01 678 21 0 Chain OK Bad 00 00 01 679 22 0 Isolated Power OK Good 00 00 01 680 23 0 Chain OK Good 00 00 01 682 24 0 RST De Asserted 00 00 01 683 25 0 IO successful change from Ch 255 to Ch 128 Total Chan errs 0 BootLdr 7 6 Series Six Parallel I O Transmitter Module GFK 1883 7 Real Time Consultants Pty Ltd Proprietary Information Note The system event log is output on the second serial port in ASCII format Data rate 57600 baud BootLdr Boot Command The boot command allows the BootLdr utility to capture control of the S6PIO and force it into a diagnostic monitor mode When the S6PIO is in this mode all front panel LEDs are off apart from ACTIVE LED which flashes at approximately 4112 rate A typical dialog is as follows BootLdr boot Setting baudrate to 57600 baud Reset target processor hit any key to abort Valid leadin RTES BOOT S6PIO 0 00 6 received BootLdr Note that the display pauses after Reset target processor hit any key t
146. pdated and a fatal parity error is reported Priority Input I O Cycles The S6PIO can perform priority input cycles when the MS address bit is a 1 This causes the ON irra be ignored by output cards however input ands VME Bus Interface VME Specification Meets the VME REV C 1 standard dated October 1985 Configuration for 90 70 When installed in a 90 70 PLC the module configuration is plug and play The VME slave address Data Transfer Bus Programmable to allow A16 D8 A16 D16 A24 D8 and A24 D16 transfers in either user or supervisor mode A16 and A24 addressing shall both map to onboard dual ported RAM RMW cycles are supported Dual Port RAM 4K words 16 bit of dual ported RAM Mailbox Interface Interrupt mailbox triggered by VME write to a specified dual port memory address Priority Interrupt Bus Can generate vectored interrupts on any programmable interrupt level from level 1 to level 7 SYSFAIL Can assert SYSFAIL on a board error condition This option is jumper selectable may be used It can not be installed in a remote I O rack Number of Modules A maximum of 4 S6PIO modules may be installed per local 90 70 I O or CPU rack Allows a maximum of 24 S6PIO modules in a fully configured 90 70 PLC system Software Emulated Series 6 Emulates Series Six Plus CPU memory tables Emulates Series Six scratchpad to ensure Memory interoperability Function provided to move data between the 90 70 I O tables and the emulated Ser
147. r encountered when transferring data to the 90 70 Table 4 5 C Block Error Codes Error codes may also be generated by the S6PIO firmware these include Val 102 66 Passive mode failed to stop properly Cd Invalid mode command received by S6PIO 104 68 The specified command is not implemented 105 69 Low level I O error present Chapter 4 SOFTWARE INTERFACE 4 5 4 Real Time Consultants Pty Ltd Proprietary Information Val Hex Description Val 107 6B Errors occurred in high level 1 0 scan 109 6D Eror in analog input scan Table 4 6 S6PIO Firmware Error Codes 4 6 Series Six Parallel I O Transmitter Module GFK 1883 4 Real Time Consultants Pty Ltd Proprietary Information S6NOOP C Block GFK 1883 Interface The S6SNOOP C Block provides a simple interface to the S6PIO module that performs No Operation Use of this block provides for testing to determine whether a S6PIO module exists in a particular slot in the Series 90 70 rack and whether that S6PIO module is healthy The C Block consists of 1 pair of parameters as follows Parameter Data Type Comment Rack in high 8 bits slot in low 8 bits Table 4 7 S6NOOP Parameter List The C Block asserts power flow if and only if there are no errors encountered If errors are encountered then the return error status register will identify the problem Example Usage Refer to Appendix B EXAMPLE 90 70 PROGRAMS for an example use o
148. r logs 6 DMA headers Check the DMA headers to ensure the information interchange is as expected The DMA headers provide useful information refer to True an example on how the data is interpreted The event log can also be read using the SSEVTLOG C block block refer Pisis SOETWAREINTEREACE IO more detail 7 Software Version Ensure the firmware revision and C block revisions are the latest revision and are compatible Many of the C blocks return a software build number Check this return to ensure you have the latest C blocks installed Also check the firmware revision this can be done by running the ReadID command in BootLdr as shown below Note that the version data is provided for firmware and the FPGA It may be necessary to quote this data in the event of a technical support call to the distributors of the board BootLdr read id usModuleType usSwMajorRev usSwMinorRev 0 usSwBuild 127 BuildDate May 10 2002 BuildTime 03 52 12 VersionString S6PIO 0x00001000 version 1 00 build 127 May 10 2002 03 52 12 SFPGAModule XCS40 SFPGANCDFile xcs40 ncd SFPGAPackage S40xlpq208 sFPGADate 2002 05 09 SFPGATime 11 11 16 usFPGA OK OK BootLdr gt 1 1 8 System Design Refer to Chapter 5 SYSTEM DESIGNjto help determine if the problem is a system design issue 8 2 Series Six Parallel I O Transmitter Module GFK 1883 Real Time Consultants Pty Ltd Proprietary Information Trouble Shooting C Block Err
149. r value TSTERR9 509R Analog counter input error value j TSTERR10 510R S6XWIN window return error value lt lt RUNG 11 gt gt SLOT60K 51100101 F q 4 F q 4 F 4 MOVE MOVE_ MOVE_ INT INT INT Digital Static loopbac Analog k error value counter monitor SCNCNT1 ERRCNT1 ERRCNT2 CONST IN Q RO0301 CONST 1 Q RO0311 CONST IN Q RO00321 00000 LE 00000 LE 00000 LE 00001 00001 00001 Program RELIAB1 C NLM90NFOLDERSNRELIABI Block INIT GFK 1883 Appendix B EXAMPLE 90 70 PROGRAMS B 15 Real Time Consultants Pty Ltd Proprietary Information 05 03 02 18 25 GE FANUC SERIES 90 70 v7 02 Page 10 Reliabilty Test Reliabilty test example 2 RUNG 12 gt gt SLOT6OK 51100101 F MOVE_ INT Analog counter error check ERRCNT3 CONST IN 1 00000 LEN 00001 RUNG 13 gt gt SLOT6OK 00101 F BLKMV BLKMV4 INT INT Wrt com pare va Analog lue on Cnt OP error I Value TSTERR1 TSTERR8 CONST 1 1 Q RO0501 CONST 1 8 100000 0 CONST IN2 CONST IN2 0 0 CONST IN3 CONST IN3 00000 00000 CONST IN4 CONST IN4 00000 00000 CONST IN5 CONST IN5 00000 00000 CONST IN6 CONST I
150. re Error Codes 4 6 S6STAT Status Counters 4 9 S6WIN Emulated Memory Sizes 4 24 Safety Considerations 5 7 Scan Options Register 4 4 Self Test LED Pattern 8 6 Self test LED Sequence Description 8 5 Self test Mode See Troubleshooting Series Six Bit Addressing Verses Channel Number 4 3 Emulated Memory 4 5 Series Six Emulated Memory 5 5 Series Six Parallel I O Interface Transmitter Module 7 7 Software Interface Bit Addressing 4 2 C Blocks 4 7 S6AIN 4 1 4 17 S6AOP 4 1 4 14 S6EVTLG 4 1 4 33 S6MOVE 4 1 4 28 5611008 4 1 4 7 SOPMAP 4 1 4 31 S6PSV 4 1 4 20 S6SCAN 4 1 4 11 S6STAT 4 1 4 8 S6WIN 4 1 4 23 S6XWIN 4 1 4 26 Emulated Series Six Memory 4 5 4 24 Error Codes 4 5 IO Status Register 4 3 Scan Options 4 4 Series 90 70 1 Adding C Blocks to 90 70 Block Library 4 2 Importing C Blocks to Program Folder 4 2 Module Configuration 4 Setting CPU ID 4 24 Specifications 1 4 Environmental 4 GFK 1883 Real Time Consultants Pty Ltd Proprietary Information Index General Module Details 4 V I O Interface 1 4 Mechanical 1 4 VME Slave Addressing by Slot Number 3 1 Software 1 5 VME Bus Interface 5 W VME Standard 1 5 Standards amp Approvals EMC Emissions 6 1 EN55011 6 1 FCC Part 15 6 1 EMC Immunity 6 7 IEC 1000 4 11 6 1 IEC 1000 4 2 6 1 IEC 1000 4 3 6 1 IEC 1000 4 4 6 1 IEC 1000 4 5 6 1 IEC 1000 4 6 6 1 IEC 1000 4 8 6 1 Environmental 6 1 IEC 68 2 27
151. red It is also required for the Advanced I O receiver to be in the first I O rack so that Reset can be asserted when both redundant 90 70 racks trip DMA FLOW Causes DMA data to be copied across to the corresponding THROUGH 90 70 memory location Applicable only to S6SCAN blocks with the PDT window option set 10 16 RESERVED Set to zero may be used in future versions of software Table 4 4 Scan Options Register Asynchronous Mode Selected C Blocks support an asynchronous mode of operation Currently supported asynchronous blocks are S6SCAN and S6PSV Asynchronous operation is very useful when the 90 70 is driving multiple S6PIO cards as it allows the S6PIOS to scan or monitor their respective I O chains at the same time significantly reducing 90 70 CPU scan times When asynchronous mode is used at least two blocks are required i e two S6PSV blocks or two S6SCAN blocks for each 56210 The first has the asynchronous bit set and initiates background collection and transfer of data in the S6PIO and is generally early in the program A second block generally at the end of the program is used to ensure data collection and transfer has completed successfully and to trigger the transfer of the scanned input data which has been buffered inside the S6PIO The second block does not have the asynchronous bit set 4 4 Series Six Parallel I O Transmitter Module GFK 1883 4 Real Time Consultants Pty Ltd Proprietary Information Emulate
152. refreshes any inputs from input modules present at the same addresses Parity retries are set to 1 There is no provision in S6AOP to change the number of retries If more than two consecutive I O cycles to the same address have a parity error the scan is aborted 4 14 Series Six Parallel I O Transmitter Module GFK 1883 4 Real Time Consultants Pty Ltd Proprietary Information Use the priority input mode to scan inputs without updating outputs This mode should be used for the first couple of scans after a power up until the input states have been read at least once Refer to lAppendix B EXAMPLE 90 70 PROGRAMS for an example on the use of priority input mode Use the RST status X5 to assert or de assert RST It is recommended that the state of RST follow the run run disabled stop CPU keyswitch Refer to Appendix B EXAMPLE 90 70 PROGRAMS for an example on the use of the CPU keyswitch Note the scan option USE CP this option tells the block to copy input data only if the corresponding CP was received This means that input data in the 90 70 with no corresponding physical input will not be disturbed Also note that it is important to ensure that the output table parameter Y5 is correctly set as the S6SCAN block may also output data to the analog output cards if the S6SCAN blocks scanning address range includes the analog output address If a program has a S6AOP block followed by a S6SCAN block then the S6SCAN block must be presen
153. roduce random data to output to digital address cards hold in the following registers ELIABI C NLM90NFOLD Series Six Parallel I O Transmitter Module ERS R INTABH 100017 4 Page 16 INT Dig Loo pback I P High Err Val TSTERR6 FIN Q R00506 LE 00001 and value and BRK RK RK RK RK RK RK KK KK KK KK KK KK KK KK RK OK KK KK KK KK KK RK KK RK KK KK kk Block 3 20 50 DIGLB 3 Real Time Consultants Pty Ltd Proprietary Information 05 03 02 18 25 GE FANUC SERIES 90 70 v7 02 Page 17 Reliabilty Test Reliabilty test example 2 lt lt RUNG 15 gt gt Sample rate fo 2 Git al IO SAMPLE1 DATOPOK M00002 F M00201 CALL DATATST s EXTERNAL Data te st bloc k raw o p data RAWTP1L CONST X1 Y1 R01182 0002 CONST X2 Y24 0004 CONST 3 Y34 0001 CONST 4 Y44 Q000 a F RUNG 16 gt gt SLOT60K MOO101 2 F t AND 4 WORD Data te Digital st bloc IO poin k raw o t test p data lower r RAWTP1L TESTP1L R
154. s 10 AINBUF MAXLIM R00111 I2 R00411 L2 MONAIO 1 00201 gt gt RUNG 29 lt lt MECNT MEOVR M00106 M01080 ONDTR C 1 00s MEOVR M01080 toa IER CONST PV 07 32767 Analog counter error check ERRCNT3 R00331 Program RELIAB1 C LM90 FOLDERS RELIAB1 Block ANLGLB GFK 1883 Appendix B EXAMPLE 90 70 PROGRAMS B 35 Real Time Consultants Pty Ltd Proprietary Information 05 03 02 18 26 GE FANUC SERIES 90 70 v7 02 Page 30 Reliabilty Test Reliabilty test example 2 gt gt RUNG 30 lt lt MECNT 51100106 F q 4 F t 4MOVE MOVE INT INT Analog Analog Cnt OP Cnt IP Value Value COUNT2 TSTERR8 AINBUF TSTERR9 R00002 IN Q R00508 SROO111 IN Q R00509 LEN LEN 00001 00001 END OF BLOCK LOGIC Program RELIAB1 C LM90 FOLDERS RELIAB1 Block ANLGLB B 36 Series Six Parallel I O Transmitter Module GFK 1883 Real Time Consultants Pty Ltd Proprietary Information 31 05 03 02 18 26 GE FANUC SERIES 90 70 v7 02 Page Reliabilty Test Reliabilty test example 2 START OF LD BLOCK SCAN VARIABLE DECLARATIONS VARIABLE DECLARATION LAB R
155. s Six Bus Master either a Series Six CPU or another S6PIO module Such scan data is accumulated into S6PIO module memory When a given synchronization address is recognized on the bus the scan data can be transferred to the Series 90 70 PLC Usually the Series Six Program Development Terminal PDT window is used for synchronization Module features Selectable Scan Rates The default I O scan rate of the S6PIO module is close to that of the standard Series Six CPU The default setting provides a scan of 1000 I O in approximately 5 6msec bus time The S6PIO module has the potential to scan at faster rates Scan rates are user selectable see Table 1 1 Module Specifications below below Status LEDS The S6PIO module has 6 green LED indicators mounted on the front panel During power on initialization all of the LEDs will cycle twice through an LED test routine before being set to their standard states Each of the LEDs are described below BRDOK Board OK LED The initial state after reset of the BRDOK Board OK LED is off After configuration is complete and the S6PIO module is ready for operation the BRDOK Board OK LED should be on If the application program has not been programmed into on board flash memory or an error is detected with the initialization of the S6PIO module the BRDOK Board OK LED will remain off 1 2 Series Six Parallel I O Transmitter Module GFK 1883 Real Time Consultants Pty Ltd Propriet
156. s limited by the buffer space available in the S6PIO transfer buffer This is approximately 1024 bytes The maximum number of events that can be returned is 21 for the system event log and 64 for the system error log and 42 for DMA header log The most recent log entries are returned Word If 1 clear the event ECHO U uM E M TR No data will be returned gt Return error status Word Array The log header for the specified event log Requires 16 registers to store the log header Event Log No 16 bit number Next Event 16 bit number Max Events 32 bit number Total Events 32 bit number Name of Event 16 byte ASCII description Info Size 16 bit number Padding Not Used pe we Number of log entries retrieved May be less than the number asked for MN Array Log data Requires 32 bytes per entry for the DMA amp system error logs and 96 bytes per entry for the system event log Entries consist of the following Milliseconds 32 bit number Day number 32 bit number Event number 32 bit number Fault code 32 bit number Data 32 bytes for DMA log 16 bytes for system error log and 80 bytes for system event log Y5 Word Array Software build numbers This is an array of 2 registers to receive the C block build number and the S6PIO firmware build number Table 4 20 S6EVTLG Parameter List Chapter 4 SOFTWARE INTERFACE 4 33 4 34 Real Time Consultants Pty Ltd Proprietary
157. s processed This results in constant brightness during normal scan operations This LED was previously marked CHACT on the superceded front panel RESET LED The RESET RST LED FLASHES if the S6PIO is in master mode AND RST is asserted The LED is ON if the S6PIO is in master mode AND RST de asserted The LED is OFF if the S6PIO is in passive mode or the S6PIO is idle idle occurs after reset or power up and before any C blocks have been executed Special LED Functions When the S6PIO module is placed in Self test mode the 6 LEDs described above assume special functions These special LED functions are described later refer Chapter 8 TROUBLESHOOTING relation to self test mode Small Onboard LED This LED is on at power up and is turned off after module initialization has been completed GFK 1883 Chapter 1 INTRODUCTION 1 3 1 4 1 Real Time Consultants Pty Ltd Proprietary Information Onboard Reset Button This button resets the onboard processor It can be used during module setup and testing or during the FLASH download procedure This button is NOT intended to be used during normal operation J umpers The S6PIO module has 27 jumpers the functions of which are discussed in the section entitled refer Chapter 2 INSTALLATION amp WIRING If the S6PIO module is used in a 90 70 PLC system then the factory default settings for these jumpers are generally adequate C Blocks module The C Blocks are described in th
158. s with a Series Six PLC performing a normal T O scan expect the address map to contain 125 consecutive bits indicating a scan of I O 1 1000 It is normal to see the top three address bits not scanned The address map provides useful information if a SUSIO instruction is programmed and one or more DOIO instructions are used to scan the I O In this case the address map shows exactly what addresses have been scanned between synchronization addresses Chapter 4 SOFTWARE INTERFACE 4 21 4 Real Time Consultants Pty Ltd Proprietary Information The Card present map is useful to see a picture of what input addresses respond during the I O scan between synchronization addresses When determining a suitable value for the synchronization time out period keep in mind that the value should be longer than the normal Series Six sweep time Indeed a general rule of thumb is to use a time 50 greater than the average Series Six sweep time This allows time for DMA devices to complete even when there is heavy data flow For example if the average Series Six sweep time is 50 ms then the synchronization time out period should be set to 75 ms When using an S6PIO to monitor a Series Six I O chain running in expanded channel mode it is preferable to use the PDT window as the synchronization address Any normal I O address will be seen on a per channel basis and would not be desirable as a synchronization point Example Usage Refer to Appendix B EXAMPLE 9
159. scan A PDT window is required if Genius Bus controllers or Remote I O Transmitters are to be supported or if there is another S6PIO listening on the bus in passive mode The S6SCAN C Block consists of 6 pairs of parameters as follows Data Type XI Word Bits 1 8 slot number Bits 9 15 rack number Bits 16 scan type Bit16 1 Initiate an asynchronous scan Bit16 0 If asynchronous scan has been initiated then complete the scan other wise carry out a normal scan X2 Byte Array Pointer to output table This is the table within the 90 70 to be output to the Series Six I O X3 Word Start channel and address The address is specified in standard Series Six bit notation Refer to Addressing Verses Channel Number for details This address refers to the FIRST bit in the scan End channel and address The address is specified in standard Series Six bit notation Refer to Addressing Verses Channel Number for details This address refers to the LAST bit in the scan Word RST status Bit1 first bit 0 means RST de asserted RST is the Series Six Bus reset line and if asserted will cause the I O modules to go to their default states X6 Word Scan options refer to able 4 4 Scan Options Register for details Y2 Byte Array Pointer to input table This is the table within the 90 70 to receive input data I O status register refer to able 4 3 I O Status Register for details Word Array Software build numbers This is an array of 2 reg
160. t 1100 S6PIO transfer R1101 ID ELIABI Target devic Ce 90 70 register memory offset 2200 90 70 LM90 FOLD ERS R ELIABI Appendix B EXAMPLE 90 70 PROGRAMS SR1101 Page 49 35 2 5 Block CCMTST B 55 05 03 02 Real Time Consultants Pty Ltd Proprietary Information 18 26 GE FANUC SERIES 90 70 Reliabilty Test Reliabilty test example 2 v7 02 Page 50 RUNG 42 gt gt RUNG 44 gt gt Read serial IOCCM SLOT6OK RD CCM 5100101 51400082 DATA_ CALL S6MOVE INIT_ EXTERNAL INT MEM2TYP MOV2ERR 0 200092 CONST X1 Y1 R00091 LE 0006 00003 MEM2TYP F CONST 2 2 0005 MEM2OFF CONST 3 3 044C MEM2ID CONST X4 4 0000 MOV2BLD CONST X5 Y5 SRO0095 0080 DATA INIT INT 3 2 1 00008 02200 00001 When writing reading data has returned correct status pulse command complete gt gt ke k
161. t 70133 Analog input channel status is copied to the 4 registers beginning 81 1 Series Six Parallel I O Transmitter Module GFK 1883 Real Time Consultants Pty Ltd Active Scans Running ACTSCAN 5100006 4 CONST 4 0007 S6 Analog Output Module S6 AOUT 000033 4 CONST 4 0021 CONST 4 0002 CONST 4 0000 CONST 0000 GFK 1883 Chapter 4 FCALL 1 2 3 4 5 SOFTWARE INTERFACE S6AIN EXTERNAL m Y X24 Ww Y Y44 Y54 S6AIN Error Status AIERRST F R00009 AIN1 Chanl Raw Data A1C1RAW F AI0001 S6AIN IO Status AIIOST F R00010 AIP1 Chanl Data valid A1C1VLD 610 7 S6AIN CBlock Build Number S6ICBLD F R00021 r 100033 Proprietary Information S6AINOK M00004 4 19 Real Time Consultants Pty Ltd Proprietary Information S6PSV C Block 4 20 The S6PSV C Block provides an interface to the S6PIO module for use in passive mode to monitor a Series Six I O Chain The S6PSV C Block consists of 6 pairs of parameters as follows Data Type XI Word Bits 1 8 slot number Bits 9 15 rack number Bits 16 scan type Bit 10 1 Initiate an asynchronous passive scan issue the command to the S6PIO and return immediately Bit16 0 If asynchronous passive scan has been initiated then complete the scan other wise carry out a normal scan xo Woa NM Synchronization wait timeout in milliseconds Word
162. te Reserved bits may be defined in future releases of software Chapter 4 SOFTWARE INTERFACE 4 Real Time Consultants Pty Ltd Proprietary Information Most C Blocks return an I O status register as a part of their return data This register consists of 16 bits with the following meanings bits are numbered 1 to 16 4 3 4 Real Time Consultants Pty Ltd Proprietary Information Scan Options C Blocks that initiate I O Scans accept a 16 bit scan options register with the following meanings bits are numbered 1 to 16 Bit Mnemonic Description RESERVED Set to zero for future compatibility 2 PRIORITY INPUT If set scan in priority input mode Allows inputs to be read MODE without updating outputs 3 4 SCAN SPEED Bit4 0 Bit3 0 default scan speed Bit4 0 Bit3 1 medium scan speed Bit4 1 Bit3 0 fast scan speed Bit4 1 Bit3 1 very fast scan speed Note fast amp very fast must not be used with Series Six I O 5 EXPANDED MODE Assume expanded channel mode scanning eee CP Only copy input data for which a valid CP was received Only ie SOSCAN amp S6AOP C Blocks PDT WINDOW Issue PDT window after scan Only for S6SCAN C Block FORCE IDLE MODE Force idle mode on watchdog timeout Only for S6SCAN S6AOP amp S6AIN C Blocks Reverts To Idle Mode if the 90 70 trips or is selected to stop This option should only be used for redundant configurations As in normal configuration S6PIO Assert Reset is requi
163. ted with appropriate data to output to the analog card if the output cards address is included in the S6SCAN blocks scanning address range Failure to do so may cause a subsequent S6SCAN to scan over the analog output card address range and to corrupt the analog output data resulting in an erroneous output Example Usage The following example scans 2 analog output cards beginning at address 33 Outputs are taken from 90 70 analog output registers AQ1 AQ8 The output data is copied to the output table at Q33 input data is read into the input table at 96133 GFK 1883 Chapter 4 SOFTWARE INTERFACE 4 15 4 Real Time Consultants Pty Ltd Proprietary Information Note It is important to ensure that the output table parameter Y5 is correctly set Failure to do so may cause a subsequent S6SCAN over the analog output card address range to corrupt the analog output data resulting in an erroneous output Active Scans Running ACTSCAN S6AOPOK M00006 4 60 3 t CALL 56208 EXTERNAL S6AOP Error Status AOERRST CONST X1 Y1 RO0005 0007 AOP1 Chanl Output Data A1C10UT SAQ0001 X2 Y24 100033 S6AOP IO Status AOIOST CONST X3 Y3 SRO0006 0021 S6AOP CBlock Build Number AOCBLD CONST 4 Y4 R00007 0002 S6 Analog Output Module 56 AOUT CONST 5 Y 5 Q00033 0000 CONST X6 Y6 0000 4 16 Series Six Parallel I O Transmitter Module GFK 1883 4 Real Time Consultants
164. th 3 sets of inputs outputs Data Type Rack in high 8 bits slot in low 8 bits X2 Word z Write option value 0 Read option value default X3 Word Watchdog reset timeout value in milliseconds only used if X2 write Valid range 50 1000 ms Return error status Y2 Word Returned options list currently only the watchdog timeout value is returned This C block was created to read and write the S6 options currently only watchdog timeout It is recommended this C block only runs when needed i e not continually The watchdog time timeout by default is set to 270 milliseconds valid range 50 to 1000 ms This value closely approximates the Series Six watchdog timeout The watchdog monitors command activity from the 90 70 CPU If a command is not received within the timeout period and the S6PIO is in master mode RST will be asserted There is an option within the S6SCAN block to command idle mode If this option has been set then the timeout will cause the S6PIO to go to the idle state Refer to Table 4 4 Scan Options egister for further details 4 10 Series Six Parallel I O Transmitter Module GFK 1883 4 Real Time Consultants Pty Ltd Proprietary Information S6SCAN C Block Interface The S6SCAN C Block provides an interface to the S6PIO module for use in Master Scan mode This C Block provides the ability to scan in normal or expanded mode and can optionally issue a PDT window at the completion of the
165. th the S6PIO If using the bootldr application use the following command line to start the bootldr and enter terminal mode C gt bootldr coml 5651 Boot Ldr gt BootLdr gt term Entering terminal mode exit with S6PIO Use the config command to set the desired parameters into FLASH Before doing so ensure that the FLASH is write enabled via JP4 S6PIO config No valid configuration found S6PIO 2 display brief help help display brief help exit exit from monitor md byte memory dump mdw word memory dump mm byte memory modify mmw word memory modify byte set byte word set word modbld build the module directory exec execute a text module as a sequence of commands evt display the event log fpga_reset reset the fpga Series Six Parallel I O Transmitter Module GFK 1883 3 7 Real Time Consultants Pty Ltd Proprietary Information dl xcs download the xcs40 fpga epld dwnld download the epld cmdhdlr go to command handler date display date amp time setime set date amp tim mdir display the module directory dump dump a module in binary format vme vme address vme addr modifier config config vme address vme addr modifier vme enable S6PIO S6PIO config 200000 3d 1 No valid configuration found Writing configuration data Configuration data written VME Slave 0x200000 VME AM 0x3D VME Enable TRUE S6PIO gt S6PIO gt config
166. the CPU ID The emulated scratchpad defines a number of items including the CPU ID By default the CPU ID is set to 1 when the S6PIO module is reset The CPU ID is read by an IOCCM module and is used in Master Slave CCM communications To change the CPU ID use an S6MOVE block to move a new CPU ID to S6PIO scratchpad byte location 0x16 This move only needs to be done once after the 56210 module is initialized after a power up sequence Series Six Parallel I O Transmitter Module GFK 1883 4 Real Time Consultants Pty Ltd Proprietary Information Example Usage The following example opens a DMA window to a module at bit address 801 The window has a 5 millisecond timeout the overall C Block timeout is set at 50 milliseconds Note A DMA window results in data transfers to and from emulated Series Six memory tables on the SOPIO module This means that to get data in and out of the 90 70 a data move via an SOMOVE block is required The example program in Appendix B EXAMPLE 90 70 PROGRAMS illustrates how to do this Active Scans Running ACTSCAN S6WINOK SMODODG 499 4 M00005 CALL S6WIN EXTERNAL S6WIN Error Status S6WERR CONST 1 Y1 R00015 0007 S6WIN IO Status S6WIOS CONST 2 Y2 R00016 0321 S6WI Number Window Headrs S6WNHD CONST FX3 Y34 R00017 0032 S6WI CBlock Build Number S6WCBLD CONST 4 Y4 R00018 0022
167. the units are operating in solo mode then there will be no data coherency between the units Refer to Appendix A SWITCHING BETWEEN MODES for more detail Series Six Parallel I O Transmitter Module GFK 1883 Real Time Consultants Pty Ltd Proprietary Information Program Listing 04 22 02 15 20 GE FANUC SERIES 90 70 v7 02 Page 1 EXAMPLE 4 RDNDTEX Example of using redundancy PLC configuration with S6PIO cards START OF PROGRAM LOGIC KKK KK KKK ck Sample test program for a redundancy configuration using 0 module in each 90 70 CPU rack to drive a single Series Six I O chain 5 x Both 90 70 s should be running this same program COR gt KR KKK KEK KK KK KKK KK KKK KKK KK KK ke KKK ke KKK koe Determine the status of both Redundancy Syste
168. ty retry occurred 5 ISOPWR GOOD The interface across the S6PIO isolation barrier is good and the 5V isolated supply is OK EN ee ey barrier 7 RST_ASSERTED The RST line on the IO bus has been asserted LM RST DEASSERTED The RST line on the IO bus has been de asserted CHANNEL FAIL Indicates a failure in setting or changing channels CHANNEL SUCCESS Successful channel change after a failed attempt From build 126 onwards Chapter 4 SOFTWARE INTERFACE 4 35 4 Real Time Consultants Pty Ltd Proprietary Information Fault Mnemonic Description Code 11 DMA HDR TIMEOUT Indicates a timeout waiting for a header byte from the RXFIFO DMA CHECKSUM ERR Indicates checksum error in DMA window 13 DMA CHECKSUM TIME Time out waiting for DMA checksum to arrive to indicate a OUT window has been correctly received DMA INVLD HDR Invalid DMA header was received Table 4 24 System Error Log Fault Codes Fault Codes 3 amp 4 unrecoverable and recoverable parity errors include the following information 1st byte Channel Number Indicates the channel number that the parity error occurred on this shall be channel 0 for broadcast channel 0x80 or 0 7 if an expanded channel The broadcast channel is indicated as channel zero 2nd Byte Byte address location 3rd Byte Bit Address Bit location on the bus 1 8192 Byte location x 8 1 System Event Log Unlike the previously described event logs w
169. ve mode C block was executed The Address map consists of 8 words per channel When running the S6PSV block in expanded channel mode ensure that sufficient space is allocated for 8 expanded channels ie Series Six Parallel I O Transmitter Module GFK 1883 3 4 Real Time Consultants Pty Ltd Proprietary Information Parameter Data Type Comment 64 words I O status register refer to Register or details Software build numbers This is an array of 2 registers to receive the C block build number and the S6PIO firmware build number Must point to a register area at least 3 registers long Data written to this area is as follows 16 bit channel map bits 0 7 first 8 bits represent channels 0 7 Bit set to 1 if the corresponding channel was scanned else 0 16 bit Synchronization counter incremented each time the synchronization address is encountered 16 bit size of special passive mode data Following the size field is the special passive mode data The user must ensure there is sufficient space here to hold all of the returned special mode data Table 4 13 S6PSV Parameter List Notes Passive mode continually monitors the I O bus and copies address output amp input data information to memory When a synchronization address is received the data is copied to a second memory buffer for quick access by the S6PSV C Block It is recommended that the PDT window address be used as the synchronization address The reaso
170. vent entry sequence number Table 4 22 Event Log Common Information Layout Event Log Type The three event log types serve different purposes in the S6PIO They are described in the following sections Series Six Parallel I O Transmitter Module GFK 1883 3 4 Real Time Consultants Pty Ltd Proprietary Information DMA Log The DMA log provides information about DMA window headers processed by the S6PIO module DMA headers provide information about data transfers that have occurred in a DMA window and are useful for troubleshooting problems associated with DMA data transfers The structure of a DMA log entry is as follows Byte Data Type Comment Offset o WORD Byte count Number of bytes follawing Maximum is 30 Channel number and byte address 4 8 BYTE 5 byte DMA header ARRAY BYTE DMA Data Up to the first 25 bytes of the DMA data transfer are logged ARRAY Table 4 23 DMA Log Layout System Error Log The system error log provides basic system event amp error information The system error log consists of the following entries The following fault codes are logged in the system error log Code GOOD BAD E cs ERR An unrecoverable parity error has occurred The log information field contains the channel number and byte address where the parity error occurred PARITY RETRY A recoverable parity error has occurred The log information field contains the channel number and byte address where the pari
171. warranty expressed implied or statutory with respect to and assumes no responsibility for the accuracy completeness sufficiency or usefulness of the information contained herein No warranties of merchantability or fitness for purpose shall apply The hardware and software systems that are the subject of this document were developed by and are the product of Real Time Consultants Pty Ltd GE Fanuc Automation North America Inc has kindly authorized the publication of this document in a format that is consistent with its own technical publications The following are trademarks of GE Fanuc Automation North America Inc Alarm Master Genius PROMACRO Series Six CIMPLICITY Helpmate PowerMotion Series Three CIMPLICITY 90 ADS Logicmaster PowerTRAC VersaMax CIMSTAR Modelmaster Series 90 VersaPro Field Control Motion Mate Series Five VuMaster GEnet ProLoop Series One Workmaster Copyright 2001 Real Time Consultants Pty Ltd ACN 097 397 254 All Rights Reserved ii GFK 1883 Real Time Consultants Pty Ltd Proprietary Information Preface Revision 3 270 Released with firmware build 127 The S6PIO module is manufactured and supported by Real Time Consultants Pty Ltd under license from Real Time amp Embedded Systems Pty Ltd GFK 1883 lil Real Time Consultants Pty Ltd Proprietary Information Contents Content of This Manual GFK 1883 Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter
172. y Information 05 03 02 18 25 R00041 R00043 R00045 R00046 R00051 R00053 R00054 R00056 R00057 SROOO61 R00063 R00064 R00071 R00072 R00073 R00075 R00081 R00082 R00083 R00084 R00085 R00091 R00092 R00093 R0O0094 R00095 R00101 R00102 R00103 R00104 SROO111 R00121 R00131 R00141 R00151 R00152 R00153 R00154 R00155 R00201 R00211 R00301 R00311 R00321 R00331 R00341 R00351 R0O0411 R00412 R00413 R00501 R00502 R00503 R00504 Program RELIAB1 AI AI AI AI GE FANUC SERIES 90 70 v7 02 Page 2 Reliabilty Test Reliabilty test example 2 N1IOS NIBLD N2STS N2108 SCNSTS SCN1IOS SCNIBLD DUMMY3 DUMMY 4 SCNSTS2 SCN2IOS SCN2BLD AOPSTS2 AOP2STS AOP2BLD J Dp oo O 0 0 0 0 gt N MY2 ERR 1TYP 1OFF 1ID VIBLD ERR 2TYP 20FF 2ID V2BLD UTX4 UT1P2 UT1P3 lt 4 Al Al Al OO O O gt Co SC NBUF N2BUF NSBTS P1 ERR 3TYP 3ID 30FF BLD 10 NSTAT NCNT1 lt W z D ERRCNT1 D A Q zZ Wh 2 NLIM 1 ERR2 ERR3 ERR4 Digital loopback error counter Static Analog value monitor Analog counter error check Window error count for IOCCM IOCCM serial loopback er count 10 band plus 10 10

Download Pdf Manuals

image

Related Search

GFK 1883_SeriesSixPa..

Related Contents

  Pioneer PDP-425CMX User's Manual  Audiovox RC205  Manual de Instalación y Uso  取扱説明書  Fiche Technique Corps de Filtres 1N  Manual de Montaje - Dinacell Electrónica  Purex Fume Cube_manuel utilisation  ACTi Archive Player User`s Manual  nayakobo.com  

Copyright © All rights reserved.
Failed to retrieve file