Planning Guide 12.93 EditionManufacturer DocumentationSINUMERIK 840CSINUMERIK 880/880 GA2PLC 135 WB/WB2/WD
11.92 1 Introductory Remarks1.3.1 Program structure• Function blocks (FBs and FXs)The FBs are used to program frequently recurring complex functions
9 STEP 5 Operation Set with Programming Examples 11.929.3.12 Processing operations9.3.12 Processing operationsOperation DescriptionDO= Process forma
11.92 9 STEP 5 Operation Set with Programming Examples9.3.12 Processing operations• If Q 4.1 is to be set, the value KH0184 (pointer + KH0000) must
9 STEP 5 Operation Set with Programming Examples 12.939.3.13 Operations for page memory processing9.3.13 Operations for page memory processing 1)Ope
12.93 9 STEP 5 Operation Set with Programming Examples9.3.14 Other operations9.3.14 Other operationsOperation DescriptionADD BF -128 to Add byte co
9 STEP 5 Operation Set with Programming Examples 12.939.3.14 Other operationsIf you want to calculate back within a block, you must use the instruct
12.93 9 STEP 5 Operation Set with Programming Examples9.3.14 Other operationsThe following applies when defaulting the offset address:LIR, TIR, TBW:
11.92 10 Rules of Compatibility between the LAD, CSF and STL Methods of Representation10.1 General10 Rules of Compatibility between the LAD, CSFand
10 Rules of Compatibility between the LAD, CSF and STL Methods of Representation 11.9210.2 Rules of compatibility for graphic program input (LAD, CS
11.92 10 Rules of Compatibility between the LAD, CSF and STL Methods of Representation10.2 Rules of compatibility for graphic program input (LAD, CS
10 Rules of Compatibility between the LAD, CSF and STL Methods of Representation 11.9210.2 Rules of compatibility for graphic program input (LAD, CS
1 Introductory Remarks 11.921.3.2 Program organizationOrganization, program, function and sequence blocks can invoke other program, function andsequ
11.92 10 Rules of Compatibility between the LAD, CSF and STL Methods of Representation10.3 Rules of compatibility for program input in a statement l
10 Rules of Compatibility between the LAD, CSF and STL Methods of Representation 11.9210.3 Rules of compatibility for program input in a statement l
11.92 10 Rules of Compatibility between the LAD, CSF and STL Methods of Representation10.3 Rules of compatibility for program input in a statement l
10 Rules of Compatibility between the LAD, CSF and STL Methods of Representation 11.9210.3 Rules of compatibility for program input in a statement l
11.92 10 Rules of Compatibility between the LAD, CSF and STL Methods of Representation10.3 Rules of compatibility for program input in a statement l
10 Rules of Compatibility between the LAD, CSF and STL Methods of Representation 11.9210.3 Rules of compatibility for program input in a statement l
11.92 10 Rules of Compatibility between the LAD, CSF and STL Methods of Representation10.3 Rules of compatibility for program input in a statement l
10 Rules of Compatibility between the LAD, CSF and STL Methods of Representation 11.9210.3 Rules of compatibility for program input in a statement l
11.92 10 Rules of Compatibility between the LAD, CSF and STL Methods of Representation10.3 Rules of compatibility for program input in a statement l
10 Rules of Compatibility between the LAD, CSF and STL Methods of Representation 11.9210.3 Rules of compatibility for program input in a statement l
11.92 1 Introductory Remarks1.3.3 Program processingFig. 1.4 Types of interrupt processingOB 2 OB 3Process interrupt processingOB 4Aperiodic trigger
11.92 10 Rules of Compatibility between the LAD, CSF and STL Methods of Representation10.3 Rules of compatibility for program input in a statement l
10 Rules of Compatibility between the LAD, CSF and STL Methods of Representation 11.9210.3 Rules of compatibility for program input in a statement l
12.93 11 Hardware11.1 General notes on the PLC 135 WB/WB211 Hardware11.1 General notes on the PLC 135 WB/WB2The interface controller consists of one
11 Hardware 12.9311.1.1 Operating the PLC 135 WB/WB2 using the mode switch11.1.1 Operating the PLC 135 WB/WB2 using the mode switchOn the front pane
12.93 11 Hardware11.1.1 Operating the PLC 135 WB/WB2 using the mode switchRUN STOP O. RESET tv >10 sec. STOP tv>2 sec. O. RESET STOP RUNWi
11 Hardware 12.9311.2 General notes on the PLC 135 WD11.2 General notes on the PLC 135 WDThe PLC 135 WD module is used with SINUMERIK 840C, SW 3 and
12.93 11 Hardware11.2.1 Operating the PLC 135 WD11.2.1 Operating the PLC 135 WDThe PLC 135 WD no longer has a start-up switch. The functions WARM RE
12.93 12 Programming and Test Functions with the Programmer12.1 Requirement12 Programming and Test Functions with theProgrammer12.1 RequirementTo be
12 Programming and Test Functions with the Programmer 12.9312.3 START PLC12.3 START PLCThe following restart modes can be selected via the programme
12.93 12 Programming and Test Functions with the Programmer12.4 Block handling using the programmer12.4 Block handling using the programmerOVERALL R
1 Introductory Remarks 12.931.4 Differences between the PLC 135 WB2 and the PLC 135 WD1.4 Differences between the PLC 135 WB2 and the PLC 135 WDThe
11.92 2 Program Blocks2.1 Programming program blocks2 Program Blocks2.1 Programming program blocksThe information presented in this Section applies
2 Program Blocks 12.932.2 Calling program blocks2.2 Calling program blocksBlock calls are used to release the blocks for execution (Fig. 2.2). These
11.92 3 Data Blocks3.1 Programming data blocks3 Data Blocks3.1 Programming data blocksThe data required by the user program is stored in data blocks
3 Data Blocks 11.923.2 Calling data blocks3.2 Calling data blocksData blocks can be called unconditionally only. Once called, a data block remains i
12.93 3 Data Blocks3.2 Calling data blocksWhen a program block in which a data block is addressed calls another program block that ad-dresses anothe
3 Data Blocks 11.923.3 Processing data words greater than data word 2553.3 Processing data words greater than data word 255The size of data blocks w
SINUMERIK 840CSINUMERIK 880/880 GA2PLC 135 WB/WB2/WDPlanning GuideManufacturer Documentation12.93 EditionApplies to:Control Software versionSINUMERIK
12.93 4 Function Blocks4.1 General remarks4 Function Blocks4.1 General remarksFunction blocks are used to implement frequently recurring or extremel
4 Function Blocks 11.924.2 Structure of function blocks4.2 Structure of function blocksA function block comprises a block header, name and parameter
12.93 4 Function Blocks4.3 Calling and initializing function blocks4.3 Calling and initializing function blocksFunction blocks (FBs, FXs) are presen
4 Function Blocks 11.924.3.2 Parameter listFig. 4.2 Calling a function blockBECallis generated by theprogrammerCallis generated by theprogrammerBEFB
11.92 4 Function Blocks4.4.3 Formal operand (block parameter name)4.4.3 Formal operand (block parameter name)A formal operand may comprise no more t
4 Function Blocks 11.924.4.4 Block parameter typesOperations to which parameters are to be assigned (substitution operations) are programmedin the f
11.92 4 Function Blocks4.4.5 Block data type and permissible actual operand4.4.5 Block data type and permissible actual operandPermitted actual oper
11.92 5 Organization Blocks5.1 General remarks5 Organization Blocks5.1 General remarksThe organization blocks form the interface between the system
5 Organization Blocks 12.935.1 General remarksAppropriate programming of the organization blocks enables the following:• Cyclic execution(see Sectio
12.93 5 Organization Blocks5.2 OverviewOrganization block OB 1 must always be available. Organization blocks OB 2 to OB 7 are notmandatory. If they
SINUMERIK® documentationPrinting historyBrief details of this edition and previous editions are listed below.The status of each edition is shown by th
5 Organization Blocks 11.925.3.1 Normal mode5.3.1 Normal modeIn normal mode the cyclically processed program can only be interrupted at the block li
11.92 5 Organization Blocks5.3.3 Special mode5.3.3 Special modeIn special mode the user program can be interrupted after each MC5 instruction (depen
5 Organization Blocks 11.925.3.4 Semaphore technique within the processing levels of a PLC (LIM/SIM)Example:A user program is processed cyclically,
11.92 5 Organization Blocks5.3.5 Semaphore technique in multiprocessor mode (SES/SEF)5.3.5 Semaphore technique in multiprocessor mode (SES/SEF) 1)Th
5 Organization Blocks 11.925.3.5 Semaphore technique in multiprocessor mode (SES/SEF)Command description:The command "Set semaphore" (SES)
11.92 5 Organization Blocks5.3.6 Priority assignment for interrupts5.3.6 Priority assignment for interruptsIf several interrupts occur simultaneousl
5 Organization Blocks 11.925.4.1 Interface between system program and cyclic programFig. 5.4 Cyclic program scanning5 4 32Operating system PB nOB 1B
11.92 5 Organization Blocks5.4.2 Basic program organization5.4.2 Basic program organizationOrganization block OB 1 contains the basic structure of t
5 Organization Blocks 11.925.4.2 Basic program organizationFig. 5.6 Breakdown of the user program based on the plant structurePB ”Y”BEBEBEBEBEBEBEB
11.92 5 Organization Blocks5.5 Programming the interrupt service routine5.5 Programming the interrupt service routineThe PLC 135 WB has interrupt-pr
Preliminary RemarksNotes for the readerThis manual is intended for the manufacturers of machine tools using SINUMERIK 840C, 880or 880 GA2.With every n
5 Organization Blocks 12.935.5.2 Timeout in process interrupt processing5.5.2 Timeout in process interrupt processingTimeout with OB 3If an edge cha
12.93 5 Organization Blocks5.6 Programming aperiodic processing5.6 Programming aperiodic processingWith organization block OB 4, blocks can be trigg
5 Organization Blocks 11.925.7.1 Interface between system program and time-controlled processingExample of processing when several alarms occur:Fig.
11.92 5 Organization Blocks5.7.1 Interface between system program and time-controlled processingFig. 5.8 Schematic representation of the blocks in t
5 Organization Blocks 12.935.7.1 Interface between system program and time-controlled processingAfter the request interrupt has been completely proc
11.92 5 Organization Blocks5.8 Calling non-existent blocksOpening a non-existent data blockWhen you attempt to open a non-existent (not loaded) bloc
12.93 6 Start-up6.1 Self-diagnostics program6 Start-upStarting up of the PLC 135 WB / WB2 / WD is subordinate to the starting up of the numericalmac
6 Start-up 12.936.1 Self-diagnostics programTable 6.2 LED displays and their meanings for SINUMERIK 840CLEDs for PLC Significance (SINUMERIK 840C)co
11.92 6 Start-up6.2 System initialization program6.2 System initialization programAfter the self-diagnostics program has run, the system initializat
6 Start-up 12.936.3 User data blocks6.3 User data blocksOn each cold restart, certain data blocks are set up and written in ascending order into the
ContentsPage1 Introductory Remarks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1–11.1 Application . . . . . . . . . . . . .
11.92 7 Device Error Analysis7.1 Interrupt stack7 Device Error AnalysisThe system program can ascertain faulty operation of the central processor, e
7 Device Error Analysis 11.927.1 Interrupt stackBARB Processing check test function activeBARBEND STOP state caused by abortion of processing check
12.93 7 Device Error Analysis7.1 Interrupt stackThe following can be called to screen as the next display:P L C I N F O R M A T I O N I S T A C K
7 Device Error Analysis 12.937.1 Interrupt stackSee Section EVENT FLAGS OF THE PLC 135 WB/WB2/WD for the meaning of the resultcondition codes.KB Inv
12.93 7 Device Error Analysis7.2 Detailed error code7.2 Detailed error codeUsing the programmer's info function, the user can display additiona
7 Device Error Analysis 12.937.2 Detailed error codezob2 = Event counter, processing timeout in OB 2 2)zob3 = Event counter, processing timeout in
12.93 8 Memory Allocation and Organization8.1 Segment allocation8 Memory Allocation and Organization8.1 Segment allocationThe expanded memory area o
8 Memory Allocation and Organization 12.938.1 Segment allocationMemory allocationFig. 8.1 Memory allocation in the PLC 135 WB/WB2 interface control6
12.93 8 Memory Allocation and Organization8.1 Segment allocationMemory allocationTable 8.2 Memory allocation in the PLC 135 WD interface control5 an
8 Memory Allocation and Organization 11.928.2 Segment switch8.2 Segment switch8.2.1 Changing the segment switchThe following sequence applies to the
5.3.3 Special mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5–55.3.4 Semaphore technique within the proces
11.92 8 Memory Allocation and Organization8.3 Block listsThe following should be observed with regard to output of the block lists via the address l
11.92 9 STEP 5 Operation Set with Programming Examples9.1 General notes9 STEP 5 Operation Set with ProgrammingExamples9.1 General notesThe STEP 5 op
9 STEP 5 Operation Set with Programming Examples 11.929.1.1 Numeric representation• Fixed-point double-word: 0 ... +2 147 483 647– 1 ... – 2 147 483
12.93 9 STEP 5 Operation Set with Programming Examples9.1.2 Condition codes of the PLC 135 WB/WB2/WD9.1.2 Condition codes of the PLC 135 WB/WB2/WDTh
9 STEP 5 Operation Set with Programming Examples 11.929.2 Basic operations9.2 Basic operationsBasic operations are programmable in program, sequence
11.92 9 STEP 5 Operation Set with Programming Examples9.2.1 Logic operations, binaryAND operationGiven circuit STEP 5 representationStatement Ladder
9 STEP 5 Operation Set with Programming Examples 11.929.2.1 Logic operations, binaryAND before OR operation 1Given circuit STEP 5 representationSta
12.93 9 STEP 5 Operation Set with Programming Examples9.2.1 Logic operations, binaryOR before AND operationA(O I 1.4O I 1.5)A(O I 2.0O I 2.1)= Q 3.0
9 STEP 5 Operation Set with Programming Examples 11.929.2.2 Storage operationsRS flipflop for latching signal outputA I 2.7S Q 3.5A I 1.4R Q 3.5Give
11.92 9 STEP 5 Operation Set with Programming Examples9.2.2 Storage operationsSimulation of a momentary-contact relayA I 1.7AN F 4.0= F 2.0A F 2.0S
9.3.2 Setting operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9–299.3.3 Timing and counting operations . . . .
9 STEP 5 Operation Set with Programming Examples 11.929.2.3 Load and transfer operations9.2.3 Load and transfer operationsOperation Parameter Functi
11.92 9 STEP 5 Operation Set with Programming Examples9.2.3 Load and transfer operationsExample: Load and transfer function(FB0)(FB0) T QB 54IB 5I
9 STEP 5 Operation Set with Programming Examples 11.929.2.4 Timing and counting operations9.2.4 Timing and counting operationsIn order to load a tim
11.92 9 STEP 5 Operation Set with Programming Examples9.2.4 Timing and counting operationsPulseA I 3.0L KT 10.2SP T 1AT1= Q 4.0Given circuit STEP 5
9 STEP 5 Operation Set with Programming Examples 11.929.2.4 Timing and counting operationsExtended pulseA I 3.1L IW15SE T 2AT2= Q 4.1Given circuit S
11.92 9 STEP 5 Operation Set with Programming Examples9.2.4 Timing and counting operationsON-delayT 0TWRA I 3.5L KT 9.2SD T 3AT3= Q 4.2Given circu
9 STEP 5 Operation Set with Programming Examples 11.929.2.4 Timing and counting operationsOFF-delay0 TTWR0 TTWRAN I 3.4L FW13SF T 5A
11.92 9 STEP 5 Operation Set with Programming Examples9.2.4 Timing and counting operationsLatching ON-delayA I 3.3L DW21SS T 4A I 3.2RT4AT4= Q 4.3Gi
9 STEP 5 Operation Set with Programming Examples 11.929.2.4 Timing and counting operationsSetting a counterA I 4.1L IW20SC1Given circuit STEP 5 repr
11.92 9 STEP 5 Operation Set with Programming Examples9.2.4 Timing and counting operationsResetting a counterA I 4.2RC1AC1= Q 2.4Given circuit STEP
12.93 1 Introductory Remarks1.1 Application1 Introductory Remarks1.1 ApplicationThe PLC 135 WB/WB2/WD is a powerful interface controller for process
9 STEP 5 Operation Set with Programming Examples 11.929.2.4 Timing and counting operationsDown countingA I 4.0CD C 1I4.0Binary16 bitsCQ-RSCIGiven ci
11.92 9 STEP 5 Operation Set with Programming Examples9.2.5 Comparison operationsCompare for equalL IB19L IB20!= F= Q 3.0Given circuit STEP 5 repres
9 STEP 5 Operation Set with Programming Examples 11.929.2.5 Comparison operationsCompare for greaterQ3.2Given circuit STEP 5 representationStatement
11.92 9 STEP 5 Operation Set with Programming Examples9.2.5 Comparison operationsCompare for greater than or equal toL DD10L DD20>=G=Given circui
9 STEP 5 Operation Set with Programming Examples 11.929.2.6 Block calls9.2.6 Block callsOperation Parameter FunctionJUJCPBFBSBOB0 to 2550 to 2550 to
11.92 9 STEP 5 Operation Set with Programming Examples9.2.6 Block callsUnconditional call for a function block...JU FB 72...Given circuit STEP 5 rep
9 STEP 5 Operation Set with Programming Examples 11.929.2.7 Code operations9.2.7 Code operationsThe code operations allow a time or count, which is
11.92 9 STEP 5 Operation Set with Programming Examples9.2.8 Arithmetic operations9.2.8 Arithmetic operationsArithmetic operations can only be repres
9 STEP 5 Operation Set with Programming Examples 11.929.2.9 Other operations9.2.9 Other operationsThe following operations can only be represented i
11.92 9 STEP 5 Operation Set with Programming Examples9.3.1 Logic operations, binary9.3.1 Logic operations, binaryOperation DescriptionA = AND funct
1 Introductory Remarks 12.931.2.2 High-level language programming1.2.2 High-level language programmingThe tasks of the PLC in a complex machine tool
9 STEP 5 Operation Set with Programming Examples 12.939.3.3 Timing and counting operations9.3.3 Timing and counting operationsOperation DescriptionR
11.92 9 STEP 5 Operation Set with Programming Examples9.3.3 Timing and counting operationsExamples:Function block call Program in Programfunction b
9 STEP 5 Operation Set with Programming Examples 11.929.3.4 Enabling operations for timing and counting operations9.3.4 Enabling operations for timi
11.92 9 STEP 5 Operation Set with Programming Examples9.3.5 Bit test operations (FB, FX only)9.3.5 Bit test operations (FB, FX only)Operation Parame
9 STEP 5 Operation Set with Programming Examples 11.929.3.6 Load and transfer operations9.3.6 Load and transfer operationsOperation DescriptionL = L
11.92 9 STEP 5 Operation Set with Programming Examples9.3.7 Logic operations, digital9.3.7 Logic operations, digitalOperation DescriptionAW AND oper
9 STEP 5 Operation Set with Programming Examples 11.929.3.9 Conversion operations9.3.9 Conversion operationsOperation MeaningCFW One's compleme
11.92 9 STEP 5 Operation Set with Programming Examples9.3.11 Jump operations9.3.11 Jump operationsThe jump destination for unconditional and conditi
9 STEP 5 Operation Set with Programming Examples 11.929.3.11 Jump operationsOperation Description JOS = The jump will be executed if "Overflow
11.92 9 STEP 5 Operation Set with Programming Examples9.3.11 Jump operationsExample (arithmetic operations):: L = WERT: L = MESS:+F: JZ = ZERO (Ju
Comments to this Manuals