The text of a manual · part 42 of 50
Festo Software Tools: Statement list and Ladder diagram for SF 3, FST 200 Manual, pages 411 to 420
Pages 411 to 420 of 496
The original document is the PDF (3.1 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
Filed in the catalog under the Festo FPC-202
Page 411
FST 200-STL
0070 0071 0072 0073 0074 0075 0076 0077 0078 0079 0080 0081 0082 0083 0084 0085
THEN
Appendix A
RESET RESET JMP TO
O0.0 O0.1 1
’Start display ’Automatic mode display
===================================== Step 20 (8) ’Set-up program IF NOP THEN RESET O0.7 ’Drilling device advance SET O0.6 ’Retract drilling device ===================================== Step 21 (9) IF I0.5 ’Drilling process normal position THEN RESET O0.5 ’Clamping cylinder (0=retracted) RESET O0.1 ’Automatic mode display RESET O0.0 ’START display JMP TO 1
Monitoring program (P7) 0001 0002
Step 100 IF
0003 0004 0005
THEN
0006 0007 0008 0009 0010 0011 0012 0013
9610a
IF
THEN
IF THEN
(1) I0.2 RESET RESET N
O0.4 O0.2 I0.2
AND N LOAD N TO SET SET
T0 O0.4 O0.4 T0 O0.2 NOP
’EMERGENCY STOP monitoring ’EMERGENCY STOP switch (0=activated) ’Flasher output for EMERGENCY STOP ’EMERGENCY STOP display ’EMERGENCY STOP switch (0=activated) ’Flash frequency ’Flash output for EMERGENCY STOP ’Flasher output for EMERGENCY STOP ’Flash frequency ’EMERGENCY STOP display
PSE
A-25
Page 412
FST 200-STL Appendix A FESTO
A-26 9610a
Page 413
FST 200-LDR
Appendix B
Appendix B Ladder diagram B.1
Operations and operands in FST 200 LDR This Appendix provides you with a summary of the possible operations in an LDR program and the permissible operands in SF 3. In Appendix B 1.1, the effect method and the effect range (operands) for LDR commands are listed. In Appendix B 1.2, you will find lists of permissible operands for the SF 3.
B.1.1 Operations of an LDR program Normally open contact: Effect: The one-bit operand is queried and, in response to a logic 1 signal, the normally open contact is connected to the circut.
Operand: Operand is the symbolic or absolute designation of any one-bit operand (refer to operand list in B1.2). It is entered by means of the LDR symbol (refer to Section 5.3.1).
Normally closed contact: Effect: The one-bit operand is queried and, in response to a logic 0 signal, the normally closed contact is connected
Operand: Operand is the symbolic or absolute designation of any one-bit operand (refer to operand list in B1.2). It is entered by means of the LDR symbol (refer to Section 5.3.1).
9610a
B-1
Page 414
FST 200-LDR
Appendix B
Jump target mark: Effect: The jump target mark designates a current path as a jump address.
Label: Label can bear any name up to nine characters in length. This must start with a letter. No distinction is made between upper and lower case (also refer to Section 5.3.7).
Comparison box: Effect: The contents of operand 1 and 2 is checked in accordance with the selected comparison operation.
Operand: As the operand, you can enter the symbolic or absolute designation of any multi bit operand (refer to operand list in B1.2). As a maximum, five comparison boxes can be entered for each current path (refer to 5.3.2).
Possible comparison operations are: Operand 1 = (equal) Operand 2 Operand 1 > (greater) Operand 2 Operand 1 < (less) Operand 2 Operand 1 >= (greater or equal) Operand 2 Operand 1 <= (less or equal) Operand 2 Operand 1 <> (unequal) Operand 2
B-2
9610a
Page 415
FST 200-LDR
Appendix B
Coil: Effect: The value determined in the conditional part is assigned or its assignment is negated.
Operand: Operand is the symbolic or absolute designation of a one-bit operand. The initialisation marker (FI), inputs (I), programs (P) and errors (F) cannot however be addressed using this coil symbol (refer to Operand list in B1.2).
Coil: (memory-capable) Effect: If the conditional part has been satisfied, the operand is set or reset to storage. -( S )--set; --( R )--reset;
Operand: Operand is the symbolic or absolute designation of a one-bit operand. The initialisation marker (FI) and inputs (I) cannot however be addressed using the coil symbol. Errors (F) can only be reset - they cannot be set (refer to Operand list in B1.2). For operand P, Z, F and T, implicit edge identification enters into force.
Coil: (counting) Effect: The contents of the multi bit operand are increased by one (INC)and/or reduced (DEC).
Operand: Operand is the symbolic or absolute designation of a multi bit operand. This must not however be an input word (refer to Operand list in B1.2). Even a counter one-bit operand (e.g. Z1) is permitted and the counter word (e.g. CW1) is increased or reduced.
9610a
B-3
Page 416
FST 200-LDR
Appendix B
Timer box: Effect: The timer named as nn (T) is initialised and started. nn = 0 to 31
Operand: Operand is the symbolic or absolute designation of any multi bit operand (refer to operand list in A1.2) or an absolute time specification which is quoted in 0.01 second steps. This may lie in the range of 0.00s to 655.35s.
Counter box: Effect: The counter (C) identfied with nn is now initialised. nn = 0 up to 31
Operand: Operand is the symbolic or absolute designation of any multi bit operand (refer to operand list in B1.2) or an absolute specification from the following areas: 0 up to 65535 (decimal without prefix) -32768 up to +32767 (decimal with prefix) $0000 up to $FFFF (hexadecimal)
Assignment: Effect: The value of operand 1 is saved in operand 2.
Operand: Operand 1 and 2 are symbolic or absolute designations for any multi bit operand (refer to operand list in B1.2). Operand 2 cannot however be an input word.
B-4
9610a
Page 417
FST 200-LDR
Appendix B
Multi-bit operations with 2 operands: Effect: The value of operand 1 is loaded into the multi-bit accumulator, then the operation is run. The result is stored in operand 2.
Operand: Operand 1 and 2 are the symbolic or absolute designations of any multi bit operand (refer to operand list in B1.2). Operand 2 must not be an input word.
Here, the following multi-bit operations are possible: SHL: Shift to left The contents of the multi-bit accumulator are moved one bit to the left. The vacated right position is filled with a zero. Bits pushed beyond the left edge are lost. SHR: Shift to right The contents of the multi-bit accumulator are moved one bit to the right. The vacated left position is filled with a zero. Bits pushed beyond the right edge are lost. ROL: Roll to left The contents of the multi-bit accumulator are moved one bit to the left and the bit pushed out to the left is transferred to the vacated right position as overflow.
9610a
B-5
Page 418
FST 200-LDR
Appendix B
ROR: Roll to right As with ROL, the contents of the multi-bit accumulator are moved one bit, this time to the right. The bit moved out to the right is transferred as overflow to the vacated position on the left.
SWAP: Swap The multi-bit accumulator has a size of 2 bytes (16 Bit). With the SWAP operation, the contents of these 2 bytes can be interchanged (1byte = 8 bits). INV: Inverting From the contents of the multi-bit accumulator, the OneComplement is formed by bit-by-bit inversion. This involves substituting zeroes for the ones and ones for the zeroes. CPL: Complement From the contents of the multi-bit accumulator, the twocomplement is formed. This first involves bit by bit inversion (as with INV), then a one is added. This operation is equivalent to multiplying by -1. BID: Binary/decimal Converts the binary number in the multi-bit accumulator into a BCD number (binary = coded decimal number). DEB: decimal/binary Converts the binary coded decimal figure in the multi-bit accumulator into a binary number.
B-6
9610a
Page 419
FST 200-LDR
Appendix B
Multi-bit operations with 3 operands: Effect: The operation (here +) is applied to the first two operands. The result is stored in operand 3.
Operand: Operands 1, 2 and 3 are the symbolic or absolute designations of multi bit operands (refer to operand list in B1.2). Operand 3 must not be an input word.
The following operations are possible: + * /
9610a
: Addition : Subtraction : Multiplication : Division
B-7
Page 420
FST 200-LDR
Appendix B v : logical OR link With equivalent bits on operands 1 and 2, the logical OR link is performed in each case and the result is stored in operand 3.
OR link
Result
In each of these examples, 8 bits are considered. One memory location for the result is then 1, provided that at least one of the OR-linked bits has a value of 1. ^ : logical AND link With the equivalent bits in operands 1 and 2, the logical AND link is made and the result is stored in operand 3
AND link
Result
One memory location for the result is then 1, provided that both AND-linked bits contain the value 1.
B-8
9610a