s5 user.pdf

11
Siemens S5 1) How to start with an S5 software, working on-line with PLC - If program is not installed on hard-disk, use Norton Commander: . C:\>NC. Select the left window in STEP5, then USER; . Select the right window as drive A: press ALT+F2, then A; . Point the machine file (e.g.: L97080ST.S5D), then press F5 (copy)+<> . The file is now on hard disk. - With MS-DOS prompt using CD command or using Norton Commander, select the directory were the machine file is located: C:\>CD C:\STEP5\USER- Start S5 as follow: C:\STEP5\USER\>S5- The following screen appears: S E L E C T P A C K A G E SIMATIC S5 / KOMI ------------------------------------------------------------------------------- - LAD, CSF, STL .................... V 3.0 C:S5PXS01X.CMD XRF, COMP, REW ................... V 3.0 C:S5PXS03X.CMD EPROM/EEPROM ..................... V 3.1 C:S5PXS04X.CMD PG-LINK .......................... V 3.0 C:S5PXS05X.CMD SYMBOLS EDITOR ................... V 3.0 C:S5PXS08X.CMD STL - EDITOR / BATCH - COMPILER .. V 2.2 C:S5PXS09X.CMD TTY / AS 511 - INTERFACE (STANDARD) F 1 ¦ F 2 ¦ F 3 ¦ F 4 ¦ F 5 ¦ F 6 ¦ F 7 ¦ F 8 PACKAGE ¦ UTILITY ¦ INFO ¦ VERSION ¦INTERFACE¦ DRIVE ¦ NEW SEL ¦ RETURN - Select LAD, CSF, STL package using cursor keys and press <F1> or <INS> to enter the package.

Upload: cyrus6997303

Post on 27-Dec-2015

40 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: S5 user.pdf

Siemens S5

1) How to start with an S5 software, working on-line with PLC

- If program is not installed on hard-disk, use Norton Commander: .C:\> NC↵↵↵↵

. Select the left window in STEP5, then USER;

. Select the right window as drive A: press ALT+F2, then A;

. Point the machine file (e.g.: L97080ST.S5D), then press F5 (copy)+<↵↵↵↵>

. The file is now on hard disk.

- With MS-DOS prompt using CD command or using NortonCommander, select the directory were the machine file is located:

C:\> CD C:\STEP5\USER ↵↵↵↵

- Start S5 as follow:

C:\STEP5\USER\> S5↵↵↵↵

- The following screen appears:

S E L E C T P A C K A G E SIMATIC S5 / KOMI--------------------------------------------------------------------------------

⇒⇒⇒⇒ LAD, CSF, STL .................... V 3.0 C:S5PXS01X.CMD XRF, COMP, REW ................... V 3.0 C:S5PXS03X.CMD EPROM/EEPROM ..................... V 3.1 C:S5PXS04X.CMD PG-LINK .......................... V 3.0 C:S5PXS05X.CMD SYMBOLS EDITOR ................... V 3.0 C:S5PXS08X.CMD STL - EDITOR / BATCH - COMPILER .. V 2.2 C:S5PXS09X.CMD

TTY / AS 511 - INTERFACE (STANDARD) F 1 ¦ F 2 ¦ F 3 ¦ F 4 ¦ F 5 ¦ F 6 ¦ F 7 ¦ F 8 PACKAGE ¦ UTILITY ¦ INFO ¦ VERSION ¦INTERFACE¦ DRIVE ¦ NEW SEL ¦ RETURN

- Select LAD, CSF, STL package using cursor keys and press <F1> or<INS> to enter the package.

Page 2: S5 user.pdf

- The following screen appears:

P R E S E T S SIMATIC S5 / PES01--------------------------------------------------------------------------------

REPRESENT. : LAD PROGRAM FILE : C:L97080ST.S5D [ RW ]

SYMBOLS : NO SYMBOLS FILE : C:@@@@@@Z0.INI

COMMENTS : YES

FOOTER : NO FOOTER FILE :

PRINTER FILE :

CHECKSUM : NO

MODE : OFF

PATH NAME : PATH FILE :

F 1 ¦ F 2 ¦ F 3 ¦ F 4 ¦ F 5 ¦ F 6 ¦ F 7 ¦ F 8 ¦ ¦ SELECT ¦ ¦ ¦ ENTER ¦ INFO ¦

- The cursor point to PROGRAM FILE.Type <F3> SELECT and the filename (e.g.C:L97080ST.S5D )- Move the cursor to REPRESENT. and change representation using <F3> till you getREPRESENT. : STL

- If you are connected to the PLC, the MODE has to be change from OFF to ON. Use cursorkeys to move to cursor on the MODE field, then press <F3> to change the mode. If ON-LINE does not appear, you are maybe not connected with the cable or the CPU is notpowered.

- When everything is preset on that screen, press <F6> or <INS> key to accept settings.

S E L E C T F U N C T I O N SIMATIC S5 / PES01--------------------------------------------------------------------------------

REPRESENT. : STL PROGRAM FILE : C:L97080 ST.S5D [ RW ]

SYMBOLS : NO SYMBOLS FILE : C:@@@@@@Z0.INI

COMMENTS : YES

FOOTER : NO FOOTER FILE :

PRINTER FILE :

CHECKSUM : NO

MODE : ON [MOD IN CYCL ]

PATH NAME : PATH FILE :

F 1 ¦ F 2 ¦ F 3 ¦ F 4 ¦ F 5 ¦ F 6 ¦ F 7 ¦ F 8 INPUT ¦ OUTPUT ¦ TEST ¦ PC FCT ¦ PC INFO ¦ PRESETS ¦ AUX FCT ¦ RETURN

Everything is now OK to start working on line with the file C:L97080ST.S5D !!

Page 3: S5 user.pdf

2) Main menu and keyboard commands:

F 1 ¦ F 2 ¦ F 3 ¦ F 4 ¦ F 5 ¦ F 6 ¦ F 7 ¦ F 8 INPUT ¦ OUTPUT ¦ TEST ¦ PC FCT ¦ PC INFO ¦ PRESETS ¦ AUX FCT ¦ RETURN

- All commands will be described starting from the main menu. If asub-menu is displayed on the screen, press <F8> till you are back onmain menu.

- The keys:

On Desktop(use the NUM pad)

On Laptop(use the Fn blue keys)

<0 - INS> Fn + INS Yes (Validation) key<ESC> <ESC> No (undo) key4←; 6→; 2↓; 8↑ Fn + 4←; 6→; 2↓; 8↑ Cursor Keys (one char. left, right; one line down, up)Shift 4←; 6→; 2↓; 8↑ shift + Fn + 4←; 6→;

2↓; 8↑One field left, right; one page down, up

Page 4: S5 user.pdf

3) How to ?

3.1 - How to reset the CPU:

- Stop the CPU- From the main menu, select <F7> AUX FCT

F 1 ¦ F 2 ¦ F 3 ¦ F 4 ¦ F 5 ¦ F 6 ¦ F 7 ¦ F 8TRANSFER ¦ DELETE ¦ DIR ¦ ¦ ¦PRG FILE ¦ ¦ RETURN

- Press <F2> DELETE

DELETE FROM SOURCE: BLOCK:

- Type: SOURCE: PC BLOCK: A then press <INS>

3.2 - How to transfer blocs:

- From the main menu, select <F7> AUX FCT

F 1 ¦ F 2 ¦ F 3 ¦ F 4 ¦ F 5 ¦ F 6 ¦ F 7 ¦ F 8TRANSFER ¦ DELETE ¦ DIR ¦ ¦ ¦PRG FILE ¦ ¦ RETURN

- Press <F1> TRANSFER

TRANS SOURCE: BLOCK: TO DEST: BLOCK:

examples:

transfer FB 10 from the file to CPU: TRANS SOURCE: FD BLOCK: FB10 TO DEST: PC BLOCK:

transfer DB 10 from the CPU to the file: TRANS SOURCE: PC BLOCK: DB10 TO DEST: FD BLOCK:

transfer all DB from the CPU to the file: TRANS SOURCE: PC BLOCK: DB TO DEST: FD BLOCK:

transfer FB 10 from the file to FB13 in the CPU: TRANS SOURCE: FD BLOCK: FB10 TO DEST: PC BLOCK: FB13

transfer DB131 to 137 from the file to CPU: TRANS SOURCE: FD BLOCK: DB131-137 TO DEST: PC BLOCK:

transfer all blocs from the CPU to the file: TRANS SOURCE: PC BLOCK: A TO DEST: FD BLOCK:

Page 5: S5 user.pdf

3.3 - How to Edit and modify blocs:

- From the main menu, select <F2> OUTPUT key.

F 1 ¦ F 2 ¦ F 3 ¦ F 4 ¦ F 5 ¦ F 6 ¦ F 7 ¦ F 8 ¦ BLOCK ¦ ¦SCR FORM ¦ ¦ ¦ ¦ RETURN

- Select <F2> BLOCK.

OUTPUT DEVICE: BLOCK: SEARCH: PTR:

examples:

Read FB10 from CPU and point to segment 3:OUTPUT DEVICE: PC BLOCK: FB10 SEARCH: 3 PTR:

Read FB10 from file and point to I 28.0:OUTPUT DEVICE: FD BLOCK: FB10 SEARCH: I 28.0 PTR:

Read FB10 from CPU and point to address 0230hexOUTPUT DEVICE: PC BLOCK: FB10 SEARCH: 230h PTR:

Read DB10 from file and point to DW167:OUTPUT DEVICE: FD BLOCK: DB10 SEARCH: 167 PTR:

- When reading a bloc FB or OB from a file or from the CPU, the sub-menu comes up:

F 1 ¦ F 2 ¦ F 3 ¦ F 4 ¦ F 5 ¦ F 6 ¦ F 7 ¦ F 8DISP SYMB¦REFERENCE¦ SEARCH ¦DIAGNISIS¦ADDRESSES¦ LIB NO ¦ -> LAD ¦

- you can point an operand like I 28.0 using <F3> + I28.0 + <ENTER>- you can display the lines addresses using <F5>- you can go to next or previous segment using <+> or <-> keys (<Fn+>, <Fn-> orShift<Fn+>, Shift<Fn-> on laptop).- Cursor and page keys can be used.- On the top right corner of the screen, [OUTPUT] is displayed: that means that youare just able to read the bloc.

Modify the bloc:

- When a bloc is on [OUTPUT], pressing <5> (<Fn5> or shift<Fn5> on laptop) allowsyou to modify the current bloc. [CORRECT.] is then displayed and the bottom menuis gone.

- You are allowed to modify the active segment and use cursor and pages keys.- You are not allowed to go to the next segment !!

Insert a line - Place the cursor to the line you want to move down and insert a newone.- Type <End> (<Fn End> or Shift<Fn End> on laptop)- an empty line is insert.- type the new line (e.g.: :A I28.0) the press <Enter>

Delete a line - Place the cursor to the line you want delete- Type SHIFT+TAB to move the cursor on “:”

Page 6: S5 user.pdf

- Press <Del> (<Fn Del> or Shift<Fn Del>)Modify a line - just overwrite the line you want to modify then press <enter>

- Press <INS> ( Fn INS on laptop) to validate the modifications: the bottom sub-menucomes again, [OUTPUT] is displayed and you can change the segment for anothermodification.THE MODIFICATIONS ARE NOT SAVED AT THAT TIME !!!!!

- Press <INS> ( Fn INS on laptop) one more time to enter all bloc modifications.- S5 ask you if you want to overwrite the existing bloc, then the existing comments:press <INS> if you want to do it, <ESC> if not !! (if you press <ESC>, yourmodifications are lost !!!)

NOTE: if you modify directly on PLC, it may happen that the CPU memory is full. Inthat case, when you ask YES to overwrite the bloc, the S5 display a message like“memory full”, and your modifications are not transferred. You have to do acompress of the memory (explained below) and do your modifications again !!!

Page 7: S5 user.pdf

3.4 - Get On-line bloc status:

- From the main menu, select <F3> TEST key.

F 1 ¦ F 2 ¦ F 3 ¦ F 4 ¦ F 5 ¦ F 6 ¦ F 7 ¦ F 8PROG TEST¦END TEST ¦ STATUS ¦ ¦ ¦ ¦ ¦ RETURN

- Press <F3> STATUS

STATUS BLOCK: SEARCH:

Example:

Get FB10 segment 8 status:STATUS BLOCK: FB10 SEARCH: 8

Get FB10 status where I28.0 is used:STATUS BLOCK: FB10 SEARCH: I28.0

Get FB10 status starting at the address 0123h:STATUS BLOCK: FB10 SEARCH: 123h

- If the bloc or the code is not scanned, a message is displayed on the bottom rightcorner “statement not processed”.

- If the bloc or the code is currently scanned (active), a message is displayed on thebottom right corner “Status processing active”, and you will see on the right part ofthe screen the status variables:

What means the status:RLO: Logic result of the equation (1 or 0)STATUS: Status of binary operand (e.g.: if I28.0 is ON, 1 will be displayed)ACCU1: Shows the content of ACCU 1ACCU2: Shows the content of ACCU 2

Page 8: S5 user.pdf

3.5 - Monitor and force values:

- From the main menu, select <F4> TEST key.

F 1 ¦ F 2 ¦ F 3 ¦ F 4 ¦ F 5 ¦ F 6 ¦ F 7 ¦ F 8 START ¦ STOP ¦COMPRESS ¦STAT VAR ¦ FORCE ¦FORCE VAR¦ ¦ RETURN

- Press <F6> STATUS, and the following screen is shown:

FORCE VAR OPERANDS : FORMATS:

F 1 ¦ F 2 ¦ F 3 ¦ F 4 ¦ F 5 ¦ F 6 ¦ F 7 ¦ F 8 FETCH ¦ STORE ¦ ¦ FIELD ¦ ¦ACTIVATE ¦ ¦ RETURN

- Type values that need to be monitored or changed.

Example: FORCE VAR OPERANDS : FORMATS: DB 19 DW 10 KF=

FW 50 KF=

DB 220 DW 240 KM=

I 28.0 KM=

25% F 1 ¦ F 2 ¦ F 3 ¦ F 4 ¦ F 5 ¦ F 6 ¦ F 7 ¦ F 8 FETCH ¦ STORE ¦ ¦ FIELD ¦ ¦ACTIVATE ¦ ¦ RETURN

Page 9: S5 user.pdf

- Press <F6> activate or <INS> to see the current values:Example: FORCE VAR OPERANDS : FORMATS: DB 19 DW 10 KF=+2345

FW 50 KF=+100

DB 220 DW 240 KM=00100000 11100101

I 28.0 KM=1

FORCE VAR

- Press <ESC> to be able to change values, then type forced values. Across appears on modified operands.

Example: FORCE VAR OPERANDS : FORMATS: DB 19 DW 10 KF= +1000 x

FW 50 KF=+100

DB 220 DW 240 KM=0 1110001 11100101 x

I 28.0 KM=1

- Press <INS> force the variables into the PLC. It also place the cursoron OPERANDS area: this allows you to add some more operands.

Page 10: S5 user.pdf

Example: FORCE VAR OPERANDS : FORMATS: DB 19 DW 10 KF=+1000

FW 50 KF=+100

DB 220 DW 240 KM=01110001 11100101

I 28.0 KM=1

FW 52 KF=+100

25% F 1 ¦ F 2 ¦ F 3 ¦ F 4 ¦ F 5 ¦ F 6 ¦ F 7 ¦ F 8 FETCH ¦ STORE ¦ ¦ FIELD ¦ ¦ACTIVATE ¦ ¦ RETURN

- Press <INS> again to be in status mode

Page 11: S5 user.pdf

3.7 - How to understand a PLC crash:

- From the main menu, select <F5> PC INFO key.

F 1 ¦ F 2 ¦ F 3 ¦ F 4 ¦ F 5 ¦ F 6 ¦ F 7 ¦ F 8OUTP ADDR¦MEM CONF ¦ SYSPAR ¦ BSTACK ¦ ISTACK ¦ ¦ ¦ RETURN

- Press <F5> ISTACK, and the following screen is shown:

Example:C O N T R O L BITS

NB PBSSCH BSTSCH SCHTAE ADRBAU SPABBR NAUAS QUITT

NB NB NB RENAM NB NB NB NB

STOZUS STOANZ NEUSTA NB BATPUF NB BARB BARBEND X X X NB UAFEHL MAFEHL EOVH NB AF NB NB

ASPNEP ASPNRA KOPFNI PROEND ASPNEEP PADRFE ASPLUE RAMADFE

KEINAS SYNFEH NINEU NB NB NB SUMF URLAD X

STOZUS : Stop mode (external request)

- Press <INS>, and the folling screen is shown:

Example:I N T E R R U P T S T A C K

D E P T H: 01 OP-REG : 84D3 SAC: 7BFB DB-ADD: C020BLK-STP: EB07 FB-NR.: 161 DB-NO.: 19 REL-SAC: 0050

ACCU1: 0005 ACCU2: 4101 ____CONDITION CODE : CC1 CC0 OVFL CARRY OR ERAB X STATUS RLO X XCAUSE OF INTERR.: STOPS NB SUF TRAF NNN STS

STUEB NAU QVZ ZYK PEU BAU X ASPFA

ERAB : Last processed statement was first scan

- The highlighted text shows that the CPU has crashed in FB161, address 0050h, withthe DB19 active.