Home
PG 702 Programming Device
Contents
1. Instruction Function of the Instruction Key Sequence LD Loads bit value LD LDx LDN Loads negated bit value LD LDx LD LDx 1 LDI Loads bit value directly Shift LD LDx 1 2 LDNI Loads negated bit value directly Shift LD LDx 2 3LDBx gt Following instructions via LDBx __ Shift DID 3 1 LDB Loads result bit value of word comparison Shift _ LD LDX 3 1 2 LDB lt Loads result bit value of word comparison Shift LD LDx 3 2 lt 3 LDB gt Loads result bit value of word comparison Shift LD LDx 3 3 gt 4LDWx gt Following instructions via LDWx Shift LD LDx 4 1 LDW Loads result bit value of word comparison Shift LD LDx 4 1 2 LDW lt Loads result bit value of word comparison Shift LD LDx 4 2 lt 3 LDW gt Loads result bit value of word comparison Shift LD LDx 4 3 gt 5 LDDx gt Following instructions via LDDx Shift LD LDx 5 1 LDD Loads result bit value of word comparison Shift LD LDx 5 1 2 LDD lt Loads result bit value of word comparison Shift LD LDx 5 2 lt 3 LDD gt Loads result bit value of word comparison Shift LD LDx 5 3 gt 6 LDRx gt Following instructions via LDRx Shift LD LDx 6 1 LDR Loads result bit value of real comparison
2. Instruction Function of the Instruction Key Sequence 1 gt Add instruction Menu _ 8 1 1 l Adds two integers 16 bit Menu 8 1 1 2 D Adds two integers 32 bit Menu 8 1 2 3 R Adds two reals 32 bit Menu 8 1 3 2 gt Subtract instruction Menu 8 2 1 I Subtracts one integer from another 16 bit Menu 8 2 1 2 D Subtracts one integer from another 32 bit Menu 8 2 2 3 R Subtracts one real from another 32 bit Menu 8 2 3 3INCx gt Increment instruction Menu _ 8 3 1 INCB Increments byte by one Menu 8 3 1 2 INCW Increments word by one Menu 8 3 2 3 INCD Increments double word by one Menu 8 3 3 4 DECx gt Decrement instruction Menu 8 4 1 DECB Decrements byte by one Menu 8 4 1 2 DECW Decrements word by one Menu 8 4 2 3 DECD Decrements double word by one Menu 8 4 3 5 MUL Multiplies integers Menu 8 5 6 R Multiplies real Menu 8 6 7 DIV Divides one integer by another Menu 8 7 8 R Divides real Menu _ 8 8 9 SQRT Square root Menu 8 9 PG 702 Programming Device C79000 G7076 C709 01 A 11 Overview of Menus and Instruction Sets Table A 17 Miscellaneous Instructions Instruction Function of th
3. 7 PASSWORDS gt Enter Passwords 7 1 ENTER PASSWORD Enter user password log in to CPU 7 1 2 NEW CHNG PASSWORD Change or create a new password 7 2 3 DELETE PASSWORD Delete the password use default 7 3 password 4 PASSWORD LOGOUT Release the password log out from 7 4 CPU 8 DEBUG R W VARS gt Single Scan and Read Write Variables 8 1 STATUS CHART gt Read write variables 8 1 1 SETUP CHART Create variable list 8 1 1 2 WRITE CHART VARS Write variable list 8 1 2 3 READ CHART VARS Read variable list 8 1 3 2 FORCE FUNCTIONS gt Force variables and I O 8 2 1 FORCE VARIABLES Force variables 8 2 1 2 FORCE I O Force I O 8 2 2 3 UNFORCE ALL VARS Unforce all variables and I O 8 2 3 3 SINGLE SCAN Execute single scan 8 3 PG 702 Programming Device C79000 G7076 C709 01 A 19 PG 702 Programming Device C79000 G7076 C709 01 ASCII Characters B The PG 702 provides a menu to enter ASCII characters You can enter the ASCII characters shown in Table B 1 To enter an ASCII character select the individual characters by entering the number of the row to the left of the character followed by the number of the column above the character The unassigned fields in the ASCII table generate a blank character Table B 1 ASCII Characters 1 2 3 5 6 7 8 9 0 1 a b c
4. 6 PG CONFIGURATION gt Modify PG configuration 6 1 FIND CPU ADDRESS Find S7 200 CPU address to 6 1 communicate to 2 SELECT CPU ADDR Select S7 200 CPU address 6 2 3 SET PG ADDRESS Set PG station address 6 3 4 SET BAUD RATE Set baud rate 9600 or 19200 6 4 5 SET LANGUAGE Set display language 6 5 1 GERMAN gt Set the display to German 6 5 1 1 SIMATIC Set SIMATIC mnemonic 6 5 1 1 2 INTERNATIONAL Set international 6 5 1 2 mnemonic 2 ENGLISH gt Set the display to English 6 5 2 1 SIMATIC Set SIMATIC mnemonic 6 5 2 1 2 INTERNATIONAL Set international 6 5 2 2 mnemonic 3 FRENCH gt Set the display to French 6 5 3 1 SIMATIC Set SIMATIC mnemonic 6 5 3 1 2 INTERNATIONAL Set international 6 5 3 2 mnemonic 4 ITALIAN gt Set the display to Italian 6 5 4 1 SIMATIC Set SIMATIC mnemonic 6 5 4 1 2 INTERNATIONAL Set international 6 5 4 2 mnemonic 5 SPANISH gt Set the display to Spanish 6 5 5 1 SIMATIC Set SIMATIC mnemonic 6 5 5 1 2 INTERNATIONAL Set international mnemonic 6 SET BEEP VOLUME Set beeper loudness 6 6 7 CAPABILITY LEVEL gt Set restricted or unrestricted 6 7 access capability 1 RESTRICTED Set the access to restricted 6 7 1 PG 702 Programming Device C79000 G7076 C709 01 4 41 Working with the PG 702 Find
5. 7 GERMAN 2 ENGLISH 30 FRENCH A ITALIAN 5 SPANISH 4 Press one of the following keys to select the mnemonic the choice appears after you select the menu language T SIMATIC 2 INTERNATIONAL The PG 702 stores its configuration in non volatile memory Whatever language is chosen now becomes the default Useful Keys When Entering the Examples If you make an error or encounter a problem while you are working on the examples on the following pages these keys are helpful e is the Yes key Press this key to acknowledge an error message and clear the display e Press 0 to return to a higher level menu on the PG 702 e Press Shift CLR _ to undo a selection or cancel an operation e Press CLR to escape PG 702 Programming Device C79000 G7076 C709 01 3 3 Creating a Sample Program 3 2 Uploading a Program from the CPU to the PG 702 In this example you are shown how to perform the following tasks e Upload a program to the PG 702 e Create a new program in the PG 702 Uploading an Existing Program From the main PG menu use the steps shown in Table 3 1 to upload a program from the CPU Table 3 1 Uploading a Program from a CPU Key Function Display a PG Menu Access the main PG menu if itis not 1 CPU PROG
6. 0000 eee eee eee eee 4 2 Key Colors and Functions 0000 cece een eee eee eee 4 3 PG 702 Operating Modes 0 06 eee eee eens 4 4 CPU Configuration Menu 0 0 c cece ect nee nee 4 5 Input Delay Time Values 000 eect eens 4 6 Port 0 Parameter Functions 0000 ccc eee eee eee ees 4 7 Port 1 Parameter Functions 00 0c e eee eee eee ees 4 8 CPU Data Block Functions 0 0 cece cence nett nee 4 9 Key Definitions in the Data Block Editor 0020055 4 10 Flash Operation Functions usasa cece eee eee ene nees 4 11 Compatibility Between CPU Models 0 00 ccc eee eee ene 4 12 CPU FUNGHONS wesc cele eed eee ea eee ee ew eee ene ede 4 13 Valid Keys for Modifying the Time of Day Clock 4 14 PG Configuration Functions 0 00 0 cc cece tee eens 4 15 PG Menu Functions Available Under Restricted Capability 4 16 Passwords Function 0 00 cece eee eee tte eens 4 17 Debug Read Write Variables 0 00 c cece ees 5 1 Explanations for Positioning the Cursor in the Instruction Line 5 2 EGG AIGS g sncineea neice hers See eee eee eee deep ee ee Nea 5 3 GOTO RESUNS si ale tascanaw bed cin Cant ananiace bd Pace aha wae ee wart 6 1 Debug Functions Menu 2 0 cece eee ees 6 2 PG Functions Available in Status Chart Setup 0005 6 3 Valid Keys f
7. Go to first entry Shift gt Go to last entry lt Enter make selection lt Move cursor left gt Move cursor right V Cx Toggle to change data size VB VW VD Shift W Cx Toggle to change data format INT signed integer UINT unsigned integer HEX hexadecimal FLOAT floating point CLR Delete a character Shift CLR Cancel the operation Redisplay the original value Also serves as ESC key FCT Data block function menu PG Menu Return to PG menu 4 28 PG 702 Programming Device C79000 G7076 C709 01 Working with the PG 702 Positioning the Cursor Within the Data Block Editor When you select a new line the cursor is positioned on the first column in the line Use the J or A key to move the cursor to the next or previous data line You can only scroll to the last permanent V memory location If you are editing a line and press either the F or F key the edit function is cancelled and the new entry is displayed Use the gt key to position the cursor on the address field of the operand If you press the gt field Use the Fast Moving key again the cursor moves to the next digit in the address key to move the cursor to the previous digit or operand type You can advance the cursor immediately to the beginning or end of the data block by pressing the Sh ift
8. NO DB IN CPU PRESS ANY KEY The PG 702 then starts the data block editor so a data block can be created Downloading to the CPU To download your data select the second CPU data block function DOWNLOAD TO CPU Once the data block has been downloaded the PG 702 displays the main PG menu again You can also press FCT 1 from within the data block editor to download to the CPU After the download is complete the PG 702 returns to the data block editor PG 702 Programming Device C79000 G7076 C709 01 4 27 Working with the PG 702 Editing the Data Block If you leave the data block editor to perform another function you can continue your editing work by selecting the third CPU data block function EDIT DATA BLOCK and the PG 702 displays the first value in the data block Working Within the Data Block Editor Type and format selections within the data block remain in effect until they are changed The default type is VW and the default format is signed integer INT Table 4 9 lists the PG 702 keys and their functions within the data block editor Table 4 9 Key Definitions in the Data Block Editor Key s Function y Scroll to next entry A Scroll to previous entry Shift y Scroll down 10 entries Shift A Scroll up 10 entries Shift
9. You can enter the CPU password either at the beginning of the session or whenever the CPU password is requested When the CPU password is requested the following display appears NEED PASSWORD PRESS ANY KEY After you press any key to clear the display press the PG menu and then press __7 PG Menu key to access the PASSWORDS followed by 7a ENTER PASSWORD to enter the CPU password PG 702 Programming Device C79000 G7076 C709 01 4 47 Working with the PG 702 Enter Password Select this function to enter a password into the CPU After you select 1 ENTER PASSWORD the following screen appears 1 ASCII INPUT 2 DIGIT INPUT If you select ASCII input enter a text password using the procedure to enter ASCII strings see Appendix B or select digit input to enter a numeric password on the screen shown below The CPU password must be eight characters long If you select a password that is less than eight characters the remaining character slots will be filled with blanks 8 DIGITS 0 New Change Password Select the NEW CHNG PASSWORD to set or modify the CPU password and restriction class After you select __2_ NEW CHNG PASSWORD you will see the sequence of screens shown above After you enter the CPU password you are prompted to reenter the password for validatio
10. Figure 2 4 Mounting the PG 702 in a Panel When the PG 702 case is open take all precautions related to handling electrostatic sensitive devices as described in Section D 3 PG 702 Programming Device 2 4 C79000 G7076 C709 01 Creating a Sample Program This chapter describes how to use the PG 702 to perform the following tasks Powering up and setting the programming device e Uploading a program to the PG 702 e Performing a sample task No particular knowledge of special key functions is required to carry out these examples since every operator input is explained Chapter Overview Section Description Page 3 1 Example for Powering Up and Setting the Programming Device 3 2 3 2 Uploading a Program from the CPU to the PG 702 3 4 3 3 Sample Task 3 7 PG 702 Programming Device C79000 G7076 C709 01 3 1 Creating a Sample Program 3 1 Example for Powering Up and Setting the Programming Device In this example you are shown how to perform the following tasks e Power up the PG 702 e Set the dialog language English German French Italian or Spanish e Set the instruction mnemonic language SIMATIC or International Connecting the Programming Device to the CPU Use the cable supplied with your PG 702 to connect the PG 702 to the programmer port on the programmable controller This cable supplies the programming device with the necessary power First Power Up The PG 702 is ready to ope
11. Shift LD LDx 3 The menu with the LDB instruction is displayed 2 1 The LDB instruction is displayed in the entry field for instructions 3 AC The IB operand is displayed _Operand identifier Instruction S LDB IB Subsequent cursor ED position 4 1 Operand offset 1 is displayed in the entry field for operand offsets 5 The cursor is positioned in the entry field for the second operand 6 Q SM The QB operand is displayed and a comma is generated Operand identifier Instruction i LDB IB1 QB lt Subsequent cursor ED position 7 1 Operand offset 1 is displayed in the entry field for the second operand offset Terminate entry PG 702 Programming Device 5 10 C79000 G7076 C709 01 Editing STL Programs 5 5 Using the Display for Editing PG 702 Display The PG 702 display shown below gives you information about your S7 200 program instruction and the PG 702 function being performed The display is subdivided in two lines e Instruction line e Information line A 10 1 Instruction line ED 1 99 S Information line Instruction Line The instruction line consists of an instruction and its operands e The instructions are displayed in their full length e The operand identifier is the first part of the operand e The operand size is the second par
12. 2 3 Mounting the PG 702 in a Panel or Cabinet Door Warning Failure to disable all power to the PG 702 and related equipment during installation or removal procedures may result in electrical shock Electrical shock can cause death or serious personal injury and or damage to equipment Disconnect all power to the PG 702 and related equipment before installation or removal The PG 702 is prepared for permanent mounting in a panel or cabinet door To do this proceed as follows 1 Make a standard cutout to DIN 43700 138 mm x 68 mm 5 2 in x 2 7 in in the panel 2 Remove the three screws on the rear of the PG 702 see Figure 2 4 3 Detach the rear panel 4 Remove the center piece from the self adhesive spacer rings supplied and stick the rings over the drilled holes for the screws on the rear of the casing as required for your mounting No ring for metal thicknesses up to 0 3 mm 0 012 in One ring for metal thicknesses of 0 3 mm to 1 5 mm 0 012 in to 0 06 in Two rings for metal thicknesses of 1 5 mm to 4 mm 0 06 in to 0 16 in 5 Guide the front part of the casing into the cutout in the panel 6 Push the rear panel onto the casing 7 Fix the PG 702 in position with the screws and slightly tighten the screws Spacers as required Back Front A Lag Beith a ea ef oe eee zi Seana hy aaah Panel Adhesive side toward right
13. message if you make an invalid entry Shift Key Use the Shift key to change the function of keys that have both a blue anda white label The blue left label or the label on the key shows the default meaning of the key The white right label shows the meaning of the key when you press and release the Shift key first For other keys the Shift key also affects the function even if there is no additional label on the key For example Shift in the user program editor means move the cursor to the next operand type or operand offset See page 5 8 CLR Key Pressing the cLR key while you are editing a program element or variable causes the following different operations depending on the cursor position e On the instruction position of an unmodified statement the CLR key clears the entire line e On the operand type position the CLR e On the operand offset position the key clears the whole operand CLR key only clears the digit under the cursor All remaining digits of the operand are shifted one position to the left During non edit operations the CLR to the PG menu key escapes the operation and returns you During other functions the _ cir key terminates that function If you are prompted for a response to a question the CLR
14. 4 2 Startup Starting Up the PG 702 Password Protection As soon as the PG 702 is powered up it identifies itself with the following message PG702 VERSION x y When this message disappears the PG menu is activated and replaces the identifier message 1 CPU PROGRAM BLOCK gt 2 CPU CONFIGURATION gt Password Protection You can use a password for the CPU to restrict access to functions that you specify The password allows only authorized persons to access the CPU functions and the CPU memory There are various protection levels preventing access to the CPU in varying degrees Please refer to the SIMATIC S7 200 Programmable Controller System Manual for explanations of the individual protection levels Password Prompt If a function is protected by a password the PG 702 displays the message NEED PASSWORD Confirm the message by pressing the key Use the ENTER PASSWORD function to enter your password See Section 4 11 for the input sequence PG 702 Programming Device C79000 G7076 C709 01 4 9 Working with the PG 702 4 3 Working with Menus Using Menus Some functions in the vaious PG 702 operating states must be selected by using a menu You cannot select these functions directly with a key Selecting a Function from a Menu The number of functions a menu contains can vary If there are more functions than can be displayed in both lines you can
15. key is the no answer The key is a yes answer to a question and acknowledges error messages Use Shift CLR to undo an operation or escape a function PG 702 Programming Device C79000 G7076 C709 01 Working with the PG 702 Keys for Entering Instructions 4 4 The group of keys for entering instructions is located under the display These keys are active only while you are editing and are sometimes assigned two functions These functions activate selection menus for special instructions They can also be used to enter instructions directly There are four different ways to enter instructions Table 4 1 illustrates each of the four entry methods Table 4 1 Four Ways to Enter Instructions Instruction A ANx Key Entry Process Use the key assigned to a specific instruction AN A ANx A ANx Press the key assigned toa specific instruction twice to enter the NOT instruction AB Shift A ANx 3 Use shift and the specific instruction key to view a menu with all versions of the specified instruction ANDB Menu Use the Menu button to select instructions that are not printed on the keys Section 5 3 contains the detailed description for entering instructions Appendix A contains the description of all instructions PG 702 Prog
16. 4 2 Example of a Menu Sequence c cece cece tenes 4 3 Defining the Beginning of a Retentive Range 2 00 4 4 Defining the End of a Retentive Range 00ee ee eeeeeee 4 5 Viewing the Default Operand 0 000 eee eee eee 4 6 Sample of I O Groups 000 cece eee teens 4 7 DP Status Parameter Screens 0 cece cece ees 4 8 View of a Data Block Value 0 000 eee teens 4 9 Sample View of the Read I O Configuration Display 4 10 Write Time of Day Screens 000 cece eee 5 1 Keys for Entering Instructions 0 0 c eee eee ees 5 2 Keys for Entering Operand Identifiers and Operand Offsets 5 3 Sample Instruction Line with Character Spacing 0 5 4 Sample Information Line with Supplementary Information B 1 Sample ASCII Character Displays 00 cece eee e eee eee B 2 Scrolling through the Second ASCII Character Menus D 1 PPlilntemace i cvans ciate aes IEPENE ANENA EPEN hd PG 702 Programming Device 7 C79000 G7076 C709 01 VI List of Tables List of Tables 3 1 Uploading a Program from a CPU 06 ccc cette 3 2 Clearing an Existing Program Block and Uploading the Program 3 3 Using the Function Key to Download a Program to the CPU 3 4 Using the PG Menu to Download a Program to the CPU 4 1 Four Ways to Enter Instructions
17. 9600 or 19200 2 4 5 SET LANGUAGE gt Sets the display and mnemonic 2 5 language 6 SET BEEP VOLUME Sets the beeper loudness 2 6 7 CAPABILITY LEVEL gt Sets access to restricted or unrestricted 2 7 1 UNRESTRICTED Sets the access to unrestricted 2 7 1 PG 702 Programming Device C79000 G7076 C709 01 4 45 Working with the PG 702 Exiting the Restricted Mode 4 46 To unrestrict the access level to your PG 702 press PG Menu 2 vi 1 The PG 702 displays the following 0 ENTER PASSWORD Enter your PG password and press The PG 702 now displays the normal PG menu 1 CPU PROGRAM BLOCK 2 CPU CONFIGURATION PG 702 Programming Device C79000 G7076 C709 01 Working with the PG 702 4 11 PG Menu 7 Passwords Use the CPU PASSWORDS function shown in Table 4 16 to enter a CPU password to gain access to the CPU services Table 4 16 Passwords Function Menu Text on Display Description of Function Key Sequence 7 PASSWORDS gt Enter or modify the password 7 1 ENTER PASSWORD Enter user password log in to 7 1 CPU 2 NEW CHNG PASSWORD Change or create a new 7 2 password 3 DELETE PASSWORD Delete the password use 7 3 default password 4 PASSWORD LOGOUT Release the password log 7 4 out from CPU
18. C 1 test and commissioning C 1 Error messages display 5 13 Example clearing an existing program 3 5 entering instructions 4 6 of ASCII entry B 4 powering up setting the PG 702 3 2 Example of menu sequence Exiting restricted mode 4 46 Find CPU address 4 42 FIND function activating 5 17 Flash operations 4 30 FLOAT data format 4 28 Floating point numbers 6 4 Force values valid keys for modif ing 6 5 Force variable adding a new Forcing variables 6 5 Function selecting from menu 4 10 Functionality of the PG 702 PG 702 Programming Device C79000 G7076 C709 01 Index Functions Clear CPU to We mory CPU data block 4 momy 36 Debug Read Write Variables nn DP Port Parms Flash Oparo Passwords 4 47 _ PG configuration Port 0 4 22 Port 0 eee CT 4 16 16 Port 1 4 23 4 23 Retentive ranges G GoTo Network or line number 5 16 Green keys 4 7 H Handling Electrostatic Sensistive Devices D 5 Instructions AND Conversion A 9 Counter Timer Data Move entering entering with a selection menu 5 7 entering without menu 5 5 LOAD mathematical misosilanaoustA T miscellaneous control OR Return Rotate and Shift Shift and Rotate A 8 Sia eae Table Timer Counter A 5 via menu Word logic INT data format 4 281 Interrupt instructions PG 702 Programming Device C79000 G7076 C709 01 HEX data format 4 28 I O groups s
19. ESD PG 702 Programming Device C79000 G7076 C709 01 D 1 Technical Specifications and Hardware D 1 PG 702 Specifications The specifications for the PG 702 are shown in Table D 1 Table D 1 Technical Specifications for the PG 702 PG 702 Performance Data Order number 6ES7 702 0AA01 0YA0 Dimensions H x W x D 72 mm x 144 mm x 27 mm 2 8 in x 5 6 in x 1 1 in Weight approx 0 25kg 0 55 Ib Display STN display 2 lines of 20 characters each 5 mm line height LED backlighting normal temperature range Keyboard Silicone elastomer keyboard 33 keys Programmer interface PPI interface RS485 interface Supply voltage Vn 24VDC 1 12VDC to 32VDC safety extra low voltage The PG 702 has no integral protection against high energy spurious pulses in the us range surge If no relevant protective measures are provided for the power supply a surge arrester should be connected in series Current consumption In Typically 70 mA max 100 mA at Vy 24 V no fuse in the PG 702 Degree of protection IP 30 Safety VDE regulation VDE 0805 EN 60950 IEC 950 Noise emission lt 45dB A to DIN 45635 no fan Emitted interference Limit class B to VDE 0875 T11 x EN55011 Electromagnetic Compatibility EMC wa Conducted interference on DC 2kV to IEC 801 4 burst supply lines 1kV 2 to IEC 801 5 us pulse lin
20. Repeatedly Display CPU WW FUNCTIONS 5 CPU FUNCTIONS gt 6 PG CONFIGURATION gt 3 5 Select the CPU FUNCTIONS menu 1 PUT CPU IN RUN 2 PUT CPU IN STOP 4 Scroll through the CPU functions 3 CLEAR CPU MEMORY gt 4 CPU MEM gt MEM CRT 5 3 Select CLEAR CPU memory 1 CLEAR ALL 2 CLEAR PROG BLOCK 6 2 Select CLEAR PROG BLOCK CLEAR IN CPU 7 al Confirm your selection to clear the 1 CPU PROGRAM BLOCK gt CPU program block memory and return 2 CPU CONFIGURATION gt to the PG menu 8 1 Activate CPU PROGRAM BLOCK 1 UPLOAD FROM CPU menu 2 DOWNLOAD TO CPU PG 702 Programming Device C79000 G7076 C709 01 3 5 Creating a Sample Program Table 3 2 Clearing an Existing Program Block and Uploading the Program Key Function Display 9 1 Upload the program from the CPU If your PG 702 contains a program REPLACE PROGRAM the REPLACE PROGRAM message appears 10 a Confirm your selection to upload the empty program from the CPU to the ED 1 1 PG 702 You can now create a new program as shown in the example on the following pages PG 702 Programming Device 3 6 C79000 G7076 C709 01 Creating a Sample Program 3 3 Sample Task This sample program cyclically increments a memory word MW1 Only the contents of the higher order memory byte MB1 are forwarded to the outputs of the programmable
21. Shift LD LDx 6 1 2 LDR lt Loads result bit value of real comparison Shift LD LDx 6 2 lt 3 LDR gt Loads result bit value of real comparison Shift LD LDx 6 3 gt PG 702 Programming Device A 4 C79000 G7076 C709 01 Overview of Menus and Instruction Sets Table A 5 Timer Counter Instructions Instruction Function of the Instruction Key Sequence TON Starts timer as on delay TMR TONR Starts timer as retentive on delay TMR TMR CTU Counts upwards CTR CTUD Counts upwards downwards CTR CTR HSC Activates fast counter CTR CTR CTR HDEF Defines mode for fast counter CTR CTR CTR CTR PG 702 Programming Device C79000 G7076 C709 01 A 5 Overview of Menus and Instruction Sets A 2 Instruction Set Menus The structure of the following menus activated by the Menu key has three levels You can move between the individual levels in various ways e Between the instruction types of levels 1 to 3 using the numerical keys e Between the individual instruction types of level 2 using the following keys All instructions and the relevant key combinations you have to enter for the display of these instructions are listed in the following tables For general information on these instructions refer to Section 5 3 Program Control Menu Table A 6
22. System data block editing 1 3 T Table instructions A 8 Technical Assistance req uesting iv Technical specifications D 2 Terminating an entry 5 14 Test and commissioning errors C 1 Time of Day Clock valid keys to modify 4 38 Timer Counter instructions Ae Troubleshooting E 1 Index 5 Index U WwW UINT data format 4 28 Warnings display 5 13 Unforcing White Key 4 7 a single variable 6 7 Word Logic instructions A 9 all variables Write Time of Day Clock screens variables 6 5 Writing Status Chart variables Upload a program from CPU 4 14 Uploading an existing CPU program to PG 24 i Uploading CPU program to PG 702 3 4 Yellow ke Uploading from CPU Yes ke Using the PG 702 1 2 a PG 702 Programming Device Index 6 C79000 G7076 C709 01 Siemens AG A amp D AS E46 Oestliche Rheinbrueckenstr 50 D 76181 Karlsruhe Federal Republic of Germany From YourName YourTitle Company Name Street City Zip Code Country Phone Please check any industry that applies to you Automotive Chemical Electrical Machinery Food Instrument and Control Nonelectrical Machinery OuUuUdQddvdae YO Petrochemical PG 702 Programming Device 6ES7702 0AA01 8BA0 01 OoOoddd dg Pharmaceutical Plastic Pulp and Paper Textiles Transportation Other Remarks Form Your comments and recommendations will help us to imp
23. to the non volatile memory of the PG 702 If the program block data block CPU configuration and output table exist in the CPU the PG 702 stores the data to the PG flash memory Before reading the blocks from the CPU the PG 702 erases the entire flash memory This ensures that any old data is destroyed However because the PG 702 erases the original flash memory you cannot return to the old flash memory program if there is a problem with the uploads from the CPU The blocks are uploaded and stored to flash memory in the following sequence 1 Program block 2 Data block 3 CPU configuration 4 Output table data If there is a communication error at any point in the operation the copy to flash memory is aborted and the PG 702 displays the communication error The flash memory retains whatever was uploaded before the communication error occurred PG 702 Programming Device C79000 G7076 C709 01 Working with the PG 702 PG Flash to CPU Memory PG Menu 4 2 The second flash function PG FLASH gt CPU MEM downloads the entire program from the non volatile memory of the PG 702 to the S7 200 CPU First the PG 702 checks to see that there is at least one block stored in the PG flash memory If a CPU program has ever been copied to PG flash memory there will at least be CPU configuration information present in the flash memory even if there is no program block or data block The program block is copi
24. 000 eee eee 4 10 4 4 Operating Modes of the PG 702 2c c cece eee eee eee 4 12 4 5 CPU Program Block 000 cece eee nett eeeeeeeee 4 14 4 6 CPU Configuration 00 c cee eee 4 16 4 7 CPU Data Block es nises anani cece teens 4 26 4 8 Flash Operations 6 tte nee es 4 30 4 9 GPU FUNCIONS ceeiaend clita gone a Mi eee ha geet dhe eee 4 35 4 10 PG Configuration seta sii nae sateen neta d a a a aad eda wake eal eet 4 41 4 11 PaSSWOMdS airsan rE Pietiad i dade ieee ds bAbv E ehokigd hic 4 47 4 12 Debug Read Write Variables 0000 0 cece eens 4 50 PG 702 Programming Device C79000 G7076 C709 01 Vv Contents 5 Editing STL Programs 200cccecec eee cece ee ceeeeesesesenees 5 1 5 1 Using the Edit Functions 0 ccc enees 5 2 Setting the Edit Mode and Loading the Program into the CPU 5 3 Entering Instructions 0 0 eects 5 4 5 4 Entering Operands 0000 c cece tee e eee 5 8 5 5 Using the Display for Editing 0 cece eee 5 12 5 6 Using Editing Aids 0 eects 5 15 5 7 GOTO Network or Line Number 2 2 0 000 eee eee eee eee 5 16 5 8 Find Operand or Instruction 0 000 cece eee eee eee es 5 17 6 Debugging and Testing the Program 00eceee eee e eee eee eens 6 1 Debug FunctionS 6 keene 6 2 6 2 Stats CHAM garrie er a parte ieee pe eae emet pale S 6 3 6 3 Forcing and Unforcing Variables and W O
25. 01 A 9 Overview of Menus and Instruction Sets Table A 14 Data Move Instructions Instruction Function of the Instruction Key Sequence 1 MOVB Transfers a byte Menu 6 1 2 MOVW Transfers a word Menu 2 3 MOVD Transfers a double word Menu 6 3 4 MOVR Transfers a real number double word Menu 6 4 5 SWAP Exchanges the bytes of a word Menu 6 5 6 BMB Transfers specified number of bytes Menu 6 6 7 BMW Transfers specified number of words Menu 6 7 8 BMD Transfers specified number of double words Menu _ 6 8 9 FILL Fills memory with bit pattern Menu 6 9 Table A 15 Stack Instructions Instruction Function of the Instruction Key Sequence 1EU Positive edge recognition Menu 7 1 2ED Negative edge recognition Menu 7 2 3 ALD ANDs the first and second stack levels Menu _ 7 3 4 OLD ORs the first and second stack levels Menu 7 4 5 LPS Duplicates top of stack value Menu 7 5 6 LRD Copies second stack value Menu 7 6 7 LPP Shifts top of stack value from the stack Menu _ 7 7 8 NOT Inverts top of stack value Menu 7 8 A 10 PG 702 Programming Device C79000 G7076 C709 01 Overview of Menus and Instruction Sets Table A 16 Mathematical Instructions
26. 1 2 FORCE I O Force I O 8 2 2 3 UNFORCE ALL VARS Unforce all variables and 8 2 3 O 3 SINGLE SCAN Execute single scan 8 3 PG 702 Programming Device C79000 G7076 C709 01 This chapter explains how to edit lines of STL instructions how to display Editing STL Programs instruction lines and how to use editing aids such as insert delete and find Chapter Overview PG 702 Programming Device C79000 G7076 C709 01 Section Description Page 5 1 Using the Edit Functions 5 2 5 2 Setting the Edit Mode and Loading the Program into the CPU 5 3 5 3 Entering Instructions 5 4 5 4 Entering Operands 5 8 5 5 Using the Display for Editing 5 11 5 6 Using Editing Aids 5 14 5 7 GOTO Network or Line Number 5 15 5 8 Find Operand or Instruction 5 16 5 1 Editing STL Programs 5 1 Using the Edit Functions Editing Programs Keys To edit an existing program connect the PG 702 to the CPU and press the PG Menu 4 1 key sequence CPU PROGRAM BLOCK UPLOAD FROM CPU This loads the program to the PG 702 and sets the PG 702 to program block edit mode All modifications of the program are first made in the PG 702 You must then download the program to the CPU In the program block edit mode you can enter instructions and operands using designated keys A given key is activated depending on the cursor position Sections 5 3 and 5 4 contains more
27. 4 8 Table 4 8 CPU Data Block Functions Menu Text on Display Description of Function Key Sequence 3 CPU DATA BLOCK gt Manipulate CPU data block DB1 3 1 UPLOAD FROM CPU Upload data block from CPU and 3 1 enter data block editor 2 DOWNLOAD TO CPU Download data block from PG 3 2 memory to CPU memory 3 EDIT DATA BLOCK Enter data block editor 3 3 PG 702 Programming Device C79000 G7076 C709 01 Working with the PG 702 Uploading from the CPU To upload the data block from the CPU ensure that the PG 702 is connected to the CPU and select the first CPU data block function UPLOAD FROM CPU The PG 702 executes a data block upload from the CPU If a data block is found in the CPU the PG 702 starts the data block editor and displays the first value in the data block VWO as shown in Figure 4 8 Operand Identifier Size Offset VWO DE 0 Value Figure 4 8 View of a Data Block Value The PG 702 uploads the data block that is defined in the CPU For example if only four bytes are defined the PG 702 uploads four bytes The data block size that is downloaded is the size of the permanent area of the V memory of the attached CPU If for example the PG 702 is connected to a CPU 216 and the data block defined is four bytes the PG 702 uploads four bytes and downloads 5120 bytes If a data block is not present the following is displayed
28. CLR key the function is cancelled and the display returns to the main PG menu PG 702 Programming Device C79000 G7076 C709 01 Overview of Menus and Instruction Sets A Instructions are entered in one of three ways depending on the individual instruction Enter commonly used instructions like LD OUT and AND directly from the keyboard using the _LD_ and AND keys respectively Enter negated or similar versions of commonly used instructions like LDN ON AN directly from the keyboard by pressing the _LD _ _ and AND keys twice Enter variations of these instructions such as LD Immediate or AND Immediate by pressing Shift and the appropriate _LDx or _ANx keys This brings up a menu of instructions from which to choose Access other instructions by pressing the Menu key This action brings up a list of instruction categories Enter the appropriate numerical value corresponding to the proper instruction category A gt character at the end of the line means the category is subdivided This appendix contains tables with complete listings of all instructions assigned mnemonics and keystrokes to access the instructions as well as the instruction set menus For a quick reference for all instructions in alphabetical order see the last page of this manual Chapter Overview Section Desc
29. CLR key 4 7 Access capabilities password Adding a new force variable 6 6 Address direct entry 5 10 entering identifiers 5 8 keys 4 6 multiple 5 11 Address value AND instructions Approbation ASCII characters B 1 sample character display B 3 ASCII characters entering B 2 Assistance requesting technical C Capability level 4 44 Clear CPU Memory 4 36 Clearing an existing program 3 5 Clocktime errors CLR key 4 3 aborting an entry 4 7 Colors of key 4 7 Commissioning and test errors C 1 Compare Program in Flash to Program in CPU Memory 4 33 Configuration functions Output Table 4 16 Port 1 parameters Set input filters 4 16 Configuration functions for CPU 4 16 ee a PG 702 2 2 3 2 Constants 5 2 PG 702 Programming Device C79000 G7076 C709 01 Conversion instructions A 9 Copy CPU memory 4 36 Counter Timer instructions A 5 CPU compatibility 4 34 downloading data to 4 27 downloading program to 4 15 upload program from 4 14 uploading program to PG 702 3 4 CPU configuration functions 4 16 CPU Data Block CPU functions 4 35 Copy CPU Memory 4 36 Put CPU in RUN STOP 4 36 Read CPU error 4 40 Read CPU Version 4 40 Read I O Configuration 4 37 Read Write Time of Day Clock 4 38 CPU program block 4 14 editing 1 3 Creating a new program 3 4 Creating a program 5 3 Creating a program 1 3 Cursor position 4 7 po
30. CPU Address PG Menu 6 1 To find the CPU address within the PG configuration press PG Menu 6 1_ The PG 702 displays the current CPU address Press any key to return to the PG menu Note If the PG 702 and CPU are set to different baud rates the PG 702 reports CPU NOT FOUND Change the PG 702 baud rate see below and try to find the CPU address again Select CPU Address PG Menu 6 2 To select a CPU address within the PG configuration that you want to communicate to press PG Menu 6 2_ Enter the CPU address you want to select and press T to save the value and return to the PG menu Set PG Address PG Menu 6 3 To set your PG address press PG Menu 6 3__ Enter the address you want and press to write the address and return to the PG menu Set Baud Rate PG Menu 6 4 To set the baud rate press PG Menu 6 4 Press __1 to select a baud rate of 9600 Press 2 to select a baud rate of 19200 Press lt 4 to confirm your selection and return to the PG menu PG 702 Programming Device 4 42 C79000 G7076 C709 01 Working with the PG 702 Set Language PG Menu 6 5 English is set at the factory as the default language To change the language press P
31. The sixth character in row 7 is selected This character is displayed at the cursor position 4 Terminate your entry The new character is included in the lt instruction line PG 702 Programming Device C79000 G7076 C709 01 Error Codes This appendix contains the error codes that can appear on the PG 702 display On the PG 702 display the second line is used as a message line to display errors or other important information Press the lt 4 key to acknowledge the error message and clear the display Table C 1 Protocol Errors 80xx 80 XX Protocol Error 80 01 Not permitted in this operating mode 81 04 Context is not supported error in PDU structure service unknown 84 04 Client or Server has detected a serious error 85 00 Wrong PDU size Table C 2 Test and Commissioning Errors DOxx DO DO XX A1 Test and Commissioning Functions Function not permitted in current protection level Table C 3 Object Management System Errors D2xx D2 XX Object Management System Functions D2 01 Syntactical error in the block name D2 02 Syntactical error at function parameters D2 03 Error at block type D2 07 Block already present on EEPROM D2 09 Block is not present D2 oD SDB cannot be evaluated D2 OF CPU specific maximum block size exceeded D2 30 Wrong resource indication block longer than in block
32. Y keys to scroll through the parameters shown in Figure 4 7 Press CLR or Shift CLR to cancel this function DP STATUS 2 Press _ MASTER ADDRESS 1 Press OUTPUT BUFFER ADR 5000 Press _ SIZE OUTPUT BUFF 64 Press SIZE INPUT BUFF 16 Figure 4 7 DP Status Parameter Screens Refer to the SIMATIC S7 200 Programmable Controller System Manual for a description of the DP status values PG 702 Programming Device C79000 G7076 C709 01 4 25 Working with the PG 702 4 7 4 26 CPU Data Block PG Menu 3 You can use the PG menu function CPU DATA BLOCK to manipulate the CPU data block The data block is often referred to as DB1 and is used for configuring V memory Regardless of the existence or size of the current data block in the CPU the PG 702 data block editor always allows edits and downloads of data blocks equal to the full range of the permanent portion of V memory For some CPUs this is the full amount of V memory for other CPUs this is a subset of V memory Refer to the S7 200 Programmable Controller System Manual for CPU specific information regarding the size of permanent V memory area From the PG menu select 3 to access the menu for the functions shown in Table
33. change the format of a variable toggle the Shift V Cx keys after you enter the value field and before you start editing The following formats are available e Integer e Unsigned integer e Hexadecimal e Floating point 6 6 PG 702 Programming Device C79000 G7076 C709 01 Debugging and Testing the Program Unforcing a Single Variable To unforce a single variable use the key to scroll to the variable you want to unforce Press FCT 1__ The variable in the CPU is no longer forced The PG 702 displays the PG menu Unforce All Variables Select the UNFORCE ALL VARIABLES function to unforce all forced variables and I O When you select this function the following message is displayed UNFORCE ALL Press the key to unforce all variables and I O Press the CLR key to cancel the function and leave the force status as it is PG 702 Programming Device C79000 G7076 C709 01 6 7 Debugging and Testing the Program 6 4 6 8 Single Scan Debug Function PG Menu 8 3 A single scan may be executed when the S7 200 CPU is in the STOP mode When SINGLE SCAN is selected you are prompted to press single scan SINGLE SCAN lt to execute a After you press the command is executed and the function is cleared If you press the
34. debugging and troubleshooting programs created with the PG 702 Chapter Overview Section Description Page 6 1 Debug Functions PG Menu Function 8 6 2 6 2 Status Chart PG Menu Function 8 1 6 3 6 3 Forcing and Unforcing Variables and I O PG Menu Function 8 2 6 4 Single Scan Debug Function PG 702 Programming Device C79000 G7076 C709 01 6 1 Debugging and Testing the Program 6 1 6 2 Debug Functions PG Menu 8 Debug functions are intended to aid in troubleshooting the S7 200 system Debug functions include single scan forcing and unforcing I O and variables and reading and writing I O and variables A complete list of the debug functions available is shown in Table 6 1 Table 6 1 Debug Functions Menu Menu Text on Display Description of Function Key Sequence 1 STATUS CHART gt Read and write CPU variables 8 1 1 SETUP CHART Create monitor list of variables to 8 1 1 monitor 2 WRITE CHART VARS Write variables in monitor list 8 1 2 3 READ CHART VARS Read variables in monitor list 8 1 3 2 FORCE FUNCTIONS gt Forcing functions variable and I O 8 2 1 FORCE VARIABLES Force specified variables 8 2 1 2 FORCE I O Force specified bits 8 2 2 3 UNFORCE ALL VARS Unforce all variables 8 2 3 3 SINGLE SCAN Perform single scan operation 8 3 PG 702 Programming Devic
35. ee 6 5 6 4 Single Scan Debug Function 6 eee A Overview of Menus and Instruction Sets cece eee sete A 1 Logic Operations ps c eeeeriesee bist eed need eebeeaeeeaw ean A 2 A 2 Instruction Set Menus 0 000s cee teens A 6 A 3 Operands Kiaree denne Era EErEE E EEUE OTE EEEE EE E EAEE A 4 PG Menu Functions oc dicd ade dace nance nad daw bandana nial aaa B ASCII ClhhanaCtens isasun de otha Seite a a a waite eae thet ac Gea Cc Error Codes s2e 0i20e vi riet eae ieee ete he tee enee sere ee eo tae ees C 1 D Technical Specifications and Hardware 00 cece eee renee D 1 PG 702 Specifications 0 cece teens D 2 D 2 Programmer Cable PPI Interface for the PG 702 D 4 D 3 Handling Electrostatic Sensitive Devices ESD 4 D 5 D 4 APProbalion 2 oii nieh ase hee he oh ee ade ia ee ohoee ade ehte was D 7 E PG 702 Troubleshooting Guide c cece cece eee eee E 1 Ndek cocroodereienaa ri i a a lene a Naa aN PG 702 Programming Device VI C79000 G7076 C709 01 List of Figures List of Figures 2 1 PG 702 Connections 00 aaaea nanne 2 2 PG 702 Keyboard Overlay for International Mnemonics 2 3 PG 702 Keyboard Overlay for SIMATIC Mnemonics 2 4 Mounting the PG 702 ina Panel 0 0c c cece eee ee 3 1 Display at Start Up 2 0 eke nee 4 1 PG 702 Keypad and Display 6 00 c cece eee tenes
36. from the uploaded CPU configuration to the corresponding fields stored in the configuration structure from the PG flash memory Only those fields present in the uploaded CPU configuration are compared If a field does not exist in the connected CPU that field is not compared to the values in flash memory The output table data is always compared whether or not a CPU configuration exists PG 702 Programming Device C79000 G7076 C709 01 4 33 Working with the PG 702 Compatibility 4 34 To increase compatibility between older and newer versions of the same model of CPU the PG 702 reads the default CPU configuration from the CPU before downloading and updates all common features Features in the CPU configuration that are not supported are ignored Programs are upwardly compatible between CPU models See Table 4 11 Table 4 11 Compatibility Between CPU Models Original CPU Target CPU CPU 212 CPU 214 CPU 215 CPU 216 CPU 214 CPU 215 CPU 216 CPU 215 CPU 216 Programs are downwardly compatible between CPU models for example from a CPU 216 to a CPU 212 only when common feature sets are used and when program sizes allow PG 702 Programming Device C79000 G7076 C709 01 Working with the PG 702 4 9 CPU Functions PG Menu You can select the CPU functions to make CPU mode changes clear or copy the CPU memory read the I O configuration read and set the time of day clock and read CP
37. function range of the PG 702 Chapter Overview Section Description Page 1 1 Using the PG 702 1 2 1 2 Programming with the PG 702 The PG 702 is a programming device for the SIMATIC S7 200 family of CPUs It has a two line display You can use the PG 702 to modify the program in the CPU change the CPU configuration edit the data block of the CPU store the entire CPU program in the non volatile flash memory of the PG 702 and change the mode of the CPU In addition it performs several auxiliary functions that are detailed in this manual PG 702 Programming Device C79000 G7076 C709 01 1 1 Introduction to the PG 702 1 1 Using the PG 702 The main application areas are as follows Create modify the statement list program Modify the CPU configuration Create modify the CPU data block Test your program in an S7 200 Transfer the entire CPU program to or from the PG 702 non volatile memory Change the mode of the CPU Mounting the PG 702 permanently in a panel or cabinet door makes it possible for you to install a stationary programming device that is permanently connected to an S7 200 and easily accessible to perform necessary service PG 702 Language You can set the PG 702 to any of the following languages German English French Italian and Spanish You can use both SIMATIC and international mnemonics Functionality Use the PG 702 to perform the following tasks Create a new program or chang
38. header resource details D2 40 Coordination rule violated D2 41 Protection level of function not sufficient PG 702 Programming Device C79000 G7076 C709 01 C 1 Error Codes Table C 4 Password Protection Errors D6xx D6 XX Protection Functions D wawa Syntax error at function parameters D6 02 Wrong password entered D6 03 Connection already legitimized D6 04 Connection already enabled D6 05 No legitimization possible because no password present Table C 5 Clocktime Errors DCxx DC XX Clocktime Functions DC 01 Error in date and time of day indication Table C 6 Error of PPI DRV FFxx FF XX Error of PPI DRV FF 0 Timeout on Layer 7 FF 01 Error at connection establishment FF 02 Length of block name 9 FF 03 Invalid block type FF 04 Invalid block number FF 05 Invalid block status FF 06 Block name does not correspond to conventions FF 07 No memory FF 08 Precondition for Read Status does not exist FF 09 No further block info available FF 0A Error at reading setting CPU time FF 0B No result data arrived FF FO CPU Get Data without result PG 702 Programming Device C 2 C79000 G7076 C709 01 Technical Specifications and Hardware D This appendix contains the technical specifications and hardware information for the PG 702 It also gives guidelines for handling Electrostatic Sensitive Devices
39. key to confirm your entry The value is immediately downloaded to the CPU If you select __ 2 SET BAUD RATE the following display appears BAUD RATE 1 1 9600 2 19200 Select 1 or 2 and press the lt 4 Press Shift CLR to cancel the operation key to confirm your entry Note The highest station address retry count and gap update factor parameters can generally remain the default factory set values unless you want to attempt advanced networking PG 702 Programming Device C79000 G7076 C709 01 Working with the PG 702 Setting the Port 1 Parameters PG Menu 2 5 Use the PORT 1 PARAMETERS function to set the port 1 attributes After you select 5 from the CPU configuration menu scroll through the display to select the functions shown in Table 4 7 Table 4 7 Port 1 Parameter Functions Menu Text on Display Description of Function Key Sequence 5 PORT 1PARAMETERS gt Set read port 1 parameters fa 5 1 SET PORT 1 ADDR Set read station address 2 5 1 2 SET BAUD RATE Set read baud rate 2 5 2 3 SET HSA Set read highest station address 2 5 3 4 SET RETRY COUNT Set read retry count 2 5 4 5 SET GAP UPDATE Set read gap update factor 2 5 5 When you select an attribute the PG 702 displays th
40. persons who are au thorized to commission to ground and to tag circuits equipment and systems in accordance with established safety practices and standards Correct Usage Warning Note the following This device and its components may only be used for the applications described in the catalog or the technical description and only in connection with devices or components from other manufacturers which have been approved or recommended by Siemens This product can only function correctly and safely if it is transported stored set up and installed correctly and operated and maintained as recommended Trademarks SIEMENS and SIMATIC are registered trademarks of SIEMENS AG PG 702 STEP 7 and S7 are trademarks of Siemens AG Some of the other designations used in these documents are also registered trademarks the owners rights may be violated if they are used by third parties for their own purposes Copyright Siemens AG 1998 All rights reserved The reproduction transmission or use of this document or its contents is not permitted without express written authority Offenders will be liable for damages All rights including rights created by patent grant or registration of a utility model or design are reserved Siemens AG Bereich Automatisierungs und Antriebstechnik Geschaeftsgebiet Industrie Automatisierungssysteme P O Box 4848 D 90327 Nuernberg Disclaimer of Liability We have checked the
41. port 0 address 2 4 1 2 SET BAUD RATE Sets baud rate 2 4 2 3 SET HSA Sets highest station address 2 4 3 4 SET RETRY COUNT Sets retry count 2 4 4 5 SET GAP UPDATE Sets gap update factor 2 4 5 PG 702 Programming Device C79000 G7076 C709 01 Overview of Menus and Instruction Sets Table A 19 PG Menu Functions Menu Text on Display 5 PORT 1 PARAMETERS gt Description of the Function Key Sequence Sets reads port 1 parameters 2 5 1 SET PORT 1 ADDR Sets reads port 1 address 2 5 1 2 SET BAUD RATE Sets baud rate 2 5 2 3 SET HSA Sets highest station address 2 5 3 4 SET RETRY COUNT Sets retry count 2 5 4 5 SET GAP UPDATE Sets gap update factor 2 5 5 6 DP PORT PARMS gt Sets reads DP port parameters 2 6 1 SET DP PORT ADDR Sets the CPU station address 2 6 1 2 READ DP STATUS Reads DP status 2 6 2 3 CPU DATA BLOCK gt Edits Data Block 3 1 UPLOAD FROM CPU Uploads data block DB1 from CPU and 3 1 enter editor 2 DOWNLOAD TO CPU Downloads data block DB1 from PG 3 2 memory to CPU memory 3 EDIT DATA BLOCK Edits data block DB1 3 3 4 FLASH OPERATIONS gt Transfers and Compares 4 1 CPU MEM gt PG FLASH Transfers CPU memory to PG flash 4 1 2 PG FLA
42. the experienced control engineer Scope of the Manual This manual describes version 2 0 of the PG 702 programming device order number 6ES7 702 0AA01 OYAQ using the international mnemonics and keyboard overlay PG 702 Programming Device ae C79000 G7076 C709 01 IlI Preface How to Use This Manual If you are a first time user of hand held programmers you should read the entire manual If you are an experienced user refer to the table of contents or index to find specific information The manual includes installation and basic setup information as well as specific guidelines for working with the following three main CPU programming areas e CPU Program Block statement list program e CPU Configuration port configuration input filters retentive ranges e CPU Data Block data block Additional information such as technical information and a quick reference list of all menu functions and error codes is provided in the appendices Related Information Refer to the following documentation for more detailed information about selected topics SIMATIC S7 200 Programmable Controller System Manual provides information about installing and programming the S7 200 Micro PLCs including the following topics e Installing and wiring the S7 200 CPU and expansion I O modules and installing the STEP 7 Micro WIN software e Designing and entering a program e Understanding features of the CPU such as data types and addressin
43. the instruction LD LDx you are looking for AN 11 0 FIND LD 3 Start the search run aa Result of the search run e Instruction found The cursor is on the line that contains the specified instruction e Instruction not found The cursor remains in its previous position The NOT FOUND message appears in the information line Repeat To repeat the last FIND function follow these directions Activity Activate the FIND gt REPEAT function Key Sequence FCT 4 Result This function is only valid when a FIND function was previously invoked Otherwise the error message NOT FOUND is displayed The last FIND function is invoked again PG 702 Programming Device C79000 G7076 C709 01 5 17 Editing STL Programs Example Entering the Object You Are Searching For 5 18 When you activate a FIND function an entry field appears in the second line of the display AN 11 0 FIND e Enter the object instruction operand you are searching for after FIND e Enter operands with the same key strokes used when editing programs see Section 5 4 The located result appears in the first line of the display e Enter instructions with the same key strokes or menu numbers used when editing programs see Section 5 3 PG 702 Programming Device C79000 G7076 C709 01 Debugging and Testing the Program This chapter contains tips on
44. use the 4 or F key to scroll to display the hidden functions The same principle is applicable for all menus Within a menu you can press a numerical key to activate another menu if there is one You can also activate or select the menu item displayed in the upper line using the lt 4 key You can use the gt key or the key to move between the additional submenus Figure 4 2 shows an example of a menu sequence 1 AI 2 ANI 3 AWx 4 ABx B 5 ADx 3 5 y y y 1 AD 1 AB 1 AW These submenus 2 AD lt 2 AB lt 2 AW lt are displayed after you select them 3 AD gt 3 AB gt 3 AW gt gt lt gt lt Figure 4 2 Example of a Menu Sequence PG 702 Programming Device 4 10 C79000 G7076 C709 01 Working with the PG 702 Exiting a Menu You can exit the current menu in two ways e You can use the _0 key to return to the previous menu Depending on the level you are in press this key to return to the previous menu or press this key several times to return to the main menu PG menu e You can immediately return to the PG menu by pressing the CLR key Aborting an Entry You can abort an entry by pressing the Shift and CLR keys PG 702 Programming De
45. with the first two editing aids functions is displayed 1 INSERT 2 DELETE Scroll Editing Aids Available 5 14 The editing aids described in Table 5 2 are available after you press the FCT key The following sections contain additional information on GOTO and FIND Table 5 2 Editing Aids Function Key Explanation INSERT gt 1 Inserts a new blank line or network INSERT LINE 1 1 Inserts a new blank line in front of the current line in the program to be filled subsequently with an instruction INSERT NETWORK 1 2 Inserts a new blank network in front of the current network in the program to be filled subsequently with instructions DELETE gt 2 Deletes the current line or network DELETE LINE 2 1 Deletes the current line in the program and moves the cursor to the next line DELETE NETWORK 2 2 Deletes the current network in the program and moves the cursor to the next network GOTO 3 Goes to specified network and line number FIND gt 4 Search program OPERAND 4 1 Searches for operand INSTRUCTION 4 2 Searches for instruction REPEAT 4 3 Repeats last search DOWNLOAD TO CPU 5 Downloads program block to CPU PG 702 Programming Device C79000 G7076 C709 01 Editing STL Programs 5 7 GOTO Network or Line Number T
46. CPU Now you must download the completed program into CPU memory You can either use the FCT key see Table 3 3 or you can use the PG menu to save your program to the CPU see Table 3 4 Table 3 3 Using the Function Key to Download a Program to the CPU Key Function Display 1 FCT Access the editing age men 1 INSERT gt Repeatedly y Scroll through the 2 DELETE gt editing aids 5 Select DOWNLOAD TO CPU 4 FIND gt 5 DOWNLOAD TO CPU LOAD TO CPU 2 lt Download program Program is stored in the CPU Table 3 4 Using the PG Menu to Download a Program to the CPU Key Function Display 7 PG Menu Select the PG menu 1 CPU PROGRAM BLOCK gt 2 CPU CONFIGURATION gt 2 1 Activate CPU PROGRAM BLOCK 1 UPLOAD FROM CPU menu 2 DOWNLOAD TO CPU 3 2 Download the program to the CPU LOADING TO CPU PG 702 Programming Device 3 12 C79000 G7076 C709 01 Creating a Sample Program Starting Your Program Be sure the switch on your CPU is in the TERM position Using the PG 702 put the CPU in the RUN mode to start the completed program Key Function Display 1 PG sMenu Activate menu for Rep
47. G Menu 6 5 Press one of the following keys to make your language selection 1 German 2__ English 3_ French 4__ Italian 5 Spanish Press one of the following keys to select the mnemonic the choice appears after you select the menu language 1 SIMATIC 2_ International PG 702 Programming Device C79000 G7076 C709 01 4 43 Working with the PG 702 Set Beep Volume PG Menu 6 6 To set the beep volume press PG Menu 6 6 Press one of the following keys to make your selection 0 No volume 1__ Quiet beep 2__ Louder beep 3 Louder beep 4__ Loudest beep Press to confirm your selection and return to the PG menu Capability Level 4 44 PG Menu 6 7 Use this function to choose between two levels of access to the PG 702 e The restricted level allows the user to access only the PG Configuration menu and the Flash Operation menu Only two of the three flash functions are available in restricted mode PG Flash to CPU and Compare e The unrestricted level allows the user access to all the PG 702 functions This level is the default operating mode The PG 702 powers up at the access level it was in when power was lost If the PG 702 powers up at restricted access and you have forgotten your PG password press th
48. Key Functions The keys on the PG 702 are different colors and are grouped by function Table 4 2 lists the colors of the keys and their functions Table 4 2 Key Colors and Functions Color Key Function Yellow Pa e Return key for concluding or confirming functions e Answers yes to a yes no question Red CLR e Deletes the following items Complete lines Parts of a line depending on cursor position Entire entry fields e Answers no to a yes no question Shift CLR Aborts an operator input sequence ESC Restores original line White Shift Exclusively a Shift key after Shift is pressed the white functions above the other keys are activated S is displayed on the bottom right corner of the display Green gt lt e Moves within a line or moves in the y I menus e Scrolls from line to line lt _ e Changes from one menu to another Shift y or A Changes to another network Light Gray Instruction operand and menu Enters instructions in the STL editor keys Use the Shift key to change to the white instructions e Enters operands e Accesses various menus Dark Gray Number keys to the right of the Enters operand offsets in the STL display editor Use the Shift key to change to the white instructions e Enters values
49. Label Instructions Instruction 1 LABEL gt 1 JMP 2 LBL 3 CALL 4 SBR Function of the Instruction Label instructions Jumps to jump label Defines jump label Calls up subroutine Begins subroutine Key Sequence Menu 1 1 Menu 1 1 1 Menu 1 1 2 Menu 1 1 3 Menu 1 1 4 Table A 7 Return Instructions Instruction 2 RETURN gt 1 RET 2 RETI 3 CRET 4 CRETI Function of the Instruction Return instructions Unconditional return from subroutine Unconditional return from interrupt routine Conditional return from subroutine Conditional return from interrupt routine Key Sequence Menu 1 2 Menu 1 2 1 Menu 1 2 2 Menu 1 2 3 Menu 1 2 4 A 6 PG 702 Programming Device C79000 G7076 C709 01 Overview of Menus and Instruction Sets Table A 8 Interrupt Instructions Instruction Function of the Instruction Key Sequence 3 INTERRUPTS gt Interrupt instructions Menu 1 3 1 INT Starts interrupt routine Menu 1 3 2 DISI Disables all user interrupt events Menu 1 3 3 ENI Enables all user interrupt events Menu 1 3 4 ATCH Attaches interrupt routine to an Menu 1 3 event 5 DTCH Detaches interrupt routine
50. ORs result bit value of byte comparison Shift O Ox 3 3 gt 4 OWx gt Following instructions via OWx Shift O Ox 4 1 OW ORs result bit value of word comparison Shift O Ox 4 1 2 OW lt ORs result bit value of word comparison Shift O Ox 4 2 lt 3 OW gt ORs result bit value of word comparison Shift O Ox 4 3 gt 5 ODx gt Following instructions via ODx Shift O Ox 5 1 OD ORs result bit value of byte comparison Shift O Ox 5 1 2 OD lt ORs result bit value of byte comparison Shift O Ox 5 2 lt 3 OD gt ORs result bit value of byte comparison Shift O Ox 5 3 gt 6 ORx gt Following instructions via ORx Shift O Ox 6 1 OR ORs result bit value of real comparison Shift O Ox 6 1 2 OR lt ORs result bit value of real comparison lt Shift O Ox 6 2 3 OR gt ORs result bit value of real comparison gt Shift O Ox 6 3 Table A 3 Assignment Set Reset Instructions Instruction Function of the Instruction Key Sequence Assignment 1S Sets Shift 1 2R Resets Shift 2 3SI Sets bit value directly Shift 3 4 RI Resets bit value directly Shift 4 PG 702 Programming Device C79000 G7076 C709 01 A 3 Overview of Menus and Instruction Sets Table A 4 Load Instructions
51. P 7 Micro WIN or STEP 7 Micro DOS automatically create networks Such editors usually create many small networks within a program The PG 702 works with these large programs without difficulty Statement list editors in programming packages create programs in which the user must manually create networks This means that a program created using a statement list editor could contain one large network When the PG 702 uploads and displays a program it deals with one network at a time If the entire program is one network this network may be very large If the network contains more than 250 statement list instructions the PG 702 automatically breaks the network into two or more networks of 250 statement list instructions each Use the Shift __ key combination to switch networks and view the entire program You can edit these networks in the normal manner The PG 702 allows networks to grow to 349 statement list instructions After you enter the maximum number of statements the PG 702 beeps to indicate that it is out of memory and cannot accept any more statements into the current network If the network has reached the maximum size and you are inserting statements at the end of the network press Shift __ to go to the next network and continue PG 702 Programming Device C79000 G7076 C709 01 Working with the PG 702 If you are editing in the middle of the network and the network has reached
52. RAM BLOCK gt already displayed 2 CPU CONFIGURATION gt 2 1 Activate CPU PROGRAM BLOCK 1 UPLOAD FROM CPU menu 2 DOWNLOAD TO CPU 3 1 Upload the program from the CPU ED 1 1 If the program contained in the CPU is empty the display matches that shown in Step 3 in Table 3 1 If you upload a program that already contains instructions the first instruction line is displayed If the PG 702 already contains a program the message REPLACE PROGRAM is displayed Press for yes or Creating a New Program CLR for no If you upload a program that contains instructions the PG 702 shows the first instruction of your program in the first line of the display For example ED LD I0 0 To create a new program you must clear the program block in the CPU and upload the empty program block to the PG 702 Use the steps shown in Table 3 2 to clear the program block and upload it to the PG 702 PG 702 Programming Device C79000 G7076 C709 01 Creating a Sample Program Table 3 2 Clearing an Existing Program Block and Uploading the Program Key Function Display 1 PG Mend Return to the PG menu 1 CPU PROGRAM BLOCK gt 2 CPU CONFIGURATION gt 2
53. RITE TO CPU Press yes or no CLR Figure 4 10 Write Time of Day Screens PG 702 Programming Device C79000 G7076 C709 01 4 39 Working with the PG 702 Read CPU Version PG Menu 5 7 To read the software release version and the ASIC release select the READ CPU VERSION function Press any key to return to the main PG menu Read CPU Error PG Menu 5 8 To read a list of errors from the S7 200 CPU select the READ CPU ERROR function Press any key to return to the main PG menu NF 16 0000 PRESS ANY KEY F 16 0000 e NF Code for non fatal errors e F Code for fatal errors See the SIMATIC S7 200 Programmable Controller System Manual for a listing of the non fatal and fatal error codes and their descriptions 4 40 PG 702 Programming Device C79000 G7076 C709 01 Working with the PG 702 4 10 PG Configuration PG Menu Use the PG CONFIGURATION functions shown in Table 4 14 to find and select a CPU address and set the PG address baud rate language and beep volume You can also set the access capability level to restricted or unrestricted Table 4 14 PG Configuration Functions Menu Text on Display Description of Function Key Sequence
54. SH gt CPU MEM Transfers PG flash to CPU memory 4 2 3 CPU MEM PG FLASH Compares program in flash to program in 4 3 CPU 5 CPU FUNCTIONS Executes CPU functions 5 1 PUT CPU IN RUN Starts user program execution 5 1 2 PUT CPU IN STOP Stops user program execution 5 2 3 CLEAR CPU MEMORY gt Clears all user memory in the 87 200 5 3 CPU 1 CLEAR ALL Clears all user CPU memory 5 3 1 2 CLEAR PROG BLOCK Clears the program block in the CPU 5 3 2 3 CLEAR DATA BLOCK Clears the data block in the CPU 5 3 3 4 CPU MEM gt MEM CRT Copies CPU memory to CPU memory 5 4 cartridge 5 READ I O CONFIG Reads 1 O configuration 5 5 6 TIME OF DAY Reads writes CPU time of day clock 5 6 1 READ TIME OF DAY Reads the CPU time of day clock 5 6 1 2 WRITE TIME OF DAY Writes the CPU time of day clock 5 6 2 PG 702 Programming Device C79000 G7076 C709 01 A 17 Overview of Menus and Instruction Sets Table A 19 PG Menu Functions Menu Text on Display Description of the Function Key Sequence 7READCPUVERSION Reads software release and ASIC Pali release 8 READ CPU ERROR Reads error from 87 200 CPU 5 8 6 PG CONFIGURATION gt Modifies PG Configuration 6 1 FIND CPU ADDRESS Find S7 200 CPU
55. SIEMENS SIMATIC PG 702 Programming Device Manual This manual has the order number 6ES7702 0AA01 8BAO C79000 G7076 C709 Release 01 Preface Introduction to the PG 702 Installing the PG 702 Creating a Sample Program Working with the PG 702 Editing STL Programs Debugging and Testing the 6 Program Overview of A Menus and Instruction Sets ASCII Characters Error Codes i Technical Specifications and D Hardware PG 702 E Troubleshooting Guide Index Safety Guidelines This manual contains notices which you should observe to ensure your own personal safety as well as to protect the product and connected equipment These notices are highlighted in the manual by a warning triangle and are marked as follows according to the level of danger Danger ZN not taken indicates that death severe personal injury or substantial property damage will result if proper precautions are Warning ZN not taken indicates that death severe personal injury or substantial property damage can result if proper precautions are Caution AN indicates that minor personal injury or property damage can result if proper precautions are not taken Qualified Personnel The device system may only be set up and operated in conjunction with this manual Only qualified personnel should be allowed to install and work on this equipment Qualified persons are defined as
56. Shift Shift Positions the cursor to the beginning of the next instruction element Positions the cursor to the beginning of the previous instruction element Shift Shift Deleting Parts of an Instruction or Complete Instruction Lines Always use the CLR key to delete a part of or a complete instruction line The following items are deleted depending on the position of the cursor e Position the cursor at the beginning of the instruction or at the beginning of the operand identifier to delete everything to the right of the cursor e Position the cursor inside the operand offset or jump label to delete the character at the cursor location Terminating an Entry After you have made all of the necessary changes and additions you can terminate an instruction line entry with or Y The next line is displayed Canceling an Entry CLR key to clear the To cancel an entry in the current instruction line use the current instruction line Then use Shift CLR to restore the previous entry PG 702 Programming Device C79000 G7076 C709 01 5 13 Editing STL Programs 5 6 Using Editing Aids You have a number of functions available for editing your program in the program block edit mode Press the FCT key to activate the menus with the editing aids The selection menu
57. U release and error information Table 4 12 lists the CPU Functions available in the PG 702 Table 4 12 CPU Functions Menu Text on Display Description of Function Key Sequence 5 CPU FUNCTIONS gt Execute CPU functions 5 1 PUT CPU IN RUN Start user program execution 5 1 2 PUT CPU IN STOP Stop user program execution 5 2 3 CLEAR CPU MEMORY gt Clear user memory in the 5 3 7 200 CPU 1 CLEAR ALL Clear all user CPU 5 3 1 memory 2 CLEAR PROG BLOCK Clear the program block in 5 3 2 the CPU 3 CLEAR DATA BLOCK Clear the data block in the 5 3 3 CPU 4 CPU MEM gt MEM CRT Copy CPU memory to CPU 5 4 memory cartridge 5 READ I O CONFIG Read I O configuration 5 5 6 TIME OF DAY gt Read Write CPU time of day 5 6 clock 1 READ TIME OF DAY Read the CPU time of day 5 6 1 clock 2 WRITE TIME OF DAY Write the CPU time of day 5 6 2 clock 7 READ CPU VERSION Read software release and 5 7 ASIC release 8 READ CPU ERROR Read error from S7 200 CPU 5 8 PG 702 Programming Device C79000 G7076 C709 01 4 35 Working with the PG 702 Put CPU in RUN STOP PG Menu 5 1 or PG Menu 5 2 To change the CPU mode select a RUN STOP function To place the CPU in RUN press __1_ To place the CPU in STOP press __2__ Confirm your selection by pressing or can
58. _CLR e To clear an entire operand field place the cursor on the operand address identifier and press CLR The whole operand is then cleared to blank spaces and you can enter a new value After you configure all ranges press FCT 1__ to write them to the CPU PG 702 Programming Device C79000 G7076 C709 01 Working with the PG 702 Setting the Output Table PG Menu 2 2 Use the OUTPUT TABLE function to determine the behavior of the outputs when the CPU enters the STOP mode Whenever the CPU enters the STOP mode the output points of the CPU are either frozen at their current value or set to the value in the output table When you select 2 from the CPU configuration menu the PG 702 allows you to freeze the outputs or define the output table 1 FREEZE OUTPUTS 2 SET OUTPUT TABLE If you select 1 the outputs are to be frozen and you return to the PG menu If you select 2 the outputs are to be set to the values specified in the output table You can configure the state for each output by entering the hexadecimal number that represents the output states for the specified eight output points QBO 16 xx The cursor is positioned on the first x in the first line Enter a hexadecimal value and press the lt 4 key to confirm The cursor then moves to the next value You can also u
59. abcdefghij TEXT 1234567890 H ABCDEFGHIJ TEXT 1234567890 i S Q amp TEXT 1234567890 E Figure B 1 Sample ASCII Character Displays If you make the wrong selection in the first menu you can use the arrow keys to scroll through the three selection menus as shown in Figure B 2 If you select 4 in the first menu you will see this display ABCDEFGHIJ TEXT 1234567890 Hf KLMNOPORST TEXT 1234567890 H UVWXYZ TEXT 1234567890 Hf Figure B 2 Scrolling through the Second ASCII Character Menus PG 702 Programming Device C79000 G7076 C709 01 ASCII Characters Example of an ASCII Entry B 4 The following example shows you how you can use the ASCII character menu to display an ASCII character from the table in the PG 702 Task Display character ampersand Explanation Key How to activate the ASCII function Activate PG functions menu PG Menu Select menu with password functions 4 Activate a password function Select an ASCII function x ake es Set SPECIAL by pressing key Z Horizontal row 7 is selected from the ASCII character table and displayed in the following menu The position of the character is marked by digits in the second row of the menu 3 Now select the character by pressing key 6
60. address to 6 1 communicate to 2 SELECT CPU ADDR Select S7 200 CPU address 6 2 3 SET PG ADDRESS Set PG station address 6 3 4 SET BAUD RATE Set baud rate 9600 or 19200 6 4 5 SET LANGUAGE gt Set language once language is 6 5 selected select mnemonic 1 GERMAN gt Set the language displayed to 6 5 1 German 1 SIMATIC Set the mnemonic to SIMATIC 6 5 1 1 2 INTERNATIONAL Set the mnemonic to international 6 5 1 2 2 ENGLISH gt Set the language displayed to 6 5 2 English 1 SIMATIC Set the mnemonic to SIMATIC 6 5 2 1 2 INTERNATIONAL Set the mnemonic to international 6 5 2 2 3 FRENCH gt Set the language displayed to French 6 5 3 1 SIMATIC Set the mnemonic to SIMATIC 6 5 3 1 2 INTERNATIONAL Set the mnemonic to international 6 5 3 2 4 ITALIAN gt Set the language displayed to Italian 6 5 4 1 SIMATIC Set the mnemonic to SIMATIC 6 5 4 1 2 INTERNATIONAL Set the mnemonic to international 6 5 4 2 5 SPANISH gt Set the language displayed to 6 5 5 Spanish 1 SIMATIC Set the mnemonic to SIMATIC 6 5 5 1 2 INTERNATIONAL Set the mnemonic to international 6 5 5 2 6 SET BEEP VOLUME Set beeper loudness 6 6 7 CAPABILITY LEVEL gt Sets mode to restricted or unrestricted 6 7 1 RESTRICTED Sets the mode to restricted 6 7 1 PG 702 Programming Device A 18 C79000 G7076 C709 01 Overview of Menus and Instruction Sets Table A 19 PG Menu Functions Menu Text on Display Description of the Function Key Sequence
61. ample Information line edit mode 5 13 operating mode 4 8 Input delay time values Input filters setting 4 20 Instruction entry A 6 line 5 4 Instruction line 48 single line 5 12 Instruction Set menus overview rel A 1 K Key definitions T Data Block Editor 4 28 Key functions Key labeling 4 re Keypad colors of 4 7 key functions 42 address address values addresses 4 6 CLR key entering instructions 4 4 for entering operand types stucan fe meaning of colors 4 7 shift key 4 3 switching functions to modify Time of Day Clock 4 38 valid for modifying force information Index 3 Index L Label instructions A 6 Language of PG 702 setting the 1 2 Light gray key 4 7 Line number 4 8 Load instructions Logic operations A 2 Mathematical instructions A 11 Menu Debug function 6 2 example of sequence 4 10 exiting 4 11 instruction set overview PG functions Menu ee Menus with the ddiin aids activating 5 15 Messages confirming 4 6 system Miscellaneous control instructions A 7 instructions A 12 Mode identifier 4 8 Modes operating 4 12 Mounting the PG 702 N Network number 4 8 ee Password 4 48 No key O Object management system errors Operand 4 5 5 2 entering raivata S T0 entering multiple entry styles Operand offsets 5 9 Operating modes 4 12 identifier Or in
62. and or Instruction The tables on the following pages explain the keys you must press to activate the individual FIND functions Operand To find an operand in a program block follow these directions Activity OPERAND function Key Sequence Result 1 Activate the FIND gt FCT 4 AN 11 0 FIND The display shows the current instruction in line 1 Enter the operand to find with the same keystrokes used when editing programs 2 Enter the operand WAC you are looking for AN 11 0 FIND MO 0 3 Start the search run Result of the search run Operand found The cursor is on the line that contains the specified operand Operand not found The cursor remains in its previous position The NOT FOUND message appears in the information line PG 702 Programming Device C79000 G7076 C709 01 Editing STL Programs Instruction To find an instruction in a program block follow these directions Activity Key Sequence Result 1 Activate the FIND gt FCT 4 INSTRUCTION AN 11 0 function FIND The display shows the current instruction in line 1 Enter the instruction to find with the same keystrokes or menu numbers used when editing programs 2 Enter
63. bleshooting Program sample task 3 7 Program Block Edit Mode 5 3 Program Block Edit mode 4 12 Program Editor exiting and returning 4 15 Programmer cable PPI Interface D 4 Programming creating a program 3 4 38 keys 3 3 setting the language 3 3 Protocol eT Put CPU in RUN STOP 4 36 R Radio interference su pression D 7 Read CPU error 4 40 Read CPU version 4 40 Read I O Configuration 4 37 Read Write Time of Day Clock Reading Status Chart variables Reading DP status 4 24 Red key 4 7 Restricted mode exiting 4 46 functions available 4 45 Retentive ranges 4 16 4 16 setting 4 17 4 17 17 Return instructions Rotate and Shift nstrucnone Tae PG 702 Programming Device C79000 G7076 C709 01 S Sample program increments memory word 37 Sample task downloading program to CPU Select CPU address Set beep volu Set input filter Set language 4 43 Set PG address 4 42 Setting DP port address input filters 4 20 output table 4 19 port 0 parameters 4 22 port 1 parameters 4 23 Setting retentive ranges 4 17 Shift and Rotate Instructions A 8 Shift key 4 3 Single scan debug function 6 8 6 8 Specifications D 2 Stack instructions Starting up PG 702 4 9 Statement list program delimiters 4 4 Status Chart entering floating point numbers 6 4 reading variables setting up 6 3 writing variables Switching key functions 4 6
64. cal keys to the right of the display are used to enter operand offsets Example e Enter an operand address identifier such as SMB When you press Shift OSM the SMB operand is entered e Enter an operand offset Press one of the numerical keys __0 to __9 Section 5 4 contains the detailed description of entering operands Appendix A 3 contains the complete key description Entering a Period and Comma In addition to the normal cursor movement gt also has the following functions e Enters a period for bit size operand offsets e Moves the cursor to the entry field of the second operand The comma is automatically generated as soon as the operand type of the second parameter is entered General Remarks The blue lettered functions are always applicable if you did not use Shift to switch to the white lettered functions Note If you pressLShift before you press a key a flashing S appears at the bottom right of the display When you press the relevant key the S display disappears and the basic key functions are active again Confirming Messages The programming device displays system messages in the lower display line You must confirm these messages by pressing before continuing with your inputs PG 702 Programming Device 4 6 C79000 G7076 C709 01 Working with the PG 702 Key Colors and
65. cel the operation by pressing CER Clear CPU Memory PG Menu 5 3 To clear memory in the S7 200 CPU select the CLEAR CPU MEMORY function You can then choose to clear all the CPU memory clear the program block or clear the data block Confirm your selection by pressing or cancel the operation by pressing the _CLR key Copy CPU Memory PG Menu 5 4 To copy CPU memory to the CPU memory cartridge select the CPU MEM gt CPU CRT function Confirm your selection by pressing or cancel the operation by pressing the _CLR key PG 702 Programming Device 4 36 C79000 G7076 C709 01 Working with the PG 702 Read I O Configuration PG Menu 5 5 The READ I O CONFIG function displays the contents of a table containing the module number and type and the number of input and output points on that module Use the and keys to scroll through the table A sample view of the I O Configuration display is shown in Figure 4 9 MOD n T xxI yyQ lt error line gt Figure 4 9 Sample View of the Read I O Configuration Display The following items are shown in the I O configuration display e n Module number 0 6 e T Kind of module D discrete module A analog module e xx Number of inp
66. contents of this manual for agreement with the hard ware and software described Since deviations cannot be precluded entirely we cannot guarantee full agreement However the data in this manual are reviewed regularly and any necessary corrections included in subsequent editions Suggestions for improvement are welcomed Siemens AG 1998 Technical data subject to change Siemens Aktiengesellschaft 6ES7 702 0AA01 8BA0 Preface Purpose The PG 702 is designed for editing on line programs and must be connected to an S7 200 CPU in order to perform its functions It can transfer an entire program for example a statement list program CPU configuration and the data block from one CPU to another CPU by transferring programs to and from its internal non volatile flash memory The PG 702 can edit all three types of memory blocks program block data block and system data block CPU configuration This PG 702 Programming Device User Manual provides information about the software features of the PG 702 Statement List version of the hand held programmer for S7 200 CPUs It emphasizes the features required to program edit and monitor new and existing programs This manual also specifies how to use diagnostic features and PG menu functions such as CPU mode changes and system configuration Audience This manual contains entry level information on programming SIMATIC S7 programmable controllers S7 200 family and is also intended for
67. controller The incrementing of MB2 lower order byte is not relevant at that point As soon as the maximum value is reached the procedure starts at the beginning again Sample Instruction Sequence The entire executable program consists of the following instructions NETWORK 1 LD SMO 0 Activate the top of stack 1 1 MW1 Count up MOVB MB1 QBO _ Write to output NETWORK 2 MEND Program end The Edit Display Once you have uploaded an empty program from the CPU the PG 702 displays the following ED 1 1 PG 702 Programming Device C79000 G7076 C709 01 3 7 Creating a Sample Program Entering the First Instruction Line 3 8 Use the following steps to enter the first instruction Key Function Display 1 LD LDx Select LD instruction The cursor jumps to the entry field for operands 2 Shift Select SM operand The cursor jumps to the entry field for the operand OSM identifier offset 3 0 Input operand offset 0 0 Network no Instruction no 0 gt Use the right arrow LD SM0 0 7 key to insert the as ED 1 1 0 a delimiter 0 4 Terminate the input and move the cursor to the next line ED 1 2 PG 702 Programming Device C79000 G7076 C709 01 Creating a Sample Program Entering the Second Instruction Line The cur
68. d directly you must select them from a menu Section A 1 describes these instructions and the sequence to select them You can activate the selection menus by e Pressing Shift and then one of the LD LDx A ANx or O Ox keys The instruction after the slash is active The first instructions in the relevant menu are displayed For example 1 AI 2 ANI An instruction in the menu that has a gt at the end of the line indicates that there are additional menus To open another menu activate this function by pressing the number key that matches the number in front of the instruction on the PG 702 display e Pressing Menu to access all instructions that are not displayed with other keys For example 1 PROGRAM CONTROL gt 2 ROTATE amp SHIFT gt Procedure for Entering from a Menu Use this procedure to select an instruction from a menu 1 Select the desired menu by pressing the appropriate number key or using the key if the function appears in the upper line 2 Select an instruction by pressing the appropriate number key The number key for the particular instruction is located in front of the instruction in the menu You can also enter an instruction not shown currently on the display PG 702 Programming Device 5 6 C79000 G7076 C709 01 Editing STL Programs Example Using a Selection Menu to Ente
69. digits digits 235 24 e digits digits E digits 2 3456E 10 Digits may be one or more decimal digits Reading Status Chart Variables PG Menu 8 1 3 When you select the READ CHART VARS function the first variable and its value are displayed Use the 4 and __ keys to scroll through the status chart To change the format of the variable return to the setup chart function and use the Shift _v Cx keystroke combination PG 702 Programming Device 6 4 C79000 G7076 C709 01 Debugging and Testing the Program 6 3 Forcing and Unforcing Variables and I O _PG Menu __8 2 Select the FORCE VARIABLES function to view and edit force information for data variables or select the FORCE I O function to view and edit force information for input and output points Every time one of these functions is selected the PG 702 reads and displays the force information contained in the CPU You can scroll through the list to view force information force a variable to a different value unforce the displayed variable or scroll to the end of the list and add a new variable Use the keys listed in Table 6 3 to work with the force information Table 6 3 Valid Keys for Modifying the Force Information Ke
70. dit mode whenever a data block is uploaded The letters DE appear at the beginning of the second line of the display To exit the data edit mode press the Debug Mode Use the PG Menu key or the Shift and _CLR keys PG Menu 8 key sequence to enter the debug mode The letters DG appear at the beginning of the second line of the display in debug mode In the debug mode you can modify and monitor variables force variables and perform the single scan function PG 702 Programming Device C79000 G7076 C709 01 4 13 Working with the PG 702 4 5 CPU Program Block PG Menu 1 You can use the PG menu function CPU PROGRAM BLOCK to manipulate the CPU program block From the main PG menu select _ 14 to access the menu for the following functions e Upload from the CPU e Download to the CPU e Edit the program block Uploading from the CPU The PG 702 must be connected to an S7 200 CPU to upload from the CPU You can send an upload command by selecting the first CPU program block function UPLOAD FROM CPU The PG 702 executes a program upload from the CPU If a program is found the first line of your program is displayed and is ready for editing If an empty program is uploaded see Section 3 2 the first line of the display is empty Uploading Large Programs Ladder editors contained in programming packages like STE
71. e C79000 G7076 C709 01 Debugging and Testing the Program 6 2 Setting up the Status Chart PG Menu 8 1 1 Status Chart PG Menu 8 1 Select the SETUP CHART function to define the list of variables to be monitored You can define up to nine variables After you have started this function you can press the FCT key to access the PG editing functions shown in Table 6 2 Table 6 2 PG Functions Available in Status Chart Setup Menu Text on Display Brief Description of Function 1 INSERT LINE Inserts a new line before the current one in the list of variables 2 DELETE LINE Deletes the current line in the variable list and moves the cursor to the next line 3 EXIT Exits the status chart setup function The chart is lost if a power cycle is performed When you first apply power to the PG 702 this list is empty Use the operand keys to fill the list with one operand per line You can insert and delete lines in the same way that you use the STL editor Enter the first operand and press lt _ to move the cursor to the next line INT is displayed Press lt to accept the default integer format or use the Shift v Cx key combination to toggle the format through unsigned integer hexadecimal and floating point number Press lt 4 to confirm your selection and move to the next entry The format for chart variables can only be edited dur
72. e FCT key during powerup This deletes the PG password and sets the PG 702 back to unrestricted access PG 702 Programming Device C79000 G7076 C709 01 Working with the PG 702 Entering the Restricted Mode To restrict the access level to your PG 702 press PG Menu 6 7 1 The PG 702 displays the following ENTER PASSWORD 0 Enter a numerical PG password and press The range of the PG password is 0 to 999 999 999 The PG password is saved to the non volatile memory of the PG 702 The PG 702 now displays the restricted PG menu 1 FLASH OPERATIONS gt 2 PG CONFIGURATION gt The functions listed in Table 4 15 are available under restricted access Table 4 15 PG Menu Functions Available Under Restricted Capability Menu Text on Display Description of the Function Key Sequence 1FLASHOPERATIONS gt Transfers and compares R 1 PG FLASH gt CPU MEM Transfers PG flash memory to CPU 1 1 memory 2 CPU MEM PG FLASH Compares program in flash memory to 1 2 program in CPU 2 PG CONFIGURATION gt Modifies PG configuration 2 1 FIND CPU ADDRESS Finds S7 200 CPU address to 2 1 communicate to 2 SELECT CPU ADDR Selects S7 200 CPU address 2 2 3 SET PG ADDRESS Sets the PG station address 2 3 4 SET BAUD RATE Sets the baud rate
73. e 4 13 to modify the time of day clock Table 4 13 Valid Keys for Modifying the Time of Day Clock Key Function y Enter new value go to next value lt Enter new value go to next value CLR Delete character Shift CLR Escape from function 0 through 9 Digits to enter value 0 through 7 Digits to enter day of the week Enter 0 to turn the day of the week display off Enter 1 through 7 to specify the day of the week 1 Sunday PG 702 Programming Device C79000 G7076 C709 01 Working with the PG 702 Figure 4 10 shows the WRITE TIME OF DAY screens from the PG 702 display YEAR 98 0 99 Press Jor to enter a new value MONTH 2 1 12 Press Jor to enter a new value DAY 26 1 31 Press Jor Tto enter a new value HOUR 9 0 23 Press Jor Tto enter a new value MINUTE 14 0 59 Press Jor Tto enter a new value SECOND 25 0 59 Press Jor Tto enter a new value DAY OF WEEK 5 0 0FF 1 7 SUN 1 Press Jor Tto enter a new value 98 02 26 09 14 25 W
74. e Instruction Key Sequence 71 COMMUNICATIONS gt Communication instructions Menu 9 1 1 NETR Network read Menu _ 9 1 1 2 NETW Network write Menu _ 9 1 2 3 XMT Transfers message from the buffer Menu 9 1 3 4 RCV Receives message into the buffer Menu 9 1 4 2 TODR Reads out the clock time and date Menu _ 9 2 3 TODW Writes the clock time and date Menu 9 3 4 WDR Resets the monitoring time Menul 9 4 5 PID PID loop instruction Menu 9 5 6 NOP Do nothing instruction Menu 9 6 7 PLS Pulse instruction Menu _ 9 7 PG 702 Programming Device A 12 C79000 G7076 C709 01 Overview of Menus and Instruction Sets A 3 Operands You can enter operands using the PG 702 in either the edit program block ED mode or the debug DG mode Entering operands in the edit program block mode is context sensitive If you select an instruction that operates on words the PG 702 automatically selects the correct data size for the data type Entering data types in the debug mode is not context sensitive In this mode you must press the appropriate data type key The first time the appropriate data type key is pressed the byte size is displayed The second time displays the word size and the third time displays the double word size Pressing the key again returns the data type to byte size The following tables describe the key sequences for addresses and address values Note If the addresses li
75. e Memory double word AC Accumulator Shift M AC AIW Analog inputs Shift C Ax A 14 PG 702 Programming Device C79000 G7076 C709 01 Overview of Menus and Instruction Sets Table A 18 Operands Address Description Key Sequence Identifier AQW Analog outputs Shift C Ax Shift C Ax T Timer T CH C Counter C Ax HC High speed counter Shift 1 HC 16 Hexadecimal constant Shift T CH Byte constant Word constant Double word constant 16 Hexadecimal ASCII constant Shift T CH Shift T CH Byte constant Word constant Double word constant Decimal constant Shift V Cx Byte constant Word constant Double word constant Floating Point constant Double word constant Pointer for indirect addressing Shift m amp Address of a memory location for indirect Shift amp addressing 7 Period in operand offset for example 0 0 gt Dependent on the cursor position n S A Comma between the individual addresses generated automatically E Exponent for scientific notation Shift 5 PG 702 Programming Device C79000 G7076 C709 01 A 15 Overview of Menus and Instruction Sets A 4 PG Menu Functions The PG menu functions allow you to select seve
76. e Values Delay Time on Value Delay Time on CPU 212 CPU 214 CPU 215 CPU 216 0 osms 0 2 ms 1 0 5 ms 0 3 ms 2 0 9 ms 0 6 ms 3 1 7 ms 1 1 ms 4 1 7 ms 1 1 ms 5 3 3 ms 2 2 mS 6 6 6 ms 4 4 ms 7 13 1 ms 8 7 ms After you enter the appropriate value press the 4 key to write the selection to the CPU PG 702 Programming Device C79000 G7076 C709 01 4 21 Working with the PG 702 Setting the Port 0 Parameters PG Menu 2 4 Use the PORT 0 PARAMETERS function to set the port 0 attributes After you select 4 from the CPU configuration menu scroll through the display to 4 22 select the functions shown in Table 4 6 Table 4 6 Port 0 Parameter Functions Menu Text on Display Description of Function Key Sequence 4PORTOPARAMETERS gt Set read port 0 parameters pa ipa 1 SET PORT 0 ADDR Set read station address 2 4 1 2 SET BAUD RATE Set read baud rate 2 4 2 3 SET HSA Set read highest station address 2 4 3 4 SET RETRY COUNT Set read retry count 2 4 4 5 SET GAP UPDATE Set read gap update factor 2 4 5 When you select an attribute the PG 702 displays the valid range and the current value for the attribute as shown below for the station address RANGE 1 126 2 You can then enter a value and press the lt 4
77. e an existing program in an S7 200 Test an existing program in the S7 200 Manage your programmable controller such as setting the CPU node address clearing the CPU and configuring your programmable controller Transfer the CPU program data and configuration blocks as a whole from one CPU to another by means of non volatile memory in the PG 702 PG 702 Programming Device C79000 G7076 C709 01 Introduction to the PG 702 1 2 Programming with the PG 702 Creating a User Program You can use the PG 702 to change an existing program in an S7 200 or to create a new one If your program is a ladder diagram block the program is automatically converted to statement list STL Note All ladder programs can be represented in STL but not all STL programs can be represented as ladder diagrams If you want to write or change a program with the PG 702 and you want to view this program later with a ladder editor such as STEP 7 MicroWIN be sure to construct networks that can be displayed as ladder diagrams To view the program in ladder you must divide segments of code with the keyword NETWORK Editing an On Line Program The PG 702 can edit all three types of memory blocks CPU program blocks system data blocks CPU configuration and data blocks To edit the program block you must first upload the program block from the CPU You can then edit the program and download it to the CPU The download function is disabled unless you
78. e f g h i j 2 k m n o p q r s t 3 u v w x y z 4 A B C D E F G l J 5 K L M N O P Q S T 6 U V Ww X Y Z 7 i amp 8 3 E gt A 9 lt 0 1 2 3 5 6 7 8 9 0 PG 702 Programming Device C79000 G7076 C709 01 B 1 ASCII Characters Entering ASCII Characters When you select a function to enter ASCII characters like PG Menu 7 2 NEW CHG PASSWORD the PG 702 shows the following display 4A J5K T6U Z TEXT 7SPECIALO1 0 M Entry Functions in the Menu The menu displayed above provides you with the following ways to enter characters Use functions 1 to 3 to enter lower case letters a to j k tot and u to z Use functions 4 to 6 to enter upper case letters A to Z Use functions 7 to 9 to enter special characters Use function 0 to enter numbers PG 702 Programming Device C79000 G7076 C709 01 ASCII Characters The column numbers 1 to 3 for lower case letters are not displayed but they correspond to the groupings assigned to numbers 4 to 6 1 4 2 5 3 6 After you select the column number 1 to 0 you see a display like the ones shown in Figure B 1 If you select 1 in the first menu you will see this display If you select 4 in the first menu you will see this display If you select 7 in the first menu you will see this display
79. e to line 2kV 2 to IEC 801 5 us pulse line to ground Noise immunity on signal lines 1kV to IEC 801 4 burst Immunity against discharge of 6kV Contact discharge to IEC 801 2 ESD static electricity 8kV Air discharge to IEC 801 2 ESD Immunity against high frequency noise interference 10V m with 80 amplitude modulation for 1 kHz 10 kHz to 80 Mhz to IEC 801 6 D 2 PG 702 Programming Device C79000 G7076 C709 01 Technical Specifications and Hardware Table D 1 Technical Specifications for the PG 702 PG 702 Performance Data Climatic Conditions Temperature Tested to DIN IEC 68 2 1 DIN IEC 68 2 2 Operating 0 C to 45 C 32 F to 113 F Storage transport 20 C to 60 C 4 F to 140 F Relative humidity Tested to DIN IEC 68 2 3 Operating 5 to 95 at 25 C 77 F no condensation Storage transport 5 to 95 at 25 C 77 F no condensation Mechanical Environmental Conditions Vibration Tested to DIN IEC 68 2 6 Operating 10 Hz to 60 Hz amplitude of 0 075mm 60 Hz to 500 Hz acceleration of 9 8m s2 Shock Tested to DIN IEC 68 2 27 Half sine 100m s2 10g 1ms Special Features Quality assurance To ISO 9001 Maintenance Maintenance free no battery Installation in panels No accessories required for installation in panels 1 The 24 VDC supply voltage should be limited to a rated current of lt 3A by means of either an ov
80. e valid range and the current value for the attribute You can then enter a value and press the lt 4 key to confirm your entry The value is immediately downloaded to the CPU Press Shift CLR to cancel the operation Note The highest station address retry count and gap update factor parameters can generally remain the default factory set values unless you want to attempt advanced networking PG 702 Programming Device C79000 G7076 C709 01 4 23 Working with the PG 702 Setting the DP Port Address and Reading DP Status PG Menu 2 6 4 24 Use the DP PORT PARMS function to set the address on the DP port and read the following DP parameters DP status Master address Output buffer address Size of output buffer Size of input buffer This feature applies only to the DP port port 1 of the CPU 215 When you select 1 SET DP PORT ADDR the following screen is displayed RANGE 1 126 2 Enter a value and press the L key The value is immediately downloaded to the CPU Press Shift CLR to cancel the operation PG 702 Programming Device C79000 G7076 C709 01 Working with the PG 702 When you select 2 READ DP STATUS a scrollable screen is displayed The first line shows the parameter name and the second line displays the value for that parameter Use the PA and
81. eatedly nging the CPU 5 CPU FUNCTIONS gt operating mode 6 PG CONFIGURATION gt 5 1 PUT CPU IN RUN 2 PUT CPU IN STOP 2 1 Select RUN mode lt PUT CPU IN RUN Confirm your choice Now the program should run If you have problems make sure that the operating mode switch on the CPU is in the TERM position Examine the output LEDs on the CPU for QBO They should be cycling in a binary progression PG 702 Programming Device C79000 G7076 C709 01 3 13 PG 702 Programming Device C79000 G7076 C709 01 Working with the PG 702 This chapter shows you how to operate and configure the PG 702 It also gives you general notes about the display format and how to use the operator interface menus Chapter Overview Section Description Page 4 2 Starting Up the PG 702 Password Protection 4 9 4 3 Working with Menus 4 4 Operating Modes of the PG 702 4 12 4 5 CPU Program Block PG Menu Function 1 4 6 CPU Configuration PG Menu Function 2 4 7 CPU Data Block PG Menu Function 3 4 8 Flash Operations PG Menu Function 4 4 9 CPU Functions PG Menu Function 5 4 10 PG Configuration PG Menu Function 6 SVE RSI BY BRO Od INI Ss 2 NYS Oy Oy a 4 11 Passwords PG Menu Function 7 4 12 Debug Read Write Variables PG Menu Function 8 i an PG 702 Programming Device C79000 G7076 C709 01 4 1 Working with the PG 702 4 1 Working with the Key
82. ed to the CPU first followed by the data block and finally the CPU configuration If there is a communication error at any point in the operation the function is aborted and the PG 702 displays the error Remaining blocks are not downloaded The downloaded program block and data block are exact copies of the blocks that were previously uploaded to the flash memory If the blocks do not fit into the CPU for instance when you copy a large CPU 216 program into flash memory and then try to download that program into a CPU 214 a communication error occurs and the function is aborted The CPU configuration and output table data are handled differently from the program block and data block so that configuration information from one CPU type can be downloaded to another CPU type Because not all CPUs support the same CPU configuration fields and formats exact copies of the CPU configuration do not allow for model independence In order to ensure compatibility the PG 702 uses the CPU configuration from the target CPU and overwrites its values with values from the configuration that is stored in PG flash memory When copying the flash memory configuration to a CPU the PG 702 first uploads the current CPU configuration if present or default CPU configuration always present from the CPU The values from the CPU configuration that are stored in flash memory are written into the CPU configuration that was uploaded from the target CPU In this way on
83. ercurrent limiter or a fuse 2 Only in connection with additional measures such as overvoltage diverters e g of Messrs Dehn type RZ E 24V Order No 917 024 PG 702 Programming Device C79000 G7076 C709 01 D 3 Technical Specifications and Hardware D 2 D 4 Programmer Cable PPI Interface for the PG 702 Figure D 1 shows the PPI interface Programmingdevice Coding M24v _ RS485 Cable A aa RTSAS m M5 V P5V for term resist P24vV _ RS485 Cable B _ nc m Programmer cable 2 5m oo y AU A U Ne O Shield PLC 1 gt M5V 2 gt _M24v 3 gt RS485 Cable A 4 gt NC 5 M5V 6 gt P5V 100 ohms 7 gt P24V 8 RS485 Cable B 9 NC Figure D 1 PPI Interface PG 702 Programming Device C79000 G7076 C709 01 Technical Specifications and Hardware D 3 Handling Electrostatic Sensitive Devices ESD What is an ESD Almost all SIMATIC TELEPERM modules are equipped with large scale integrated ICs or components with MOS technology Due to their design these electronic elements are very sensitive to overvoltages and thus to any electrostatic discharge These Electrostatic Sensitive Devices are commonly referred to by the abbreviation ESD The symbol below appears on cabinets racks or packings to point out the use of electrostatic sensitive devices and that the respective modules are
84. for entering operand identifiers or operand offsets Operand offsets Operand identifiers 2 gt C D 3 4 M AC C Ax S Cf E F oS 5 6 HC V Cx amp x 7 8 Q SM T CH i 9 0 Figure 5 2 Keys for Entering Operand Identifiers and Operand Offsets Operand Entry Styles 5 8 Entering an operand depends on the respective instruction A beep signal rejects an operand that does not belong to the current instruction For example an LDB instruction permits only byte operands such as VB IB or QB You can enter an operand identifier e Individually by using the operand key see Figure 5 2 e Individually with the Shift key and with an operand identifier key e By using the _ _ or L to scroll across each character in an instruction e By using the Shifti or _Shift to jump to another instruction element Section A 3 describes the operand identifier keys PG 702 Programming Device C79000 G7076 C709 01 Editing STL Programs Entering Operand Offsets You can enter the operand offsets as follows e With the number keys see Figure 5 2 e Using the gt to enter the period between the individual digits for example 0 0 e Using the lt to acknowledge the error message to an erroneous in
85. for write and force variables PG 702 Programming Device C79000 G7076 C709 01 4 7 Working with the PG 702 The Display The PG 702 uses a two line display the Instruction line and the Information line Each line can display 20 characters The PG 702 display lines perform different tasks that depend on the operating status and the function to be carried out Example of a display while you are editing a program block is shown below J Cursor AN I0 0 a __ First line Instruction line E Mode identifier Network number Line number lt Second line Information line Note If you press LShift FCT_ during edit mode the PG 702 displays two lines of the program instead of a displaying a program line and an information line Press Shift Fct or use the arrow keys to return to the standard edit mode display Information Line The operating mode and location within the program are displayed in the information line Error messages also appear on the information line The identifiers describe the operating mode currently activated These are displayed when room permits for the current function e ED STL edit mode edit program block change CPU configuration e DE data editor mode edit data block e DG debug mode read write and force variables PG 702 Programming Device C79000 G7076 C709 01 Working with the PG 702
86. from an Menu 1 3 event Table A 9 Miscellaneous Control Instructions Instruction 4 SCRx gt 1 LSCR 2 SCRT 3 SCRE 5 FOR 6 NEXT 7 STOP 8 MEND 9 END Function of the Instruction Following instructions via SCRx Loads SCR bit onto logic stack SCR Transition SCR End Executes the instructions between the FOR and the NEXT Marks the end of the FOR loop Terminates the execution of the program immediately by causing a transition of the CPU from RUN to STOP Unconditional end of user program Conditional end of user program Key Sequence Menu 1 4 Menu 1 4 Menu 1 4 Menu 1 4 Menu 1 5 Menu 1 6 Menu 1 7 Menu 1 8 Menu 1 9 PG 702 Programming Device C79000 G7076 C709 01 A 7 Overview of Menus and Instruction Sets Table A 10 Rotate and Shift Instructions Instruction Function of the Instruction Key Sequence 1 RRx gt Rotate to the right Menu 2 1 1 RRB Rotates byte to the right Menu 2 1 1 2 RRW Rotates word to the right Menu 2 1 2 3 RRD Rotates double word to the right Menu 2 1 3 2 RLx gt Rotate to the left Menu _2 2 1 RLB Rotates byte to the left Menu 2 2 1 2 RLW Rotates word to the left Menu _2 2 2 3 RLD Rotates double wo
87. g modes the CPU scan cycle password protection and network communication This manual also includes descriptions and examples for the programming instructions typical execution times for the instructions and the data sheets for the 7 200 equipment Additional Assistance For assistance in answering technical questions for training on this product or for ordering contact your Siemens distributor or sales office PG 702 Programming Device C79000 G7076 C709 01 Contents 1 Introduction to the PG 702 ccc cece eee eee eens 1 1 1 1 Using the PG 702 aeeie sea uid iiai iei si iin a a aia 1 2 1 2 Programming with the PG 702 2 c cece eee tees 1 3 2 Installing tite PG 702 repi aa EE 2 1 2 1 Connecting the PG 702 ccc eee ee 2 2 2 2 Changing the Keyboard Overlay 0 00 cee eee eee eee eee 2 3 2 3 Mounting the PG 702 in a Panel or Cabinet Door 2 4 3 Creating a Sample Program 000 see e eee ete eee eee 3 1 3 1 Example for Powering Up and Setting the Programming Device 3 2 3 2 Uploading a Program from the CPU to the PG 702 3 4 3 3 Sample Task cc cece c eee ett eee teens 3 7 4 Working with the PG 702 cc cece cece cece e eee eee eee 4 1 Working with the Keypad 0 2 0 cece eee eee eee eee eee 4 2 4 2 Starting Up the PG 702 Password Protection 05 4 9 4 3 Working with Menus 0
88. h of the entries in the fields that appear on the display Figure 4 3 shows the display that allows you to define the beginning of a retentive range RETENTIVE RANGES 0 77 Orepresents the table entry FROM number Cursor Figure 4 3 Defining the Beginning of a Retentive Range Press the appropriate operand keys to enter the beginning of the range and confirm the selection by pressing the key The display prompts you to enter the end of the range as shown in Figure 4 4 The range is inclusive RETENTIVE RANGES 0 TO s Cursor Figure 4 4 Defining the End of a Retentive Range PG 702 Programming Device C79000 G7076 C709 01 4 17 Working with the PG 702 After you press the key to confirm the end of the range selection you can continue to set the range for additional entries Whenever an operand has been specified previously that operand is displayed as the default to the right of the colon on the second line of the display see Figure 4 5 RETENTIVE RANGES 1 FROM VBO Cursor Figure 4 5 Viewing the Default Operand Press the key or the FF or Y keys to accept the displayed operand or overwrite the operand with another one e To clear part of the operand address place the cursor on the character you want to change and press
89. have uploaded a program block If there is no program in the CPU the PG 702 creates a program block Use the data block editor to edit the data block When you enter the data block editor the PG 702 determines if the CPU has a data block present If there is a data block available it is uploaded If one is not present the PG 702 creates one The CPU configuration is modified and updated one field at a time For more information on the editing functions see Chapter 5 PG 702 Programming Device C79000 G7076 C709 01 1 3 PG 702 Programming Device C79000 G7076 C709 01 Installing the PG 702 This chapter shows you how to connect the PG 702 and how to install it in a panel or cabinet door Chapter Overview Section Description Page 2 1 Connecting the PG 702 2 2 2 2 Changing the Keyboard Overlay 2 3 2 3 Mounting the PG 702 in a Panel or Cabinet Door 2 4 PG 702 Programming Device C79000 G7076 C709 01 2 1 Installing the PG 702 2 1 Connecting the PG 702 Programmable Controller Connection Connect the PG 702 to the PPI interface on the CPU using the supplied programmer cable at the programmer cable port see Figure 2 1 This cable supplies the programming device with the necessary power The programming device can be operated only when it is connected to an S7 200 CPU External Power Supply Connection To connect the PG 702 with a cable longer than the one provided with the programming device g
90. he CPU or abandon it e Press lt to load the program to the CPU e Press GLR to abandon the function and return to the mode you were in when you initiated the download If the S7 200 CPU is password protected and the password has not yet been entered you must enter a password see Section 4 11 PG 702 Programming Device C79000 G7076 C709 01 5 3 Editing STL Programs 5 3 Entering Instructions Instruction Entry Function You can now change or enter instructions Each erroneous entry is rejected with a system message or a beep tone Keys for Entering Instructions Figure 5 1 shows you the keys that are active when you enter instructions Figure 5 1 Keys for Entering Instructions Entering Instructions To enter instructions position the cursor on the instruction line see Section 5 5 You can enter instructions in two different ways e Select an instruction by pressing the corresponding instruction key See Section A 1 for a complete list of instructions with corresponding keys on the PG 702 e Select an instruction by pressing the Menu key This action brings up a list of instruction categories Enter the numerical value that corresponds to the proper instruction category A gt character at the end of the line means the category is subdivided If the PG 702 display area is not large enough for the instructions you ca
91. he last entry before the download Alternately you can download the data block from the PG menu by selecting PG Menu 3 2 PG 702 Programming Device C79000 G7076 C709 01 key and select 1 4 29 Working with the PG 702 4 8 Flash Operations PG Menu 4 To permanently store your edited program you must download your program to the CPU and then transfer it to the PG flash non volatile memory The FLASH OPERATIONS functions shown in Table 4 10 allow you to transfer and compare entire programs program block data block and CPU configuration These functions work with the non volatile memory of the PG 702 The program block and data block editors store information temporarily in RAM until a power cycle and are unaffected by the flash operations Table 4 10 Flash Operation Functions Menu Text on Display Description of the Function Key Sequence 4 FLASH OPERATIONS gt Transfers and compares 4 1 CPU MEM gt PG FLASH Copies CPU memory to PG flash 4 1 memory 2 PG FLASH gt CPU MEM Copies PG flash memory to CPU 4 2 memory 3 CPU MEM PG FLASH Compares program in PG flash memory 4 3 to program in CPU CPU Memory to PG Flash PG Menu 4 1 4 30 The first flash function CPU MEM gt PG FLASH uploads the entire S7 200 CPU program program block data block and CPU configuration
92. information about these keys Statement List Program 5 2 A statement list STL program consists of statement list statements that are delimited by at least one network A statement list statement is in the following form instruction operand operand operand where indicate optional elements The operand is the data to be operated on or a description of the location of the data to be operated on by the instruction Operands take two forms e Operands are broken down into addressing mode operand identifier size and offset Addressing modes are either direct or indirect e Constants are either integer hex hex ASCII or floating point numbers See the SIMATIC S7 200 Programmable Controller System Manual for more details PG 702 Programming Device C79000 G7076 C709 01 Editing STL Programs 5 2 Setting the Edit Mode and Loading the Program into the CPU Program Block Edit Mode You can edit or create a user program using the PG 702 The program block edit mode is set automatically when you upload a program to the PG 702 You will see a display such as the following one LD 10 0 ED 1 1 Downloading a Program to the CPU To download the program to the CPU use the FCT __5 key sequence DOWNLOAD TO CPU or the PG Menu 1 2 key sequence PROGRAM BLOCK DOWNLOAD TO CPU LOAD TO CPU You can load the program to t
93. ing chart setup The format remains in effect until it is changed or a power cycle is performed The following is an example of the display Operand type Operand size Offset Entry number 1 VWO DG INT Mode identifier Format Note Floating point format requires a double word variable PG 702 Programming Device C79000 G7076 C709 01 6 3 Debugging and Testing the Program Press the FCT 3__ key sequence to exit the setup function and return to the PG menu The status chart is available until the next power cycle You must set up a status chart before you can read or write any variables Writing Status Chart Variables PG Menu 8 1 2 When you select the WRITE CHART VARS function the cursor is automatically placed in the value field Type in the value and press the key The PG 702 immediately writes the value to the CPU Your cursor then moves to the next variable in the chart and reads that value If you are on the last variable in the chart the PG 702 reads the same value again Use the 4 and _ keys to scroll through the list of monitor values Entering Floating Point Numbers To enter a floating point number select the variable to be modified Enter the number in floating point number format You can use one of two different formats e 4 4
94. key together with the at a time _ or _ key If you use the Shift key together with the E or E9 Entering Statements Within the Data Block key the cursor moves 10 elements When the cursor is placed on the operand identifier you can modify the operand size by repeatedly pressing the V Cx key The operand size toggles through VB VW VD then back to VB The cursor then moves to the offset field Enter the offset value by pressing the desired digits After the offset has been to advance the cursor to the value field on line 2 of the entered press lt display To change the data format position the cursor on the data value field second line and press the Shift and Vicx keys together The data format options toggle through INT UINT HEX and FLOAT FLOAT is only valid for operand size double VD Press lt 4 to confirm your selection To change the value use the CLR key to delete a digit and the _ and _ keys to move among the digits Enter the desired digits and press lt 4 to apply the value The PG 702 then displays the next entry After you have entered all of your values press the FCT DOWNLOAD TO CPU to download the data block to the CPU After the data block is downloaded the display shows t
95. lay Eg Menu Activate the menu for instructions 1 PROGRAM CONTROL gt 2 ROTATE amp SHIFT gt 2 Repeatedly Scroll through the instructions menu 5 WORD WIDE LOGIC gt 6 Select the DATA 6 DATA MOVES gt MOVES menu 1 MOVB 2 MOVW 3 1 Select MOVB MOVB ED 1 3 4 M AC Enter the first operand MB MOVB MB1 Enter 1 as the ED 1 3 operand offset 5 Enter second operand QB The MOVB MB1 OBO Q SM comma is generated rQ automatically ED 1 3 0 Enter 0 as the operand offset 6 E Terminate the input and move the cursor to the next line ED 1 4 3 10 PG 702 Programming Device C79000 G7076 C709 01 Creating a Sample Program Changing to Network 2 Key Function Display 1 Shift Begin next network ED 2 1 Entering the Fourth Instruction Line The cursor is at the entry field for the instruction Now enter the fourth instruction Key Function Display Eg Menu Activate the menu 1 PROGRAM CONTROL gt 1 Select PROGRAM CONTROL 2 ROTATE amp SHIFT gt Repeatedly Soroll through the program control options MEND 8 Select MEND ED 2 1 2 a Terminate the input ED 2 2 PG 702 Programming Device C79000 G7076 C709 01 3 11 Creating a Sample Program Downloading Your Program to the
96. lect the state for each output 2 2 2 3 SET INPUT FILTERS gt Set input filter delay times 2 3 110 0 gt 10 3 Set the input filter times for 10 0 2 3 1 through 10 3 2 10 4 gt 10 7 Set the input filter times for 10 4 2 3 2 through 10 7 311 0 gt 11 3 Set the input filter times for 11 0 2 3 3 through 11 3 4 11 4 gt 11 5 Set the input filter times for 11 4 2 3 4 through 11 5 4 PORT 0 PARAMETERS Set read port 0 parameters 2 4 1 SET PORT 0 ADDR Set read CPU station address 2 4 1 2 SET BAUD RATE Set read baud rate 2 4 2 3 SET HSA Set read highest station address 2 4 3 4 SET RETRY COUNT Set read retry count 2 4 4 5 SET GAP UPDATE Set read gap update factor 2 4 5 5 PORT 1 PARAMETERSSs Set read port 1 parameters 2 5 1 SET PORT 1 ADDR Set read CPU station address 2 5 1 2 SET BAUD RATE Set read baud rate 2 5 2 3 SET HSA Set read highest station address 2 5 3 4 SET RETRY COUNT Set read retry count 2 5 4 5 SET GAP UPDATE Set read gap update factor 2 5 5 6 DP PORT PARMS gt Set read DP port parameters 2 6 1 SET DP PORT ADDR Set the CPU station address 2 6 1 2 READ DP STATUS Read the DP status 2 6 2 PG 702 Programming Device C79000 G7076 C709 01 Working with the PG 702 Setting Retentive Ranges PG Menu 2 1 To define retentive ranges of user memory select 1 from the CPU configuration menu You can fill a table of up to six entries and specify a data range from to for eac
97. ly those fields that are supported by the target CPU are downloaded to that CPU Fields that are not supported are ignored For example if a CPU 216 program is copied into the PG 702 flash and then this program is downloaded to a CPU 212 the port 1 configuration of the CPU 216 is not copied to the CPU 212 Note There is no warning given if a particular field is not downloaded to the CPU PG 702 Programming Device C79000 G7076 C709 01 4 31 Working with the PG 702 If the current CPU address and baud rate configured in the PG 702 do not match the values downloaded to the CPU the PG 702 will automatically switch itself to match the new CPU address and baud rate The new CPU address or baud rate values are not stored in the PG 702 When you power cycle the PG 702 it reverts to the previous CPU address and baud rate values For example if the target CPU port is set to address 2 and the configuration stored in PG flash requires this port to be address 10 the PG 702 will copy from flash memory to the CPU using address 2 then switch to address 10 so that the PG 702 can continue to communicate with the CPU using the new address When the PG 702 is power cycled it reverts to the previously stored permanent address for the CPU port In this example it reverts to address 2 This allows the PG 702 to be ready to program the next CPU Note If a block does not exist in the PG flash memory the PG 702 deletes that particular block f
98. n You must enter the password in the same way as before If it is different from your first entry a message is given and you must restart the entire procedure You can use the _CLR key to cancel this function After the password has been verified you are prompted to enter the restriction class Select the level of restriction for the CPU and confirm your selection by pressing the lt key Please refer to the SIMATIC S7 200 Programmable Controller System Manual for information about the different restriction levels PG 702 Programming Device 4 48 C79000 G7076 C709 01 Working with the PG 702 Delete Password Select the DELETE PASSWORD function to delete a previously set CPU password This function is allowed only when you have already entered the correct CPU password If the password entered is correct the following message is displayed CLR IN CPU Enter for yes or CLR for no If you attempt to delete the CPU password without having previously entered the password the following message is displayed NEED PASSWORD You must use the PG Menu 7 1__ ENTER PASSWORD key combination to enter the correct CPU password or press the _CLR key to terminate the function Password Logout Select the PASSWORD LOGOUT function to log off the CPU before disconnecting the PG 702 so tha
99. n scroll in the menu area or activate additional submenus See Section A 2 for a complete list of the instruction set menus by category The last page of this manual contains an alphabetical listing of all instructions and the keystrokes you use to enter them 5 4 PG 702 Programming Device C79000 G7076 C709 01 Editing STL Programs Entering Instructions with Instruction Keys You can enter some instructions without using a menu e Press one of the keys shown in Figure 5 1 to display the instruction in front of the slash e Press the key repeatedly to display the negated form of the instruction for example LDN AN or ON Note If you press a key not shown in Figure 5 1 the entry is rejected with the SYNTAX ERROR message This message must always be confirmed with lt A list of the relevant keys is included in Section A 1 Example Entry Via Key The example below shows you how to enter an instruction AN The cursor must be in the instruction entry field at the beginning of the first line Proceed as follows 1 A ANx A ANx The AN instruction is displayed AN H Subsequent ED cursor position This example is not complete and serves to explain this input sequence only PG 702 Programming Device C79000 G7076 C709 01 5 5 Editing STL Programs Entering an Instruction with a Selection Menu Some instructions are not displaye
100. nto a bit position Menu 4 3 4 DECO Converts a bit position into a hexadecimal digit Menu 4 4 5 SEG Generates a bit pattern for a 7 segment display Menu 4 5 6 ATH Converts ASCII string into a hexadecimal value Menu 4 6 7 HTA Converts a hexadecimal value into an ASCII string Menu 4 7 8DTR Converts a double word integer into a real number Menu 4 8 9 TRUNC Converts a real value into integer Menu 4 9 Table A 13 Word Logic Instructions Instruction Function of the Instruction Key Sequence 1 ANDx gt AND Menu 5 1 1 ANDB ANDs bytes Menu _ 5 1 1 2 ANDW ANDs words Menu _ 5 1 2 3 ANDD ANDs double words Menu _ 5 1 3 2 ORx gt OR Menu _ 5 2 1 ORB ORs bytes Menu 5 2 1 2 ORW ORs words Menu 5 2 2 3 ORD ORs double words Menu 5 2 3 3 XORx gt Exclusive OR instruction Menu _ 5 3 1 XORB Exclusive ORs instruction bytes Menu 5 3 1 2 XORW Exclusive ORs instruction words Menu _ 5 3 2 3 XORD Exclusive ORs instruction double words Menu 5 3 3 4 INVx gt Ones complement of integer Menu 5 4 1 INVB Ones complement of integer 8 bit Menu _ 5 4 1 2 INVW Ones complement of integer 16 bit Menu 5 4 2 3 INVD Ones complement of integer 32 bit Menu 5 4 3 PG 702 Programming Device C79000 G7076 C709
101. o go to a specific network and line number use the FCT 3 key combination The display shows the current network line 1 NETWORK 1 LINE 1 Enter the network number and line number that you want to go to and press the key The editor moves to the specified statement and displays it as the current line If you enter a network number that is greater than the highest network number in your program the PG 702 displays the specified line in the last network If you enter a line number that is greater than the highest line in a specific network the PG 702 displays the last line in that network All statement list programs begin with network 1 and line 1 If you enter a zero the PG 702 displays the first line or network Table 5 3 contains examples of GOTO entries and results Table 5 3 GOTO Results Entry Goes to network 1 line 1 NETWORK 0 LINE 0 Action NETWORK 4 LINE 0 Goes to network 4 line 1 NETWORK 4 LINE 1 Goes to network 4 line 1 NETWORK 3000 LINE 0 Goes to last network line 1 NETWORK 3000 LINE 500 If there are only 10 lines in the last network this entry goes to the last line in the last network PG 702 Programming Device C79000 G7076 C709 01 5 15 Editing STL Programs 5 8 5 16 Find Oper
102. or Modifying the Force Information 0 A 1 AND INSMUCHIONS 2625cocsaw hee av ais cab wea eeon eed ane daadaws Ob ie A 2 OR InstructioOnS 0 2 0 0 ccc ccc ni Rasa NARRER RARE tenes A 3 Assignment Set Reset Instructions 0 0 0 0 cece eee eee A 4 Load InstructionS 0 cece ttt ene A 5 Timer Counter Instructions 0 0 ccc eects A 6 Label IAS FUCHONS ea c 5 dine serer de eiacacne ede eteide whee vedas A 7 Return Instructions 0000 c cece ete eee A 8 Interrupt InstructiONS 2 1 0 eee A 9 Miscellaneous Control Instructions 00 cece eee eens A 10 Rotate and Shift Instructions 0 0 ccc A 11 INStFUCTIONS auch cw ee wtie niione hea wh Gaia ee ea eR Re A 12 Conversion InstructionS 0 0 ccc eect eee eens A 13 Word Logic Instructions 0 cece eee A 14 Data Move InstructionS 0 cece cette ees A 15 Stack Instructions 0 0c ccc eee e nee t eee n eee A 16 Mathematical Instructions 0 cece ect eee A 17 Miscellaneous Instructions 0 06 cece ete teens A 18 Operands oc ae eaho ceded Meee ede eye kee een eee eye we A 19 PG Menu Functions 0 0 cece nee teens B 1 ASCII Characters 2 0 0 0 ccc ccc cece teen ee eees PG 702 Programming Device viii C79000 G7076 C709 01 Introduction to the PG 702 1 This chapter provides you with a general overview of the PG 702 It explains the tasks functions and
103. pad Keypad Layout The PG 702 keypad layout shown in Figure 4 1 is ergonomically designed in its physical arrangement and color The design is tailored to the operator s requirements in the various operating modes There are four major groups of keys on the PG 702 keyboard e one for entering instructions e one for entering operand types e one for selecting functions e one for entering operand offsets and digits Note The keyboard overlay shown in Figure 4 1 is the international version of the PG 702 and uses international mnemonics See Figure 2 3 on page 2 3 for the SIMATIC version of the keyboard overlay SIEMENS PG 702 __Operand offsets A B 0 D 3 4 E F Instructions Operators Operand types 5 6 j k LD LDx TMR CTR MAC C Ax S Cf PG Menu amp l 7 A ANx O Ox Menu yue V Cx FCT B J 8 0 QSM TCH No Yes Shift Ea hm Ez CLR Eire a Scrolling Figure 4 1 PG 702 Keypad and Display PG 702 Programming Device 4 2 C79000 G7076 C709 01 Working with the PG 702 Key Labeling and Key Functions The key functions depend on the current mode of the programming device and on the cursor position in the entry fields Note All keypad entries are checked for validity The PG 702 beeps or displays an error
104. ps or clothes made of plastic fibers Place the modules only on conductive surfaces tables with ESD surface conductive ESD foam plastic ESD bags ESD containers Avoid direct contact of electrostatic sensitive devices with visual display units monitors or TV sets PG 702 Programming Device C79000 G7076 C709 01 Technical Specifications and Hardware D 4 Approbation Radio Interference Suppression Manufacturer s Importer s Certification This is to certify that the PG 702 programming device 6ES7702 0AA01 0YAO EAN 41 25515 16 1189 is interference suppressed to limit class B in compliance with regulations 1046 84 and 483 86 laid down by the German Federal Ministry of Post and Telecommunications as well as the German DIN VDE 0875T 11 7 92 standard 5DIN EN 55011 5 CISPR 11 Radio and television reception can be impaired if components and devices not conforming with these regulations are used The Federal German Approvals Office for Telecommuncations BZT has been notified of the introduction of this device and permission was given to verify compliance of the series with the regulations SIEMENS AG Supplementary Note on Interference Suppression Any other devices connected to the product in question must also be interference suppressed in conformity with regulation no 1046 84 or 243 91 of the German Federal Ministry of Post and Telecommunications or guideline 89 336 EWG issued by the European Comm
105. put Entering an Individual Operand When you press a key or key combination an operand identifier or operand offset is entered starting at the cursor position If you enter an illegal key combination a warning beep sounds and the key combination is rejected A corresponding operand is displayed when you enter a specific key combination The cursor moves to the entry field for an operand offset You enter the operand in two steps 1 Enter the operand identifier for example Q M 2 Enter the operand offset for example 0 0 or 2222 The example below shows you how to enter an operand directly Prerequisite The cursor must be in the entry field for instructions Key Result 1 DLD LD is displayed 2 MAC Operand M is displayed instruction Operand identifier x LD ng Subsequent cursor position ED M 3a 0 Enter 0 b Enter period inserted automatically C 0 Enter 0 LD MO 0 ED PG 702 Programming Device C79000 G7076 C709 01 5 9 Editing STL Programs Entering Multiple Operands An instruction can have more than one operand Each operand is separated by a comma The example below shows you how to enter an instruction that has more than one operand Prerequisite The cursor must be positioned on the entry field for instructions Press Key Display 1
106. r an Instruction The example below shows you how to enter the rotate instruction RLD using a selection menu Proceed as follows 1 Menu The following menu is displayed 1 PROGRAM CONTROL gt 2 ROTATE amp SHIFT gt 2 2 The submenu for rotate instructions is displayed 1 RRx gt 2 RLx gt 3 2 Select the rotate left instructions 1 RLB 2 RLW 4 y Scroll in the menu until the RLD instruction is displayed 2 RLW 3 RLD 5 3 The RLD instruction is displayed RID B ED These instructions are not complete and serve to explain this input sequence only PG 702 Programming Device C79000 G7076 C709 01 5 7 Editing STL Programs 5 4 Entering Operands Operand Entry Function After you enter the instruction the cursor is in the entry field for the operand see illustration of display in Section 5 5 The PG 702 is ready to accept only an operand Erroneous operator entries are rejected with a message or a beep After you enter the operand identifier the cursor is positioned to the entry field for the operand offset The PG 702 is ready to accept only an operand offset Erroneous operator entries are rejected with a message Keys for Entering Operand Identifiers and Operand Offsets Figure 5 2 shows the keys that can be used
107. ral services supported by the CPU or PG devices such as CPU mode changes memory contents transfers password protection and setting the time of day TOD clock Table A 19 contains a complete list of PG menu functions Table A 19 PG Menu Functions Menu Text on Display Description of the Function Key Sequence 1 CPU PROGRAM BLOCK gt Uploads Downloads Program Block OB1 1 1 UPLOAD FROM CPU Uploads program block OB1 from CPU 1 1 and enter editor 2 DOWNLOAD TO CPU Downloads program block OB1 from 1 2 PG memory to CPU memory 3 EDIT PROG BLOCK Edits program block OB1 1 3 2 CPU CONFIGURATION gt CPU Configuration 2 1 RETENTIVE RANGES Sets retentive ranges 2 1 2 OUTPUT TABLE Sets up output table 2 2 1 FREEZE OUTPUTS Freezes the outputs at their current 2 2 1 state 2 SET OUTPUT TABLE Selects the state for each output 2 2 2 3 SET INPUT FILTERS gt Sets input filter times 2 3 1 10 0 gt 10 3 Sets the input filter times for 2 3 1 10 0 through 10 3 2 10 4 gt 10 7 Sets the input filter times for 2 3 2 10 4 through 10 7 3 11 0 gt 11 3 Sets the input filter times for 2 3 3 11 0 through 11 3 4 11 4 gt 11 5 Sets the input filter times for 2 3 4 11 4 through 11 5 4 PORT 0 PARAMETERS gt Sets reads port 0 parameters 2 4 1 SET PORT 0 ADDR Sets reads
108. ramming Device C79000 G7076 C709 01 Working with the PG 702 Operands A statement list program is made up of statements that are delineated by at least one network Each statement takes on the following form instruction operand operand operand where indicate optional elements The operand is the data to be operated on or a description of the location of the data to be operated on by the instruction Operands take on two forms e Addresses include the addressing mode address identifier size and offset Address modes are either direct or indirect e Constants are either integer hex ASCII hex or floating point numbers Examples Constants Integer 123 Hexadecimal 16 A987 ASCII Hex 16 41 Floating point 1 23E 6 Direct address VBO V is address identifier B is size for byte 0 is offset MW16 M is address identifier W is size for word 16 is offset SMD42 SM is address identifier D is size for double word 42 is offset 10 0 I is address identifier bit size is indicated by with the first 0 being the byte number and the second zero being the bit number Indirect address ACO VD100 To set up indirect address pointer MOVD only MOVD amp VBO VD100 PG 702 Programming Device C79000 G7076 C709 01 4 5 Working with the PG 702 Keys for Entering Operand Types and Operand Offsets The group of keys for entering operand address identifiers is also located under the display The numeri
109. rate as soon as you connect it to the programmable controller The first item displayed is the version of the firmware This banner is displayed for approximately five seconds and is then replaced by the main PG menu see Figure 3 1 If the PG 702 reports COMM TIMEOUT the CPU port address and or baud rate may not match that expected by the PG 702 Use the FIND CPU ADDRESS feature see Section 4 10 to locate the correct CPU port address and baud rate Confirming Messages The programming device displays system messages in the lower display line If an error message is displayed you must confirm these messages by pressing lt 4 before continuing with your inputs PG702 VERSION x y First display firmware version 1 CPU PROGRAM BLOCK gt Second display 2 CPU CONFIGURATION gt PG menu Figure 3 1 Display at Start Up PG 702 Programming Device 3 2 C79000 G7076 C709 01 Creating a Sample Program Note The PG 702 establishes communication with the CPU before the PG menu is displayed In a multi master network this process can take up to one minute Setting the Language English is set at the factory as the default language If you wish to change the language use the following procedure from within the PG menu 1 Press 6 PG CONFIGURATION 2 Press 5 SET LANGUAGE 3 Press one of the following keys to make your language selection
110. rd to the left Menu _2 2 3 3 SRx gt Shift to the right Menu 2 3 1 SRB Shifts byte to the right Menu 2 3 1 2 SRW Shifts word to the right Menu 2 3 2 3 SRD Shifts double word to the right Menu 2 3 3 4 SLx gt Shift to the left Menu 2 4 1 SLB Shifts byte to the left Menu 2 4 1 2 SLW Shifts word to the left Menu 2 4 2 3 SLD Shifts double word to the left Menu 2 4 3 5 SHRB Shifts value to shift register Menu 2 5 Table A 11 Table Instructions Instruction Function of the Instruction Key Sequence 1 ATT Enters the value in the table Menu _ 3 1 2 LIFO Removes last value from the table Menu _ 3 2 3 FIFO Removes first value from the table Menu 3 3 4 FND Locates value in the table is equal Menu 3 4 5 FND lt gt Locates value in the table not equal Menu 3 5 6 FND gt Locates value in the table is greater than Menu 3 6 7 FND lt Locates value in the table is less than Menu 3 7 A 8 PG 702 Programming Device C79000 G7076 C709 01 Overview of Menus and Instruction Sets Table A 12 Conversion Instructions Instruction Function of the Instruction Key Sequence 1 BCDI Converts BCD into integer Menu 4 1 2 IBCD Converts integer into BCD Menu 4 2 3 ENCO Converts a hexadecimal digit i
111. reater than 2 5 m or 8 2 ft you must operate the PG 702 with a separate power supply unit 24 VDC safety extra low voltage SELV Power supply connection External power supply Programmer cable port Figure 2 1 PG 702 Connections PG 702 Programming Device 2 2 C79000 G7076 C709 01 Installing the PG 702 2 2 Changing the Keyboard Overlay The two removable keyboard template overlays shown in Figures 2 2 and 2 3 are provided with the PG 702 Place the mnemonic keyboard overlay you prefer on your PG 702 SIEMENS PG 702 A B 1 2 Cc D 3 4 E F 5 6 LD LDx TMR CTR M AC C Ax S Cf PG Menu amp 7 A ANx O Ox Menu VHC V Cx FCT 9 0 Q SM _T CH No Yes Shift ES hm Ee CLR Figure 2 2 PG 702 Keyboard Overlay for International Mnemonics SIEMENS PG 702 A B 1 2 Cc D 3 4 E F 5 6 LD LDx Zeiten Z hler M AC Z Ax S Kf PG Meni amp 7 U Ux O Ox Menu E HC V Kx FKT 9 0 A SM T KH Nein Ja Shift EE ae ees CLR a Figure 2 3 PG 702 Keyboard Overlay for SIMATIC Mnemonics PG 702 Programming Device C79000 G7076 C709 01 2 3 Installing the PG 702
112. ription A 1 Logic Operations A 2 Instruction Set Menus Pi gt gt 9 Dolini 2 A 3 Operands gt D A 4 PG Menu Functions PG 702 Programming Device C79000 G7076 C709 01 A 1 Overview of Menus and Instruction Sets A 1 Logic Operations Table A 1 AND Instructions Instruction Instruction Function Key Sequence A ANDs bit value A ANx AN ANDs negated bit value A ANx A ANx 1Al ANDs bit value directly Shift A ANx 1 2 ANI ANDs negated bit value directly Shift A ANx 2 3 ABx gt Following instructions via ABx Shift A ANx 3 1 AB ANDs result bit value of byte comparison Shift A ANx 3 1 2 AB lt ANDs result bit value of byte comparison Shift A ANx 3 2 lt 3 AB gt ANDs result bit value of byte comparison Shift A ANx 3 3 gt 4 AWx gt Following instructions via AWx Shift A ANx 4 1 AW ANDs result bit value of word comparison Shift A ANx 4 1 2 AW lt ANDs result bit value of word comparison Shift A ANx 4 2 lt 3 AW gt ANDs result bit value of word comparison Shift A AN
113. rom the target CPU This is true for all blocks The output table information is always written to the CPU whether or not CPU configuration exists PG 702 Programming Device 4 32 C79000 G7076 C709 01 Working with the PG 702 Compare Program in Flash to Program in CPU Memory PG Menu 4 3 The third flash function CPU MEM PG FLASH compares the program in the non volatile flash memory of the PG 702 to the program in the S7 200 CPU in the following order 1 Program block 2 Data block 3 CPU configuration If there are no blocks in flash memory the comparison aborts and the PG 702 displays an error message noting that the flash memory is empty If there is at least one block the comparison proceeds If there is a mismatch the PG 702 displays a message showing which block did not match If there is a communication error during the comparison the comparison is aborted and the PG 702 displays the communication error message The CPU configuration and output table data are handled differently from the program block and data block The current CPU configuration is first uploaded from the CPU If there is no current CPU configuration in the CPU the configuration structure in the flash memory is checked to see if there was a CPU configuration in the original CPU If the status is not the same the comparison fails If the CPU configuration exists in both places the PG 702 compares the CPU configuration fields
114. rove the quality and usefulness of our publications Please take the first available opportunity to fill out this questionnaire and return it to Siemens Please give each of the following questions your own personal mark within the range from very good to 5 poor Do the contents meet your requirements Is the information you need easy to find Is the text easy to understand Does the level of technical detail meet your requirements Aa TO DA Please rate the quality of the graphics tables Additional comments PG 702 Programming Device 2 6ES7702 0AA01 8BA0 01
115. se the up and down arrow keys to move among the outputs and accept the values you enter Use the FCT 1 key sequence to save the values to the CPU PG 702 Programming Device C79000 G7076 C709 01 4 19 Working with the PG 702 Setting the Input Filters PG Menu 2 3 Use the SET INPUT FILTERS function to set the input filter delay times Input filter delay times are set in groups of input points After you select _ 3 from the CPU configuration menu scroll through the display to view the groups shown in Figure 4 6 on the PG 702 only two are displayed at a time I0 0 gt 10 3 I0 4 gt 10 7 I1 0 gt 11 3 I1 4 gt 11 5 Aa UNBE Figure 4 6 Sample of I O Groups To select a group of input points enter the number of the group 1 through 4 or place the cursor on the group you want to select and press the lt key The following screen appears to indicate the values that can be entered and what the current value is RANGE 0 7 0 PG 702 Programming Device 4 20 C79000 G7076 C709 01 Working with the PG 702 You can select eight different predefined delays for each group of input points Table 4 5 shows which value to enter in the PG 702 in order to assign a particular delay time to a CPU The predefined delay values differ based on CPU model Table 4 5 Input Delay Tim
116. sensitive to contact with any person AtaS ESDs are subject to voltages and energies far below the range that can still be perceived by human beings These voltages are present even if you touch a component or module without previously being electrostatically discharged In most cases the damage caused to components by such overvoltages is not immediately noticeable and results in failure only after a prolonged period of time An electrostatic discharge is e perceptible from 3500 Volt e audible from 4500 Volt e visible from 5000 Volt A fraction of these voltages is capable of destroying or damaging electronic devices PG 702 Programming Device C79000 G7076 C709 01 D 5 Technical Specifications and Hardware Handling PG 702 When the Case is Open for Installation If possible avoid any contact with electrostatic sensitive devices Hold modules without touching the pins of components or printed conductors Touch electrostatic sensitive devices only in the following cases If you wear a wristband complying with ESD specifications If you use special ESD footwear or ground straps attached to your shoes when walking on an ESD floor Before working on electronic devices first discharge your body by simply touching a conductive grounded part e g bare metal parts of cabinets water pipes etc Protect the modules against contact with chargeable and highly insulating materials such as plastics insulating table to
117. sitioning 5 14 D Dark grey key 4 7 Data Block Edit mode editing 4 28 entering statements 4 29 view of value 4 27 Data Block Editor cursor movement key definitions Data Blocks editing 1 3 Data Editor mode 4 8 Index 1 Index FLOAT 4 28 floating HEX 4 28 hexadecimal 4 28 INT 4 28 UINT 4 28 integer signed 4 28 unsigned 4 28 Data Move instructions A 10 DE mode 4 8 Debug function menu 6 2 functions 6 2 single scan function 6 8 Debug mode 4 8 4 12 Debug Read Write variables Delays for input points 4 21 Delete Password 4 49 Deleting instruction line 5 14 parts of an instruction 5 14 DG mode Display 4 8 Edit mode 5 12 information line 5 13 Downloading program to CPU Downloading to CPU DP Port Address DP port parms DP status 4 24 DP Status parameter screens 4 25 E ED mode 4 8 Edit a program functions 5 2 Edit mode 4 8 Editing CPU program blocks 1 3 data blocks 1 3 system data blocks 1 3 Index 2 Editing aids 5 15 GO TO 5 16 key Editing Data Block 4 28 Editing Programs 5 2 Electrostatic Sensitive Devices handling D 5 Enter Password 4 48 Entering instructions keys 4 4 sample task ways to enter 4 4 Entering restricted mode 4 45 Entry aborting canceling 5 14 Error codes clocktime C 2 object management pasme C 2 password protection PPI DRV protocol
118. sor is at the entry field for the instruction Now enter the second instruction Key Function Display 1 Menu Activate the menu for instructions 1 PROGRAM CONTROL gt ROTATE amp SHIFT gt 2 Repeatedly Scroll through the instructions menu STACK INSTRUCTNS gt 8 MATH INSTRUCTNS gt 8 Select the MATH INSTRUCTIONS menu gt gt 3 1 Select instructions I D 1 Select l instruction I ED 1 2 4 Shift Select first constant V Cx identifier I 1 1 Enter 1 as the value ED 1 2 of the constant 5 Enter second operand MW The I 1 MW1 M AC comma is generated 1 automatically ED 1 2 1 Enter 1 as the operand offset 6 Terminate the input and move the cursor to the next line ED 1 3 PG 702 Programming Device C79000 G7076 C709 01 3 9 Creating a Sample Program Entering the Third Instruction Line The cursor is at the entry field for the instruction Now enter the third instruction Key Function Disp
119. sted in the tables below are not accepted this is usually because the instruction and address are not allowed in that particular combination PG 702 Programming Device C79000 G7076 C709 01 A 13 Overview of Menus and Instruction Sets Key Functions The keys are depicted in Table A 18 to show which function of the key is active when entering addresses and address values 7 7 Table A 18 Operands Key is activated for the function marked above the key Key is activated for the function stated on the key Address Description Key Sequence Identifier Dependent on the instruction Q Output Q SM QB Output byte QW Output word QD Output double word Dependent on the instruction Input IB Input byte IW Input word ID Input double word Dependent on the instruction M Bit Memory M AC MB Bit Memory byte MW Bit Memory word MD Bit Memory double word Dependent on the instruction S Cf S Sequence Control Relay Memory SB Sequence Control Relay Memory byte SW Sequence Control Relay Memory byte word SD Sequence Control Relay Memory byte word double word Dependent on the instruction Shift Q SM SM Special Bit Memory SMB Special Bit Memory byte SMW Special Bit Memory word SMD Special Bit Memory double word Dependent on the instruction V Cx V Variable Memory VB Variable Memory byte VW Variable Memory word VD Variabl
120. structions Index 4 Output table 4 16 setting 4 19 Overview instruction sets of menu A 1 P Panel cabinet mounting 2 4 Password access capabilities 4 9 logout 4 49 protection protection errors Password prompt 4 9 Passwords delete password enter function function New Change password 4 48 PG 702 additional assistance iv application areas 4 2 connecting to the CPU 2 2 3 2 oan of how to power up and set the PG 702 3 external poner supp 2 2 first power up 3 2 keypad 4 2 mounting the 2 4 operating modes 4 12 order number related manual information iv setting the programming language 3 3 uploading CPU program to PG Configuration functions 4 41 capability level 4 44 entering restricted mode Find CPU Address 4 42 Select CPU Address 4 42 Set Baud Rate 4 42 Set Beep Volume 4 44 Set Language 4 43 Set PG Address 4 42 CPU Memory to PG Flash 4 30 PG Flash to CPU Memory 4 31 PG functions key PG menu functions A 16 under restricted mode 4 45 PG 702 Programming Device C79000 G7076 C709 01 Index Port 0 functions 4 22 parameters setting parameters 4 22 Port 1 functions 4 23 parameters 4 setting parameters 4 23 Position cursor Positioning cursor 5 14 Power suppply external Power up confirming messages 3 2 Powering up the PG 702 3 2 PPI interface D 4 PPI DRV errors Problems trou
121. t of the operand e The operand offset is the third part of the operand Figure 5 3 shows an instruction line with the character spacing allowed The information line normally seen in a PG 702 display is not shown in this example One two blank characters Ag lt __ Operand offset Instruction line gt A I0 1 D Instruction Operand Figure 5 3 Sample Instruction Line with Character Spacing If the complete instruction line cannot be shown on the display you can scroll through the instruction line with the key or Shift gt keys PG 702 Programming Device C79000 G7076 C709 01 5 11 Editing STL Programs Information Line An information line is always displayed in the program block edit mode This line contains supplementary information about the instruction line See Figure 5 4 The information line displays information related to the particular instruction line and warnings and error messages The information line displays the active mode the current network and instruction lines and the Shift S display e The active mode display shows ED program block edit mode e The network and instruction line display shows the number of the currently displayed network and instruction line The first network or line has number 1 e The Shift display shows when the _ Shift key is pressed A flashing S means that
122. t the password protection is immediately in effect If this function is not used before you disconnect the PG 702 from the CPU the CPU can be accessed without entering a password for up to two minutes This means another user could connect within the two minute time frame and edit the program without having to enter the password If You Forget Your Password If you forget your CPU password you can regain access to your CPU but not to the information contained in the CPU You can clear all CPU memory to recover the CPU by pressing _PG Menu 5 3 1 lt PG 702 Programming Device C79000 G7076 C709 01 4 49 Working with the PG 702 4 12 4 50 Debug Read Write Variables PG Menu 8 Use the DEBUG R W VARS function shown in Table 4 17 to test the program Chapter 6 describes these functions in more detail Press PG Menu down to view these functions and scroll Table 4 17 Debug Read Write Variables Menu Text on Display Description of Function Key Sequence 8 DEBUG R W VARS gt Single scan and read write 8 variables 1 STATUS CHART gt Read write variables 8 1 1 SETUP CHART Create variable list 8 1 1 2 WRITE CHART VARS Write variable list 8 1 2 3 READ CHART VARS Read variable list 8 1 3 2 FORCE FUNCTIONS gt Force variables and I O 8 2 1 FORCE VARIABLES Force variables 8 2
123. the _ Shift key is pressed The S remains until you press another key A blank Shift display means that the Shift key is not pressed The instruction line normally seen in a PG 702 display is not shown in Figure 5 4 Active mode Current network Current Shift pressed instruction line Figure 5 4 Sample Information Line with Supplementary Information Information Line with Warnings and Error Messages Warnings and error messages also appear in the information line e Warnings disappear automatically the next time you make an entry They do not have to be confirmed e Acknowledge error messages with lt 4 PG 702 Programming Device 5 12 C79000 G7076 C709 01 Editing STL Programs Positioning the Cursor As soon as you have loaded a program block the cursor points to the first instruction in the instruction line You can position the cursor with the keys shown in Table 5 1 Table 5 1 Explanations for Positioning the Cursor in the Instruction Line Cursor Movement Positions the cursor inside an instruction line Key _ lt Positions the cursor to the beginning of the next line Positions the cursor to the beginning of the previous line y r Positions the cursor to the beginning of the network preceding the current network Positions the cursor to the beginning of the network following the current network
124. the maximum allowed size you should download the current program to the CPU If the download is successful upload the program from the CPU The networks are resized to the 250 statement maximum when you upload the program If there is an error during the download the CPU will not accept the downloaded program The PG 702 displays the error Press to confirm the error message The editor reopens after confirmation of the error and automatically resizes the networks to the 250 statement maximum Downloading to the CPU In order to run or test a program you must download it to the CPU Select the second CPU program block function DOWNLOAD TO CPU to download your program to the CPU Once the program has been downloaded the PG 702 displays the main PG menu again The program can also be downloaded from within the editor by pressing the FCT 5 key sequence Once the program has been downloaded the PG 702 returns to the program editor Note Programs being edited in the PG 702 are stored in RAM and are not retained through a power loss When entering large programs you should occasionally perform the DOWNLOAD TO CPU function This prevents losing the entire program in the event of a power loss or inadvertent PG 702 cable disconnection Exiting the Program Editor To exit the program editor press the PG Menu key This allows access to the other functions of the PG 702 Returning
125. to the Program Editor If you leave the program block edit mode to perform another function you can continue your editing work by selecting the third CPU program block function EDIT PROGRAM BLOCK The PG 702 displays the first line of your program and shows the program block edit mode identifier ED in the second line of the display See Chapter 5 for additional information about editing the program block and moving within the editor PG 702 Programming Device C79000 G7076 C709 01 4 15 Working with the PG 702 4 6 4 16 CPU Configuration PG Menu 2 The CPU configuration functions modify the system data block These functions upload the current configuration modify the specified field in the CPU configuration and then download the new configuration to the CPU To access the menu for the CPU configuration select _ 2 menu The functions listed in Table 4 4 are available Table 4 4 CPU Configuration Menu from the main PG Menu Text on Display Description of Function Key Sequence 1 RETENTIVE RANGES Set retentive ranges 2 1 2 OUTPUT TABLE gt Set up the output table 2 2 1 FREEZE OUTPUTS Freeze the outputs at their current 2 2 1 states 2 SET OUTPUT TABLE Se
126. unity Products complying with these regulations are provided with the manufacturer s certificate or a certificate issued by the Federal German Approvals Office for Telecommunications BZT or a CE mark Products that do not fulfill the relevant stipulations require an individual approval by the Federal German Approvals Office for Telecommuncations BZT PG 702 Programming Device C79000 G7076 C709 01 D 7 PG 702 Programming Device C79000 G7076 C709 01 PG 702 Troubleshooting Guide Table E 1 contains common problems with the PG 702 a list of possible causes and the recommended solutions Table E 1 Troubleshooting Problem Cannot communicate with CPU Possible Causes Wrong station address Solutions Select the correct CPU station address using the PG configuration menu PG baud rate does not match CPU baud rate Change PG 702 baud rate CPU not powered up Apply power to the S7 200 CPU Bad communication cable Replace communication cable PG 702 powers up before the CPU comes on line Power cycle the PG 702 Received an unrecoverable communication error Power cycle the PG 702 CPU in wrong mode Mode switch on CPU in the wrong position Put mode switch on CPU in TERM position PG 702 Programming Device C79000 G7076 C709 01 E 1 PG 702 Programming Device C79000 G7076 C709 01 Index A Aborting entry 4 11 Aborting an operator entry
127. uts e yy Number of outputs The error line can display the following messages e NO ERRORS e NO MODULE displayed if there is no module in the given slot e ERRC I O configuration error e ERR R Out of range error e ERRP No user power error Use the CLR PG 702 Programming Device C79000 G7076 C709 01 key to terminate the read I O configuration function 4 37 Working with the PG 702 Read Write Time Of Day Clock 4 38 PG Menu 5 6 To read the time of day c lock in the CPU press PG Menu 5 6 1 The READ TIME OF DAY function displays the time of day clock in the following format YY MM DD HH MM SS lt DAY OF THE WEEK gt For example February 19 1998 at 8 15 a m 98 02 19 08 THURSDAY 15 00 Press any key to exit the function Press PG Menu 5 6 2__ to change the time of day clock The WRITE TIME OF DAY fu nction displays the following screen first YEAR xx lt valid range gt The display prompts you day of the week Confirm shows your entries and a to enter the year month day hour minute second and each entry by pressing the key The display then sks if you want to write the new time of day to the CPU Confirm by pressing lt Use the keys shown in Tabl
128. vice C79000 G7076 C709 01 4 11 Working with the PG 702 4 4 Operating Modes of the PG 702 The PG 702 operates in three modes the STL edit mode the data edit mode and the debug mode These modes differ in the use of the display the functions of some keys and the set of inputs allowed You can also invoke a set of PG menu functions in almost any mode to perform an action without changing the operating mode of the PG 702 Table 4 3 shows the operating modes of the PG 702 the two letter identifier shown at the beginning of the second line of the display when space permits and the sequence of keys to press to enter the various functions Table 4 3 PG 702 Operating Modes Mode Second Functionality Keystroke s Line of Display STL Edit ED Edit User Program Block PG Menu 1 1 or PG Menu 1 3 Edit CPU Configuration PG Menu 2 Data Edit DE Edit User Data Block PG Menu 3 1 or PG Menu 3 3 Debug DG Read and write variables status PG Menu 8 1 chart Force and unforce variables PG Menu 8 2 Single scan PG Menu 8 3 4 12 PG 702 Programming Device C79000 G7076 C709 01 Working with the PG 702 Program Block Edit Mode The PG 702 enters the STL edit mode whenever a program block is uploaded To exit the STL edit mode press the PG Menu key Data Block Edit Mode The PG 702 enters the data e
129. x 4 3 gt 5 ADx gt Following instructions via ADx Shift A ANx 5 1 AD ANDs result bit value of byte comparison Shift A ANx 5 1 2 AD lt ANDs result bit value of byte comparison Shift A ANx 5 2 lt 3 AD gt ANDs result bit value of byte comparison Shift A ANx 5 3 gt 6 ARx gt Following instructions via ARx Shift A ANx 6 1 AR ANDs result bit value of real comparison Shift A7ANK 6 1 2 AR lt ANDs result bit value of real comparison Shift A ANx 6 2 lt 3 AR gt ANDs result bit value of real comparison Shift A ANx 6 3 gt PG 702 Programming Device A 2 C79000 G7076 C709 01 Overview of Menus and Instruction Sets Table A 2 OR Instructions Instruction Function of the Instruction Key Sequence O ORs bit value O Ox ON ORs negated bit value O Ox O Ox 10l ORs bit value directly Shift O Ox 1 2 ONI ORs negated bit value directly Shift O Ox 2 3 OBx gt Following instructions via OBx Shift O Ox 3 1 OB ORs result bit value of bytecomparison Shift O Ox 3 1 2 OB lt ORs result bit value of byte comparison Shift O Ox 3 2 lt 3 OB gt
130. y Function y Scroll to next entry A Scroll to previous entry lt Enter operand or value lt Move cursor left Move cursor right CLR Delete a character Shift CLR Cancel the operation and return to PG menu FCT Force function menu Unforce an element 0 through 9 Digits to enter address or value Operand keys Enter the operand type PG 702 Programming Device C79000 G7076 C709 01 6 5 Debugging and Testing the Program Adding a New Force Variable Select the key combination PG Menu 8 2 1 The force variable list is read from the S7 200 CPU If no values were forced the following display is shown 1 DG 0 To force a value enter the variable type and address and then press The cursor is repositioned at the value field Enter the value and press A The variable is now forced in the CPU The PG 702 displays the PG menu If a force variable list already exists in the CPU the PG 702 displays a screen like the following 1 VB10 DG 25 To enter a new variable use the 4 key to scroll to the end of the list until an empty entry is displayed 10 DG 0 Enter the operand and press 4 Enter the value and press The variable is now forced in the CPU The PG 702 displays the PG menu Changing the Format of a Variable To
Download Pdf Manuals
Related Search
Related Contents
Access Control 関連PDF1 IPLEX FX クイックガイド FC-265, FC-365 Vollmond/Full Moon/Pleine Lune User Manual For XMR400 XMR400S Bedienungsanleitung TAFCO WINDOWS NU2-193S-I Instructions / Assembly T'nB CIIP034026 mobile phone cable Copyright © All rights reserved.
Failed to retrieve file