Allen-Bradley SLC 500 1747-L541 Instrukcja Instalacji

Przeglądaj online lub pobierz Instrukcja Instalacji dla Zasilacze Allen-Bradley SLC 500 1747-L541. Allen-Bradley SLC 500 1747-L541 Installation manual Instrukcja obsługi

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
Przeglądanie stron 0
SLC 500™
Instruction Set
Catalog Numbers 1747-L20x,
1747-L30x, 1747-L40x, 1747-L511,
1747-L514, 1747-L524, 1747-L531,
1747-L532, 1747-L541, 1747-L542,
1747-L543, 1747-L551, 1747-L552,
1747-L553
Reference Manual
Przeglądanie stron 0
1 2 3 4 5 6 ... 581 582

Podsumowanie treści

Strona 1 - Instruction Set

SLC 500™ Instruction SetCatalog Numbers 1747-L20x, 1747-L30x, 1747-L40x, 1747-L511, 1747-L514, 1747-L524, 1747-L531, 1747-L532, 1747-L541, 1747-L542,

Strona 2 - Important User Information

Publication 1747-RM001C-EN-P - September 2001Table of Contents viChapter 15Troubleshooting FaultsAutomatically Clearing Faults. . . . . . . . .

Strona 3 - Summary of Changes

Publication 1747-RM001C-EN-P - September 20015-12 Data Handling InstructionsEntering Parameters• Source is the address of the word to be encode

Strona 4 - Summary of Changes 2

Publication 1747-RM001C-EN-P - September 2001Data Handling Instructions 5-13After a COP or FLL instruction is executed, index register S:24 is

Strona 5 - Table of Contents

Publication 1747-RM001C-EN-P - September 20015-14 Data Handling InstructionsAll elements are copied from the source file into the destination f

Strona 6 - Data Handling Instructions

Publication 1747-RM001C-EN-P - September 2001Data Handling Instructions 5-15Entering ParametersEnter the following parameters when programming

Strona 7 - Table of Contents iii

Publication 1747-RM001C-EN-P - September 20015-16 Data Handling InstructionsMove and Logical Instructions OverviewThe following general informa

Strona 8 - Chapter 11

Publication 1747-RM001C-EN-P - September 2001Data Handling Instructions 5-17Updates to the Math Register, S:13 and S:14Move and logical instruc

Strona 9 - Table of Contents v

Publication 1747-RM001C-EN-P - September 20015-18 Data Handling InstructionsMasked Move (MVM)The MVM instruction is a word instruction that mov

Strona 10 - Table of Contents vi

Publication 1747-RM001C-EN-P - September 2001Data Handling Instructions 5-19OperationWhen the rung containing this instruction is true, data at

Strona 11 - Memory Usage

Publication 1747-RM001C-EN-P - September 20015-20 Data Handling InstructionsAnd (AND)This instruction performs a bit-by-bit logical AND. The op

Strona 12 - Table of Contents viii

Publication 1747-RM001C-EN-P - September 2001Data Handling Instructions 5-21Or (OR)This instruction performs a bit-by-bit logical OR. The opera

Strona 13 - Common Techniques Used

Publication 1747-RM001C-EN-P - September 2001Table of Contents viiOS302, Series B, FRN 12released: November 1998OS401, Series B, FRN 9released:

Strona 14 - Rockwell Automation

Publication 1747-RM001C-EN-P - September 20015-22 Data Handling InstructionsExclusive Or (XOR)This instruction performs a bit-by-bit logical XO

Strona 15 - Related Documentation

Publication 1747-RM001C-EN-P - September 2001Data Handling Instructions 5-23Not (NOT)This instruction performs a bit-by-bit logical NOT. The op

Strona 16 - Preface 4

Publication 1747-RM001C-EN-P - September 20015-24 Data Handling InstructionsNegate (NEG)Use the NEG instruction to change the sign of the sourc

Strona 17 - Processor Files

Publication 1747-RM001C-EN-P - September 2001Data Handling Instructions 5-25Entering ParametersEnter the following parameters when programming

Strona 18 - 1-2 Processor Files

Publication 1747-RM001C-EN-P - September 20015-26 Data Handling InstructionsEffects on Index Register S:24The value present in S:24 is overwrit

Strona 19 - Bit Data File (B3:)

Publication 1747-RM001C-EN-P - September 2001Data Handling Instructions 5-27FFL Instruction Operation: When rung conditions change from false-t

Strona 20 - Timer Data File (T4:)

Publication 1747-RM001C-EN-P - September 20015-28 Data Handling InstructionsLIFO Load (LFL) and LIFO Unload (LFU) LFL and LFU instructions are

Strona 21 - Addressing Structure

Publication 1747-RM001C-EN-P - September 2001Data Handling Instructions 5-29LFL Instruction Operation: When rung conditions change from false-t

Strona 22 - 1-6 Processor Files

Publication 1747-RM001C-EN-P - September 20015-30 Data Handling Instructions

Strona 23 - Preset Value (PRE)

1 Publication 1747-RM001C-EN-P - September 2001Chapter 6Program Flow InstructionsThis chapter contains general information about the program flow inst

Strona 24 - Control Data File (R6:)

Publication 1747-RM001C-EN-P - September 2001Table of Contents viiiAppendix DProgramming Instruction ReferencesValid Addressing Modes and File

Strona 25 - Processor Files 1-9

Publication 1747-RM001C-EN-P - September 20016-2 Program Flow InstructionsJump (JMP) and Label (LBL)Use these instructions in pairs to skip por

Strona 26 - Integer Data File (N7:)

Publication 1747-RM001C-EN-P - September 2001Program Flow Instructions 6-3You can program multiple jumps to the same label by assigning the sam

Strona 27 - Float Data File (F8:)

Publication 1747-RM001C-EN-P - September 20016-4 Program Flow InstructionsNesting Subroutine FilesNesting subroutines allows you to direct prog

Strona 28 - 1-12 Processor Files

Publication 1747-RM001C-EN-P - September 2001Program Flow Instructions 6-5Using SBRThe target subroutine is identified by the file number that

Strona 29 - Basic Instructions

Publication 1747-RM001C-EN-P - September 20016-6 Program Flow InstructionsMaster Control Reset (MCR)Use MCR instructions in pairs to create pro

Strona 30 - Bit Instructions Overview

Publication 1747-RM001C-EN-P - September 2001Program Flow Instructions 6-7Temporary End (TND)This instruction, when its rung is true, stops the

Strona 31 - Examine if Open (XIO)

Publication 1747-RM001C-EN-P - September 20016-8 Program Flow InstructionsSuspend (SUS)When this instruction is executed, it causes the process

Strona 32 - Output Unlatch (OTU)

Publication 1747-RM001C-EN-P - September 2001Program Flow Instructions 6-9ExampleMask - Specify a hexadecimal constant or register address.Refe

Strona 33 - One-Shot Rising (OSR)

Publication 1747-RM001C-EN-P - September 20016-10 Program Flow InstructionsLength - For SLC 5/03 and higher processors, this parameter is used

Strona 34 - Examples

1 Publication 1747-RM001C-EN-P - September 2001Chapter 7Application Specific InstructionsThis chapter contains general information about the applicati

Strona 35 - Timer Instructions

1 Publication 1747-RM001C-EN-P - September 2001PrefaceRead this preface to familiarize yourself with the rest of the manual. It provides information c

Strona 36 - Timer Accuracy

Publication 1747-RM001C-EN-P - September 20017-2 Application Specific InstructionsAbout the Application Specific InstructionsThese instructions

Strona 37 - Timer On-Delay (TON)

Publication 1747-RM001C-EN-P - September 2001Application Specific Instructions 7-3• Error Bit ER (bit 11), when set, indicates the instruction

Strona 38 - Timer Off-Delay (TOF)

Publication 1747-RM001C-EN-P - September 20017-4 Application Specific InstructionsEffects on Index Register S:24The shift operation clears the

Strona 39 - Retentive Timer (RTO)

Publication 1747-RM001C-EN-P - September 2001Application Specific Instructions 7-5Using BSRWhen the rung goes from false-to-true, the enable bi

Strona 40

Publication 1747-RM001C-EN-P - September 20017-6 Application Specific InstructionsApplications Requiring More than 16-BitsWhen your application

Strona 41 - Count Up (CTU)

Publication 1747-RM001C-EN-P - September 2001Application Specific Instructions 7-7• Destination is the address of the output word or file for a

Strona 42 - Count Down (CTD)

Publication 1747-RM001C-EN-P - September 20017-8 Application Specific InstructionsThe address assigned for a sequencer file is step zero. Seque

Strona 43 - High-Speed Counter (HSC)

Publication 1747-RM001C-EN-P - September 2001Application Specific Instructions 7-9If the position is equal to zero at startup, when you switch

Strona 44

Publication 1747-RM001C-EN-P - September 20017-10 Application Specific InstructionsUsing SQCWhen the status of all non-masked bits in the sourc

Strona 45 - High-Speed Counter Operation

Publication 1747-RM001C-EN-P - September 2001Application Specific Instructions 7-11(EN)(DN)SQCSEQUENCER COMPAREFile #B10:11Mask FFF0Source I:3

Strona 46 - Application Example

Publication 1747-RM001C-EN-P - September 2001Preface 2Rockwell Automation SupportRockwell Automation offers support services worldwide, with ov

Strona 47 - Unlatch DN Bit

Publication 1747-RM001C-EN-P - September 20017-12 Application Specific InstructionsSequencer Load (SQL)The SQL instruction stores 16-bit data i

Strona 48 - Reset (RES)

Publication 1747-RM001C-EN-P - September 2001Application Specific Instructions 7-13• Control is a control file address. The status bits, length

Strona 49 - Comparison Instructions

Publication 1747-RM001C-EN-P - September 20017-14 Application Specific InstructionsWhen rung conditions change from false-to-true, the SQL enab

Strona 50 - Not Equal (NEQ)

Publication 1747-RM001C-EN-P - September 2001Application Specific Instructions 7-15Read High-Speed Clock and Compute Time Difference OverviewTD

Strona 51 - Greater Than (GRT)

Publication 1747-RM001C-EN-P - September 20017-16 Application Specific InstructionsTDF Instruction OperationWhen the TDF is evaluated with a tr

Strona 52 - Limit Test (LIM)

Publication 1747-RM001C-EN-P - September 2001Application Specific Instructions 7-17Read High-Speed Clock Instruction (RHC)The Read High-Speed C

Strona 53

Publication 1747-RM001C-EN-P - September 20017-18 Application Specific InstructionsFile Bit Comparison (FBC) and Diagnostic Detect (DDT)The FBC

Strona 54

Publication 1747-RM001C-EN-P - September 2001Application Specific Instructions 7-19• enable bit• found bit (if set)• compare done bit• result d

Strona 55 - Math Instructions

Publication 1747-RM001C-EN-P - September 20017-20 Application Specific InstructionsEntering ParametersTo program these instructions, you need t

Strona 56 - Math Instructions Overview

Publication 1747-RM001C-EN-P - September 2001Application Specific Instructions 7-21The instruction control bits are reset when the rung’s input

Strona 57 - Overflow Trap Bit, S:5/0

Publication 1747-RM001C-EN-P - September 2001Preface 3Related DocumentationThe following documents contain additional information concerning Al

Strona 58 - 4-4 Math Instructions

Publication 1747-RM001C-EN-P - September 20017-22 Application Specific InstructionsThe FBC and DDT instructions detect mismatches and record th

Strona 59 - Subtract (SUB)

1 Publication 1747-RM001C-EN-P - September 2001Chapter 8Block Transfer InstructionsThis chapter contains general information about block transfer inst

Strona 60 - Subtraction

Publication 1747-RM001C-EN-P - September 20018-2 Block Transfer Instructionstransfer request in the order it is requested. When the processor c

Strona 61 - Example of 32-bit Addition

Publication 1747-RM001C-EN-P - September 2001Block Transfer Instructions 8-3• Control - The control block is an integer data file address that

Strona 62 - Multiply (MUL)

Publication 1747-RM001C-EN-P - September 20018-4 Block Transfer InstructionsControl Status BitsTo use the BTR and BTW instructions correctly, e

Strona 63 - Divide (DIV)

Publication 1747-RM001C-EN-P - September 2001Block Transfer Instructions 8-55. The scanner detects that the SLC control program has completed p

Strona 64

Publication 1747-RM001C-EN-P - September 20018-6 Block Transfer InstructionsIn addition to the control and status bits, the control block conta

Strona 65 - Double Divide (DDV)

Publication 1747-RM001C-EN-P - September 2001Block Transfer Instructions 8-7Instruction Operation1. The scanner processes the BTR/BTW when it d

Strona 66 - Square Root (SQR)

Publication 1747-RM001C-EN-P - September 20018-8 Block Transfer Instructions2. When a block transfer completes successfully, the DN bit is set.

Strona 67 - Scale with Parameters

Publication 1747-RM001C-EN-P - September 2001Block Transfer Instructions 8-9Figure 8.2 DirectionalFigure 8.3 Directional RepeatingFigure 8.4 Di

Strona 68 - Example 1

Publication 1747-RM001C-EN-P - September 2001Preface 4

Strona 69 - Scale Data (SCL)

Publication 1747-RM001C-EN-P - September 20018-10 Block Transfer InstructionsFigure 8.5 Bi-directional ContinuousFigure 8.6 Bi-directional Alte

Strona 70

Publication 1747-RM001C-EN-P - September 2001Block Transfer Instructions 8-11Comparison to the PLC-5 BTR and BTWBTR/BTW in SLC processors are q

Strona 71 - 0 - (3277 x 1.249) = -4093

Publication 1747-RM001C-EN-P - September 20018-12 Block Transfer Instructions

Strona 72 - Analog Output

1 Publication 1747-RM001C-EN-P - September 2001Chapter 9Proportional Integral Derivative InstructionThis chapter describes the Proportional Integral D

Strona 73

Publication 1747-RM001C-EN-P - September 20019-2 Proportional Integral Derivative InstructionThe PID equation controls the process by sending a

Strona 74 - Ramp Instruction (RMP)

Publication 1747-RM001C-EN-P - September 2001Proportional Integral Derivative Instruction 9-3Place the PID instruction on a rung without any co

Strona 75 - Math Instructions 4-21

Publication 1747-RM001C-EN-P - September 20019-4 Proportional Integral Derivative Instruction• Control Variable CV is an element address that s

Strona 76

Publication 1747-RM001C-EN-P - September 2001Proportional Integral Derivative Instruction 9-5Controller Gain (Kc)Gain Kc (word 3) is the propor

Strona 77 - RMP Equation

Publication 1747-RM001C-EN-P - September 20019-6 Proportional Integral Derivative InstructionReset Term (Ti)Reset Term Ti (word 4) is the Integ

Strona 78 - Absolute (ABS)

Publication 1747-RM001C-EN-P - September 2001Proportional Integral Derivative Instruction 9-7Feed Forward/BiasApplications involving transport

Strona 79 - Compute (CPT)

1 Publication 1747-RM001C-EN-P - September 2001Chapter 1Processor FilesFile StructureSLC 500 user memory is comprised of Data Files and Program Files.

Strona 80

Publication 1747-RM001C-EN-P - September 20019-8 Proportional Integral Derivative InstructionLoop UpdateThe loop update (word 13) is the time i

Strona 81 - Swap (SWP)

Publication 1747-RM001C-EN-P - September 2001Proportional Integral Derivative Instruction 9-9Auto / Manual (AM)The auto/manual bit can be set o

Strona 82 - Arc Sine (ASN)

Publication 1747-RM001C-EN-P - September 20019-10 Proportional Integral Derivative InstructionDeadband (DB)This bit is set (1) when the process

Strona 83 - Arc Tangent (ATN)

Publication 1747-RM001C-EN-P - September 2001Proportional Integral Derivative Instruction 9-11 Setpoint Scaling (SC)The SC bit is cleared when

Strona 84 - Natural Log (LN)

Publication 1747-RM001C-EN-P - September 20019-12 Proportional Integral Derivative InstructionOutput Alarm Upper Limit (UL)The control variable

Strona 85 - Sine (SIN)

Publication 1747-RM001C-EN-P - September 2001Proportional Integral Derivative Instruction 9-13The process variable out of range bit is set (1)

Strona 86 - X to the Power of Y (XPY)

Publication 1747-RM001C-EN-P - September 20019-14 Proportional Integral Derivative InstructionInput ParametersThe table below shows the input p

Strona 87 - Math Instructions 4-33

Publication 1747-RM001C-EN-P - September 2001Proportional Integral Derivative Instruction 9-15If the SPV is configured to be read in engineerin

Strona 88 - 4-34 Math Instructions

Publication 1747-RM001C-EN-P - September 20019-16 Proportional Integral Derivative InstructionOutput ParametersThe table below shows the output

Strona 89

Publication 1747-RM001C-EN-P - September 2001Proportional Integral Derivative Instruction 9-17CVP (Control Variable Percent) displays the contr

Strona 90 - Convert to BCD (TOD)

Publication 1747-RM001C-EN-P - September 20011-2 Processor FilesOutput and Input Data Files (Files O0: and I1:)Data Files 0 and 1 represent ext

Strona 91 - Example 2

Publication 1747-RM001C-EN-P - September 20019-18 Proportional Integral Derivative InstructionOutput Minimum (CVL)When the output limiting bit

Strona 92 - S:14 S:13

Publication 1747-RM001C-EN-P - September 2001Proportional Integral Derivative Instruction 9-1921H(SLC 5/02 only)1. Scaled setpoint max Smax >

Strona 93 - Convert from BCD (FRD)

Publication 1747-RM001C-EN-P - September 20019-20 Proportional Integral Derivative InstructionPID and Analog I/O ScalingFor the SLC 500 PID ins

Strona 94

Publication 1747-RM001C-EN-P - September 2001Proportional Integral Derivative Instruction 9-21Use the following values in an SCL instruction to

Strona 95 - 0 003 2760

Publication 1747-RM001C-EN-P - September 20019-22 Proportional Integral Derivative InstructionThe STI routine should have a time interval equal

Strona 96 - Radian to Degrees (DEG)

Publication 1747-RM001C-EN-P - September 2001Proportional Integral Derivative Instruction 9-23Application NotesThe following paragraphs discuss

Strona 97 - Degrees to Radians (RAD)

Publication 1747-RM001C-EN-P - September 20019-24 Proportional Integral Derivative InstructionFor example, if measuring a full scale temperatur

Strona 98 - Decode 4 to 1 of 16 (DCD)

Publication 1747-RM001C-EN-P - September 2001Proportional Integral Derivative Instruction 9-25Output Limiting with Anti-Reset WindupYou may set

Strona 99 - Encode 1 of 16 to 4 (ENC)

Publication 1747-RM001C-EN-P - September 20019-26 Proportional Integral Derivative InstructionPID RungstateIf the PID rung is false, the integr

Strona 100 - Fill File (FLL) Instructions

Publication 1747-RM001C-EN-P - September 2001Proportional Integral Derivative Instruction 9-27Example - Time proportioning outputsT4:0.PRE is t

Strona 101 - Entering Parameters

Publication 1747-RM001C-EN-P - September 2001Processor Files 1-3Status File (File S2:)You cannot add to or delete from the status file. See Tab

Strona 102 - Using FLL

Publication 1747-RM001C-EN-P - September 20019-28 Proportional Integral Derivative Instruction

Strona 103

1 Publication 1747-RM001C-EN-P - September 2001Chapter 10ASCII InstructionsThis chapter contains general information about the ASCII instructions and

Strona 104 - Instructions Overview

Publication 1747-RM001C-EN-P - September 200110-2 ASCII InstructionsASCII Instruction OverviewASCII instructions are available in SLC 5/03 OS30

Strona 105 - Move (MOV)

Publication 1747-RM001C-EN-P - September 2001ASCII Instructions 10-3Using the ASCII Data File TypeThese are 1-word elements. Assign ASCII addre

Strona 106 - Masked Move (MVM)

Publication 1747-RM001C-EN-P - September 200110-4 ASCII InstructionsAssign string addresses as follows:Entering ParametersThe control element f

Strona 107 - Operation

Publication 1747-RM001C-EN-P - September 2001ASCII Instructions 10-5EN = Enable BitEU = Queue BitDN = Asynchronous Done BitEM = Synchronous Don

Strona 108 - And (AND)

Publication 1747-RM001C-EN-P - September 200110-6 ASCII InstructionsTest Buffer for Line (ABL)Use the ABL instruction to determine the total nu

Strona 109 - Output Instruction

Publication 1747-RM001C-EN-P - September 2001ASCII Instructions 10-7When the program scans the instruction and finds the Done bit (DN) set, the

Strona 110 - Exclusive Or (XOR)

Publication 1747-RM001C-EN-P - September 200110-8 ASCII Instructions(DN) is then set. If a zero appears in the characters field, no characters

Strona 111 - Not (NOT)

Publication 1747-RM001C-EN-P - September 2001ASCII Instructions 10-9ASCII Clear Receive and/orSend Buffer (ACL)Use this instruction to clear an

Strona 112 - Overview

Important User InformationBecause of the variety of uses for the products described in this publication, those responsible for the application and use

Strona 113

Publication 1747-RM001C-EN-P - September 20011-4 Processor FilesTimer Data File (T4:)Timer instructions use various control bits. These are 3-w

Strona 114 - Unload (FFU)

Publication 1747-RM001C-EN-P - September 200110-10 ASCII InstructionsString Concatenate (ACN)The ACN instruction combines two strings using ASC

Strona 115

Publication 1747-RM001C-EN-P - September 2001ASCII Instructions 10-11ExampleThe following conditions cause the processor to set the ASCII Error

Strona 116 - Unload (LFU)

Publication 1747-RM001C-EN-P - September 200110-12 ASCII InstructionsEntering ParametersEnter the following parameters when programming this in

Strona 117

Publication 1747-RM001C-EN-P - September 2001ASCII Instructions 10-13ExampleThe Error bit (ER) is set during the execution of the instruction i

Strona 118

Publication 1747-RM001C-EN-P - September 200110-14 ASCII Instructions• String Length (.LEN) is the number of characters you want to read from t

Strona 119 - Program Flow Instructions

Publication 1747-RM001C-EN-P - September 2001ASCII Instructions 10-15• an ACL to clear the receive buffer is executed, removing the ARD instruc

Strona 120 - Jump (JMP) and Label (LBL)

Publication 1747-RM001C-EN-P - September 200110-16 ASCII InstructionsASCII Read Line (ARL)Use the ARL instruction to read characters from the b

Strona 121 - Return (RET)

Publication 1747-RM001C-EN-P - September 2001ASCII Instructions 10-17updated and the Done bit (DN) is not set until either the end of line char

Strona 122

Publication 1747-RM001C-EN-P - September 200110-18 ASCII InstructionsExampleThe following conditions cause the processor to set the ASCII Error

Strona 123 - Using RET

Publication 1747-RM001C-EN-P - September 2001ASCII Instructions 10-19ASCII Write with Append (AWA)Use the AWA instruction to write characters f

Strona 124 - Master Control Reset (MCR)

Publication 1747-RM001C-EN-P - September 2001Processor Files 1-5Addressing StructureAddress bits and words using the format Tf:e.s/bTable 1.4 T

Strona 125 - Temporary End (TND)

Publication 1747-RM001C-EN-P - September 200110-20 ASCII InstructionsDone bit (DN) is set and a value of 27 is present in .POS word of the ASCI

Strona 126 - Immediate Input with Mask

Publication 1747-RM001C-EN-P - September 2001ASCII Instructions 10-21ExamplesFor the following examples:N7:0 = 250N7:1 = -37F8:0 = 2.015000F8:1

Strona 127 - Mask (IOM)

Publication 1747-RM001C-EN-P - September 200110-22 ASCII Instructions• Characters Sent (POS) is the number of characters that the processor sen

Strona 128 - I/O Refresh (REF)

Publication 1747-RM001C-EN-P - September 2001ASCII Instructions 10-23ASCII Instruction Error CodesThe following error codes indicate why the Er

Strona 129 - • how to use the instruction

Publication 1747-RM001C-EN-P - September 200110-24 ASCII InstructionsASCII Conversion TableThe table below lists the decimal, hexadecimal, and

Strona 130 - Bit Shift Instructions

Publication 1747-RM001C-EN-P - September 2001ASCII Instructions 10-2523 17 ETB ^W or ^w or \17 ^W24 18 CAN ^X or ^x or \18 ^X25 19 EM ^Y or ^y

Strona 131

Publication 1747-RM001C-EN-P - September 200110-26 ASCII Instructions23 17 ETB ^W or ^w or \17 ^W24 18 CAN ^X or ^x or \18 ^X25 19 EM ^Y or ^y

Strona 132 - Bit Shift Right (BSR)

Publication 1747-RM001C-EN-P - September 2001ASCII Instructions 10-2759 3B ; ; or \3B or \3b ;60 3C < < or \3C or \3c <61 3D = = or \3

Strona 133 - Sequencer Instructions

Publication 1747-RM001C-EN-P - September 200110-28 ASCII Instructions95 5F _ _ or \5F or \5f _96 60 ‘ ‘ or \60 ‘97 61 a a or \61 a98 62 b b or

Strona 134 - Sequencer Compare (SQC)

1 Publication 1747-RM001C-EN-P - September 2001Chapter 11Understanding Interrupt RoutinesThis chapter contains general information about interrupt rou

Strona 135 - Word 2 Position

Publication 1747-RM001C-EN-P - September 20011-6 Processor FilesCounter Data File Elements (C5:)Each Counter address is made of a 3-word data f

Strona 136 - Using SQO

Publication 1747-RM001C-EN-P - September 200111-2 Understanding Interrupt RoutinesUser Fault Routine OverviewThe user fault routine gives you t

Strona 137

Publication 1747-RM001C-EN-P - September 2001Understanding Interrupt Routines 11-3Status File Data SavedData in the following words is saved on

Strona 138 - Using SQC

Publication 1747-RM001C-EN-P - September 200111-4 Understanding Interrupt Routines• Prevent a processor shutdown if the overflow trap bit S:5/0

Strona 139

Publication 1747-RM001C-EN-P - September 2001Understanding Interrupt Routines 11-5Fault Routine - Subroutine File 3Fault Routine Example 10000S

Strona 140 - Sequencer Load (SQL)

Publication 1747-RM001C-EN-P - September 200111-6 Understanding Interrupt RoutinesSubroutine File 4 - Executed for Error 0020hIf the overflow t

Strona 141

Publication 1747-RM001C-EN-P - September 2001Understanding Interrupt Routines 11-7Subroutine File 5 - Executed for Error 0034h0000SBRSubroutine

Strona 142

Publication 1747-RM001C-EN-P - September 200111-8 Understanding Interrupt RoutinesIf the accumulator value of timer T4:0 is negative, the major

Strona 143 - Difference Overview

Publication 1747-RM001C-EN-P - September 2001Understanding Interrupt Routines 11-9Basic Programming Procedure for the STI FunctionTo use the ST

Strona 144 - TDF Instruction Operation

Publication 1747-RM001C-EN-P - September 200111-10 Understanding Interrupt Routines4. If while an STI is pending, the STI timer expires, the ST

Strona 145 - Instruction (TDF)

Publication 1747-RM001C-EN-P - September 2001Understanding Interrupt Routines 11-11Note that STI execution time adds directly to the overall sc

Strona 146 - File Bit Comparison (FBC)

Publication 1747-RM001C-EN-P - September 2001Processor Files 1-7Entering ParametersThere are several parameters associated with Counter instruc

Strona 147 - All Per Scan

Publication 1747-RM001C-EN-P - September 200111-12 Understanding Interrupt RoutinesInterrupt PrioritiesInterrupt priorities for the processors

Strona 148 - Using Status Bits

Publication 1747-RM001C-EN-P - September 2001Understanding Interrupt Routines 11-13STI ParametersThe following parameters are associated with t

Strona 149

Publication 1747-RM001C-EN-P - September 200111-14 Understanding Interrupt RoutinesSLC 5/02 specific: If this bit is set or reset by the user p

Strona 150

Publication 1747-RM001C-EN-P - September 2001Understanding Interrupt Routines 11-15STI Example0000S:115First PassUB3:00Indicate ValidMeasuremen

Strona 151 - Block Transfer Instructions

Publication 1747-RM001C-EN-P - September 200111-16 Understanding Interrupt Routines0000B3:00Indicate ValidMeasurementSUBSubtractSource A S:430&

Strona 152

Publication 1747-RM001C-EN-P - September 2001Understanding Interrupt Routines 11-17STD and STE InstructionsThe STD and STE instructions are use

Strona 153 - Word 1 Requested word count

Publication 1747-RM001C-EN-P - September 200111-18 Understanding Interrupt RoutinesSelectable Timed Start (STS)Use the STS instruction to condi

Strona 154 - Control Status Bits

Publication 1747-RM001C-EN-P - September 2001Understanding Interrupt Routines 11-19Discrete Input Interrupt OverviewUse the Discrete Input Inte

Strona 155

Publication 1747-RM001C-EN-P - September 200111-20 Understanding Interrupt Routines3. Enter the Bit Mask (word S:48). Valid Bit Masks range fro

Strona 156

Publication 1747-RM001C-EN-P - September 2001Understanding Interrupt Routines 11-212. When the input data matches the programmed masked value,

Strona 157 - Instruction Operation

Publication 1747-RM001C-EN-P - September 20011-8 Processor FilesControl Data File (R6:)These instructions use various control bits. These are 3

Strona 158 - Programming Examples

Publication 1747-RM001C-EN-P - September 200111-22 Understanding Interrupt RoutinesInterrupt Latency and Interrupt OccurrencesInterrupt latency

Strona 159 - Figure 8.2 Directional

Publication 1747-RM001C-EN-P - September 2001Understanding Interrupt Routines 11-23Interrupt PrioritiesInterrupt priorities for the SLC 5/03 an

Strona 160

Publication 1747-RM001C-EN-P - September 200111-24 Understanding Interrupt RoutinesExampleThe DII can be programmed to count items on a high-sp

Strona 161

Publication 1747-RM001C-EN-P - September 2001Understanding Interrupt Routines 11-25• File Number (Word S:46) - Enter a program file number (3 t

Strona 162

Publication 1747-RM001C-EN-P - September 200111-26 Understanding Interrupt Routines• Return Mask (Word S:51) - The Return Mask is updated immed

Strona 163 - The PID Concept

Publication 1747-RM001C-EN-P - September 2001Understanding Interrupt Routines 11-27The following parameters are used to program the DII for the

Strona 164 - The PID Instruction

Publication 1747-RM001C-EN-P - September 200111-28 Understanding Interrupt RoutinesLadder Diagram for the Bottling ApplicationRefer to Appendix

Strona 165

Publication 1747-RM001C-EN-P - September 2001Understanding Interrupt Routines 11-29I/O Interrupt OverviewThis function allows a specialty I/O m

Strona 166 - PID Control Block Layout

Publication 1747-RM001C-EN-P - September 200111-30 Understanding Interrupt RoutinesInterrupt Subroutine (ISR) ContentThe Interrupt Subroutine (

Strona 167 - Controller Gain (K

Publication 1747-RM001C-EN-P - September 2001Understanding Interrupt Routines 11-31Note that ISR execution time adds directly to the overall sc

Strona 168

Publication 1747-RM001C-EN-P - September 2001Processor Files 1-9Assign control addresses as follows:Table 1.9 Control File Addressing FormatFor

Strona 169 - Mode (TM)

Publication 1747-RM001C-EN-P - September 200111-32 Understanding Interrupt RoutinesIf a major fault occurs while executing the I/O interrupt su

Strona 170 - Scaled Error

Publication 1747-RM001C-EN-P - September 2001Understanding Interrupt Routines 11-33I/O Interrupt ParametersThe I/O interrupt parameters below h

Strona 171 - Control (CM)

Publication 1747-RM001C-EN-P - September 200111-34 Understanding Interrupt RoutinesSLC 5/03 and higher processors: Changes made to these bits u

Strona 172 - Deadband (DB)

Publication 1747-RM001C-EN-P - September 2001Understanding Interrupt Routines 11-35IIE OperationWhen true, this instruction sets the I/O interr

Strona 173 - Setpoint Scaling (SC)

Publication 1747-RM001C-EN-P - September 200111-36 Understanding Interrupt RoutinesReset Pending Interrupt (RPI)This instruction resets the pen

Strona 174 - PV Out Of Range (PV)

1 Publication 1747-RM001C-EN-P - September 2001Chapter 12SLC Communication InstructionsThis chapter contains general information about the SLC communi

Strona 175 - PID Enable (EN)

Publication 1747-RM001C-EN-P - September 200112-2 SLC Communication InstructionsService Communications (SVC)Using an SLC 5/02 ProcessorThe SVC

Strona 176 - Input Parameters

Publication 1747-RM001C-EN-P - September 2001SLC Communication Instructions 12-3Channel ServicingWhether a channel is selected to be serviced b

Strona 177

Publication 1747-RM001C-EN-P - September 200112-4 SLC Communication InstructionsTo invoke the MSG instruction, toggle the MSG instruction rung

Strona 178 - Output Parameters

Publication 1747-RM001C-EN-P - September 2001SLC Communication Instructions 12-5Figure 12.1 SLC 5/02 Messaging Example with MSG TimeoutUN9:0N9:

Strona 179 - Output Maximum (CVH)

Publication 1747-RM001C-EN-P - September 20011-10 Processor FilesInteger Data File (N7:)Use these addresses as your program requires. These are

Strona 180 - Runtime Errors

Publication 1747-RM001C-EN-P - September 200112-6 SLC Communication InstructionsFigure 12.2 SLC 5/02 Repeating Messaging Example with MSG Timeo

Strona 181 - SLC 5/02

Publication 1747-RM001C-EN-P - September 2001SLC Communication Instructions 12-7You can use the timeout control similar to the SLC 5/02 MSG ins

Strona 182 - PID and Analog I/O Scaling

Publication 1747-RM001C-EN-P - September 200112-8 SLC Communication InstructionsFigure 12.4 SLC 5/03, SLC 5/04 and SLC 5/05 Repeating Messaging

Strona 183 - Using the SCP Instruction

Publication 1747-RM001C-EN-P - September 2001SLC Communication Instructions 12-9Available Configuration OptionsThe following configuration opti

Strona 184 - PID “loop update” parameter

Publication 1747-RM001C-EN-P - September 200112-10 SLC Communication InstructionsIn addition, the following configuration option is available o

Strona 185 - Application Notes

Publication 1747-RM001C-EN-P - September 2001SLC Communication Instructions 12-11MSG Setup Screen ParametersParameters for “This Controller”:•

Strona 186 - Output Alarms

Publication 1747-RM001C-EN-P - September 200112-12 SLC Communication Instructions• Channel(1):Specifies the communication channel that is used

Strona 187 - The Manual Mode

Publication 1747-RM001C-EN-P - September 2001SLC Communication Instructions 12-13Parameters for “Target Device”:• Message Timeout(1):Specifies

Strona 188 - Time Proportioning Outputs

Publication 1747-RM001C-EN-P - September 200112-14 SLC Communication InstructionsSpecifies the node number of the target device that is receivi

Strona 189

Publication 1747-RM001C-EN-P - September 2001SLC Communication Instructions 12-15Specifies the node number of the target device on the remote n

Strona 190

Publication 1747-RM001C-EN-P - September 2001Processor Files 1-11Float Data File (F8:)Use these addresses as your program requires. These are 2

Strona 191 - ASCII Instructions

Publication 1747-RM001C-EN-P - September 200112-16 SLC Communication InstructionsMSG Setup Screen Status BitsThe column in the display below li

Strona 192 - Protocol Parameter

Publication 1747-RM001C-EN-P - September 2001SLC Communication Instructions 12-17• No Response Bit NR (bit 09) is set if the target processor r

Strona 193

Publication 1747-RM001C-EN-P - September 200112-18 SLC Communication Instructions• Done Bit DN (bit 13) is set when the message is transmitted

Strona 194

Publication 1747-RM001C-EN-P - September 2001SLC Communication Instructions 12-19MSG Instruction Control BlockLimitations for Manipulating the

Strona 195

Publication 1747-RM001C-EN-P - September 200112-20 SLC Communication InstructionsControl Block LayoutsThe control block layout is shown below f

Strona 196 - Test Buffer for Line (ABL)

Publication 1747-RM001C-EN-P - September 2001SLC Communication Instructions 12-21The control block layout is shown below for 485CIF as the targ

Strona 197 - In Buffer (ACB)

Publication 1747-RM001C-EN-P - September 200112-22 SLC Communication Instructions.Table 12.F Read or Write, Local or Remote to a PLC-5 (with Lo

Strona 198 - String to Integer (ACI)

Publication 1747-RM001C-EN-P - September 2001SLC Communication Instructions 12-23Table 12.G SLC 5/05 Channel 1 Read or Write, Local or Remote t

Strona 199 - Send Buffer (ACL)

Publication 1747-RM001C-EN-P - September 200112-24 SLC Communication InstructionsTable 12.H SLC 5/05 Channel 1 Read or Write, Local or Remote t

Strona 200 - String Extract (AEX)

Publication 1747-RM001C-EN-P - September 2001SLC Communication Instructions 12-25Timing Diagram for SLC 5/03, SLC 5/04, and SLC 5/05 MSG Instru

Strona 201 - ASCII Handshake Lines

Publication 1747-RM001C-EN-P - September 20011-12 Processor Files

Strona 202

Publication 1747-RM001C-EN-P - September 200112-26 SLC Communication InstructionsIf you choose to set the CO bit, your MSG instruction will “ta

Strona 203 - ASCII Read Characters

Publication 1747-RM001C-EN-P - September 2001SLC Communication Instructions 12-27Step 4 not shown in the timing diagram.4. If you do not receiv

Strona 204

Publication 1747-RM001C-EN-P - September 200112-28 SLC Communication Instructionsthe EN bit is cleared the next time the MSG instruction is sca

Strona 205 - Instructions

Publication 1747-RM001C-EN-P - September 2001SLC Communication Instructions 12-2910H Target node cannot respond because of incorrect command pa

Strona 206 - ASCII Read Line (ARL)

Publication 1747-RM001C-EN-P - September 200112-30 SLC Communication InstructionsDBH Multi-hop messaging CIP message format errorDFH Multi-hop

Strona 207 - String Search (ASC)

Publication 1747-RM001C-EN-P - September 2001SLC Communication Instructions 12-31TIPFor 1770-6.5.16 DFI Protocol and Command Set Reference Manu

Strona 208 - ASCII String Compare (ASR)

Publication 1747-RM001C-EN-P - September 200112-32 SLC Communication Instructions

Strona 209 - ASCII Write with Append

1 Publication 1747-RM001C-EN-P - September 2001Chapter 13SLC Communication ChannelsUse the information in this chapter to understand how to configure

Strona 210 - Using In-line Indirection

Publication 1747-RM001C-EN-P - September 200113-2 SLC Communication ChannelsData Highway Plus (DH+) - The Data Highway Plus protocol is used by

Strona 211 - ASCII Write (AWT)

Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-3DH-485 CommunicationsThe DH-485 network offers:• interconnection of

Strona 212

1 Publication 1747-RM001C-EN-P - September 2001Chapter 2Basic InstructionsThis chapter contains general information about the basic instructions and e

Strona 213 - ASCII Instruction Error

Publication 1747-RM001C-EN-P - September 200113-4 SLC Communication ChannelsDH-485 Network InitializationNetwork initialization begins when a p

Strona 214 - ASCII Conversion Table

Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-5The best network performance occurs when node addresses start at 0

Strona 215

Publication 1747-RM001C-EN-P - September 200113-6 SLC Communication ChannelsConfiguring a Channel for DH-485 To configure an SLC processor chan

Strona 216

Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-7DH-485 Channel StatusFor SLC 5/03 (OS302, Series C and higher), SLC

Strona 217

Publication 1747-RM001C-EN-P - September 200113-8 SLC Communication ChannelsDouble-click on the Channel Status Icon Located beneath the Configu

Strona 218

Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-9Data Highway Plus CommunicationsData Highway Plus implements peer-t

Strona 219

Publication 1747-RM001C-EN-P - September 200113-10 SLC Communication ChannelsExampleThe example below shows a DH+ protocol using two SLC 5/04 c

Strona 220 - User Fault Routine

Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-11Configuring Channel 1 for DH+To configure an SLC 5/04 processor ch

Strona 221 - Status File Data Saved

Publication 1747-RM001C-EN-P - September 200113-12 SLC Communication ChannelsDH+ Channel StatusFor SLC 5/04 (OS401, Series C and higher), chann

Strona 222

Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-13Double-click on the Channel Status Icon Located beneath the Config

Strona 223

1 Publication 1747-RM001C-EN-P - September 2001Summary of ChangesThe information below summarizes the changes to this manual since the last printing.T

Strona 224

Publication 1747-RM001C-EN-P - September 20012-2 Basic InstructionsAbout the Basic InstructionsBasic instructions, when used in ladder programs

Strona 225

Publication 1747-RM001C-EN-P - September 200113-14 SLC Communication ChannelsTable 13.5 SLC 5/04 Channel 1 DH+ Channel StatusStatus field: Word

Strona 226 - Selectable Timed Interrupt

Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-15General Network dead 5 Number of times the station detects no traf

Strona 227

Publication 1747-RM001C-EN-P - September 200113-16 SLC Communication ChannelsGeneral Solicit rotations 30 Number of times a complete solicit su

Strona 228 - STI Subroutine Content

Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-17Global Status Word OverviewWhen a processor passes the DH+ token t

Strona 229

Publication 1747-RM001C-EN-P - September 200113-18 SLC Communication ChannelsOne word of every node’s Global Status File is updated each token

Strona 230 - Interrupt Priorities

Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-19– having an OS400 user program downloaded to the SLC 5/04 processo

Strona 231 - STI Parameters

Publication 1747-RM001C-EN-P - September 200113-20 SLC Communication Channels• If the Global Status File (S:100-S:163) is working and then Chan

Strona 232

Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-21Ethernet CommunicationsThis section:• describes SLC 5/05 performan

Strona 233

Publication 1747-RM001C-EN-P - September 200113-22 SLC Communication ChannelsOptimal Performance: PC to SLC 5/05 Processor (2-node Ethernet net

Strona 234

Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-23There are two ways to configure the SLC 5/05 Ethernet channel 1. T

Strona 235 - STD and STE Instructions

Publication 1747-RM001C-EN-P - September 2001Basic Instructions 2-3Examine if Closed (XIC)Use the XIC instruction in your ladder program to det

Strona 236 - Selectable Timed Start

Publication 1747-RM001C-EN-P - September 200113-24 SLC Communication ChannelsDefine the location of the diagnostic file used for Channel Status

Strona 237 - Discrete Input Interrupt

Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-25Table 13.7 Define these communication parameters when configuring

Strona 238

Publication 1747-RM001C-EN-P - September 200113-26 SLC Communication ChannelsEthernet Channel StatusFor SLC 5/05 processors, channel status dat

Strona 239 - DII Subroutine Content

Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-27Table 13.8 SLC 5/05 Channel 1 Ethernet Channel StatusStatus field:

Strona 240

Publication 1747-RM001C-EN-P - September 200113-28 SLC Communication ChannelsConfiguration Via BOOTPBOOTP is a standard protocol that TCP/IP no

Strona 241 - Reconfigurability

Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-29BOOTP Operation at Power-UpWhen BOOTP is enabled, the following ev

Strona 242 - DII Parameters

Publication 1747-RM001C-EN-P - September 200113-30 SLC Communication ChannelsInstall the DOS/Windows BOOTP serverTo install the DOS BOOTP serve

Strona 243

Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-312. Make one copy of the SLC 5/05 processor template for every SLC

Strona 244

Publication 1747-RM001C-EN-P - September 200113-32 SLC Communication ChannelsBased on this configuration, the BOOTPTAB file looks like:Run the

Strona 245

Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-33Running the DOS-Based UtilityTo run the boot-server utility, DTLBO

Strona 246

Publication 1747-RM001C-EN-P - September 20012-4 Basic InstructionsOutput Energize (OTE)Use the OTE instruction in your ladder program to turn

Strona 247 - I/O Interrupt Overview

Publication 1747-RM001C-EN-P - September 200113-34 SLC Communication ChannelsOnce you invoke the utility, it will run until you terminate it by

Strona 248

Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-35The BOOTPTAB files that correspond to the example looks like:Perso

Strona 249

Publication 1747-RM001C-EN-P - September 200113-36 SLC Communication ChannelsTable 13.12 Iota1 Configuration#######Legend: gwhahtipsmvmtc------

Strona 250

Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-37DF1 CommunicationsThe SLC 5/03, SLC 5/04, and SLC 5/05 processors

Strona 251 - I/O Interrupt Parameters

Publication 1747-RM001C-EN-P - September 200113-38 SLC Communication Channelsthe reply that it transmits in response to any command data packet

Strona 252 - I/O Interrupt Enable (IIE)

Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-39Configuring Channel 0 for DF1 Full-DuplexTo configure an SLC 5/03,

Strona 253 - IID/IIE Zone Example

Publication 1747-RM001C-EN-P - September 200113-40 SLC Communication Channels 1. On the Channel 0 tab, choose DF1 Full-Duplex for y

Strona 254 - Interrupt Subroutine (INT)

Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-41Chan. 0 System Error Detection CRC With this selection, you choose

Strona 255 - About the Communication

Publication 1747-RM001C-EN-P - September 200113-42 SLC Communication ChannelsDF1 Full-Duplex Channel StatusChannel Status data is stored in the

Strona 256 - Service Communications

Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-43Configuring Channel 0 for Standard-Mode DF1 Half-Duplex Master Cho

Strona 257 - Message Instruction

Publication 1747-RM001C-EN-P - September 2001Basic Instructions 2-5When rung conditions become false (after being true), the bit remains set an

Strona 258

Publication 1747-RM001C-EN-P - September 200113-44 SLC Communication Channels Define the location of the diagnostic file used for Channel Sta

Strona 259

Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-45Table 13.17 Define these parameters when configuring a SLC 5/03, 5

Strona 260

Publication 1747-RM001C-EN-P - September 200113-46 SLC Communication ChannelsChannel 0 SystemDuplicate Packet DetectEnabled Duplicate Detect le

Strona 261

Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-47Minimum DF1 Half-Duplex Master Channel 0 ACK TimeoutThe governing

Strona 262

Publication 1747-RM001C-EN-P - September 200113-48 SLC Communication ChannelsNext, you need to determine the average slave program scan time. I

Strona 263

Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-49DF1 Half-Duplex Master Channel StatusChannel Status data is stored

Strona 264 - MSG Instruction Parameters

Publication 1747-RM001C-EN-P - September 200113-50 SLC Communication ChannelsMonitor Active Stations To see what stations are active, view

Strona 265 - MSG Setup Screen Parameters

Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-51Configuring Channel 0 for Message-based Mode DF1 Half-Duplex Maste

Strona 266 - (1) SLC 5/03 and higher only

Publication 1747-RM001C-EN-P - September 200113-52 SLC Communication Channels 1. On the Channel 0 tab, choose DF1 Half-Duplex Master for your

Strona 267

Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-53Channel 0 SystemPolling Mode Message BasedIf you want to:• accept

Strona 268 - (3) Remote MSG only

Publication 1747-RM001C-EN-P - September 20012-6 Basic InstructionsUse a bit address from either the bit or integer data file. The addressed bi

Strona 269

Publication 1747-RM001C-EN-P - September 200113-54 SLC Communication ChannelsConfiguring Channel 0 for DF1 Half-Duplex SlaveTo configure an SLC

Strona 270 - MSG Setup Screen Status Bits

Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-55 1. On the Channel 0 tab, choose DF1 Half-Duplex Slave for your D

Strona 271

Publication 1747-RM001C-EN-P - September 200113-56 SLC Communication ChannelsChan. 0 SystemError DetectionCRC With this selection, you choose t

Strona 272

Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-57Configuring Channel 0 Poll TimeoutThe Channel 0 Poll Timeout is on

Strona 273 - MSG Instruction Control Block

Publication 1747-RM001C-EN-P - September 200113-58 SLC Communication ChannelsUsing Modems that Support DF1 Communication ProtocolsThe types of

Strona 274 - Control Block Layouts

Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-59the RS-232 modem control signals when “Full-Duplex Modem” is selec

Strona 275

Publication 1747-RM001C-EN-P - September 200113-60 SLC Communication ChannelsLine DriversLine drivers, also called short-haul “modems”, do not

Strona 276

Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-61DF1 Half-Duplex SlaveWhen you configure the SLC 5/03, SLC 5/04, an

Strona 277

Publication 1747-RM001C-EN-P - September 200113-62 SLC Communication Channelsalso set. If DSR does not go inactive, then DTR is raised again in

Strona 278

Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-63ASCII CommunicationsThe SLC 5/03 (OS301 and higher), SLC 5/04, and

Strona 279 - SLC 5/05 MSG Instruction

Publication 1747-RM001C-EN-P - September 2001Basic Instructions 2-7The SLC 500 and SLC 5/01 processors allow you to use only one OSR instructio

Strona 280

Publication 1747-RM001C-EN-P - September 200113-64 SLC Communication ChannelsConfiguring Channel 0 for ASCII CommunicationsTo configure an SLC

Strona 281

Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-651. On the Channel 0 user tab, choose ASCII for your Driver. 2. Con

Strona 282 - MSG Instruction Error

Publication 1747-RM001C-EN-P - September 200113-66 SLC Communication ChannelsSLC 5/05 Embedded Web Server CapabilitySLC 5/05 processors with OS

Strona 283

Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-67Figure 13.3 1747 SLC 5/05 Module Information PageTCP/IP Configurat

Strona 284

Publication 1747-RM001C-EN-P - September 200113-68 SLC Communication ChannelsDiagnostic InformationThis section gives you access to the various

Strona 285

Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-69Figure 13.6 1747 SLC 5/05 General Ethernet Counters• Commands Sent

Strona 286

Publication 1747-RM001C-EN-P - September 200113-70 SLC Communication Channels• Excessive Collisions - Count of frames for which transmission fa

Strona 287 - SLC Communication Channels

1 Publication 1747-RM001C-EN-P - September 2001Chapter 14Messaging ExamplesThe purpose of this chapter is to illustrate some of the more common but el

Strona 288

Publication 1747-RM001C-EN-P - September 200114-2 Messaging Examplesactual bridging device) on the local network will act as a bridge or gatewa

Strona 289 - DH-485 Communications

Publication 1747-RM001C-EN-P - September 2001Messaging Examples 14-3The default Passthru Link ID for the SLC 5/03, 5/04 and 5/05 processors CH0

Strona 290 - Setting Node Addresses

Publication 1747-RM001C-EN-P - September 20012-8 Basic InstructionsAccumulator Value (.ACC)This is the time elapsed since the timer was last re

Strona 291 - Maximum Node Address Setting

Publication 1747-RM001C-EN-P - September 200114-4 Messaging Examplesprocessor are re-sent out channel 0 onto the DH-485 network. This activity

Strona 292 - Configuring a Channel for

Publication 1747-RM001C-EN-P - September 2001Messaging Examples 14-5DeviceNet Passthru(SLC 5/03 OS302, SLC 5/04 OS401, and SLC 5/05 processors)

Strona 293 - DH-485 Channel Status

Publication 1747-RM001C-EN-P - September 200114-6 Messaging ExamplesSending a Message using DF1 Full-Duplex to an SLC 5/04 Processor with DF1 t

Strona 294

Publication 1747-RM001C-EN-P - September 2001Messaging Examples 14-7The routing table file number must be between 9 and 255 (a valid data table

Strona 295 - Communications

Publication 1747-RM001C-EN-P - September 200114-8 Messaging ExamplesStatus File Bits - Two status file bits control whether or not the passthru

Strona 296

Publication 1747-RM001C-EN-P - September 2001Messaging Examples 14-9MSG Error Code - When the processor detects an error during the passage of

Strona 297 - Configuring Channel 1 for

Publication 1747-RM001C-EN-P - September 200114-10 Messaging ExamplesThe following is the ladder logic necessary for the SLC5/03 processor.TIPN

Strona 298 - DH+ Channel Status

Publication 1747-RM001C-EN-P - September 2001Messaging Examples 14-11The following is the MSG Setup for the SLC5/03 processor.Local Bridge Addr

Strona 299

Publication 1747-RM001C-EN-P - September 200114-12 Messaging ExamplesChan 0 Mode is set for System.Chan. 0 - System driver is set for DF1 Full

Strona 300

Publication 1747-RM001C-EN-P - September 2001Messaging Examples 14-13Passthru Examples DH+ to DF1For the Step by Step procedure for this exampl

Strona 301

Publication 1747-RM001C-EN-P - September 2001Basic Instructions 2-9Timer On-Delay (TON)Use the TON instruction to turn an output on or off afte

Strona 302

Publication 1747-RM001C-EN-P - September 200114-14 Messaging ExamplesPassthru Examples DH485 to DH+For the Step by Step procedure for this exam

Strona 303 - Global Status Word Overview

Publication 1747-RM001C-EN-P - September 2001Messaging Examples 14-15Passthru Examples DH+ to DH485For the Step by Step procedure for this exam

Strona 304

Publication 1747-RM001C-EN-P - September 200114-16 Messaging ExamplesSLC 5/05 Passthru ExamplesPassthru Examples DF1 to EthernetThe IP Addresse

Strona 305

Publication 1747-RM001C-EN-P - September 2001Messaging Examples 14-17The following is the logic necessary for the SLC5/03 processor.The followi

Strona 306

Publication 1747-RM001C-EN-P - September 200114-18 Messaging Examples• Channel is set to zero for DF1 full-duplex protocol.• Target Node is the

Strona 307 - Ethernet Communications

Publication 1747-RM001C-EN-P - September 2001Messaging Examples 14-19For the Step by Step procedure for this example please refer to KB DOC #:

Strona 308

Publication 1747-RM001C-EN-P - September 200114-20 Messaging ExamplesPassthru Examples Ethernet to DF1For the Step by Step procedure for this e

Strona 309 - Ethernet

Publication 1747-RM001C-EN-P - September 2001Messaging Examples 14-21Passthru Examples DH485 to EthernetFor the Step by Step procedure for this

Strona 310

Publication 1747-RM001C-EN-P - September 200114-22 Messaging ExamplesPassthru Examples Ethernet to DH485For the Step by Step procedure for this

Strona 311

Publication 1747-RM001C-EN-P - September 2001Messaging Examples 14-23Remote ExamplesAll of the following remote examples were constructed for t

Strona 312 - Ethernet Channel Status

Publication 1747-RM001C-EN-P - September 20012-10 Basic InstructionsTimer Off-Delay (TOF)Use the TOF instruction to turn an output on or off af

Strona 313

Publication 1747-RM001C-EN-P - September 200114-24 Messaging ExamplesNetwork Message Example #1: SLC5/04 to SLC5/02 via DHRIO and KA5For the St

Strona 314 - Configuration Via BOOTP

Publication 1747-RM001C-EN-P - September 2001Messaging Examples 14-25Network Message Example #2: SLC 5/04 to SLC5/03 via DHRIO and KA5For the S

Strona 315 - Using DOS/Windows BOOTP

Publication 1747-RM001C-EN-P - September 200114-26 Messaging ExamplesNetwork Message Example #3: SLC5/04 to SLC5/04 via KA5For the Step by Step

Strona 316

Publication 1747-RM001C-EN-P - September 2001Messaging Examples 14-27Network Message Example #4: SLC 5/04 to SLC5/02 via KA5For the Step by Ste

Strona 317

Publication 1747-RM001C-EN-P - September 200114-28 Messaging ExamplesNetwork Message Example #5: SLC5/04 to SLC5/03 via KA5For the Step by Step

Strona 318 - Run the Boot Server Utility

Publication 1747-RM001C-EN-P - September 2001Messaging Examples 14-29Network Message Example #6: SLC5/04 to SLC5/05 via DHRIO and ENETFor the S

Strona 319 - Running the DOS-Based Utility

Publication 1747-RM001C-EN-P - September 200114-30 Messaging ExamplesNetwork Message Example #7: 5/04 to 5/05 via ENET and DHRIOFor the Step by

Strona 320

Publication 1747-RM001C-EN-P - September 2001Messaging Examples 14-31Network Message Example #8: SLC5/05 to SLC5/03 via ENET, CNB and KFCFor th

Strona 321

Publication 1747-RM001C-EN-P - September 200114-32 Messaging ExamplesNetwork Message Example #9: SLC5/05 to SLC5/03 via ENET, DHRIO and KA5For

Strona 322

Publication 1747-RM001C-EN-P - September 2001Messaging Examples 14-33Network Message Example #10: PLC5/20E to SLC500 CH0 via ENIFor the Step by

Strona 323 - DF1 Communications

Publication 1747-RM001C-EN-P - September 2001Basic Instructions 2-11Retentive Timer (RTO)Use the RTO instruction to turn an output on or off af

Strona 324

Publication 1747-RM001C-EN-P - September 200114-34 Messaging Examples

Strona 325 - DF1 Full-Duplex

1 Publication 1747-RM001C-EN-P - September 2001Chapter 15Troubleshooting FaultsThis chapter lists the major error fault codes, indicates the probable

Strona 326 -

Publication 1747-RM001C-EN-P - September 200115-2 Troubleshooting FaultsManually Clearing FaultsThe following section describes the different w

Strona 327

Publication 1747-RM001C-EN-P - September 2001Troubleshooting Faults 15-3SLC Processor FaultsThe processor faults are divided into the following

Strona 328

Publication 1747-RM001C-EN-P - September 200115-4 Troubleshooting FaultsGoing-to-Run Errors0007 Failure during memory module transfer.Memory mo

Strona 329 - Half-Duplex Master

Publication 1747-RM001C-EN-P - September 2001Troubleshooting Faults 15-50013 •The required memory module is absent, or•S:1/10 or S:1/11 is not

Strona 330

Publication 1747-RM001C-EN-P - September 200115-6 Troubleshooting FaultsRun ErrorsTable 15.3 Run ErrorsError Code (Hex)Description Probable Cau

Strona 331

Publication 1747-RM001C-EN-P - September 2001Troubleshooting Faults 15-70022 The user watchdog scan time has been exceeded.• Either Watchdog ti

Strona 332

Publication 1747-RM001C-EN-P - September 200115-8 Troubleshooting FaultsATTENTION!The SLC processor uses an index value of zero for the faulted

Strona 333

Publication 1747-RM001C-EN-P - September 2001Troubleshooting Faults 15-9User Program Instruction ErrorsTable 15.4 User Program Instruction Erro

Strona 334

Publication 1747-RM001C-EN-P - September 2001Summary of Changes 2

Strona 335

Publication 1747-RM001C-EN-P - September 20012-12 Basic InstructionsUsing Status BitsWhen the processor changes from the REM Run or REM Test mo

Strona 336 - Monitor Active Stations

Publication 1747-RM001C-EN-P - September 200115-10 Troubleshooting FaultsI/O ErrorsERROR CODES: The characters xx in the following codes repres

Strona 337 - Half-Duplex

Publication 1747-RM001C-EN-P - September 2001Troubleshooting Faults 15-11TIPAn I/O card that is severly damaged may cause the processor to indi

Strona 338

Publication 1747-RM001C-EN-P - September 200115-12 Troubleshooting Faultsxx55 A discrete I/O module required for the user program is detected a

Strona 339

Publication 1747-RM001C-EN-P - September 2001Troubleshooting Faults 15-13xx60throughxx6FIdentifies an I/O module specific recoverable major err

Strona 340 - DF1 Half-Duplex Slave

Publication 1747-RM001C-EN-P - September 200115-14 Troubleshooting FaultsTroubleshooting SLC 5/03 and Higher ProcessorsBetween the time you app

Strona 341

Publication 1747-RM001C-EN-P - September 2001Troubleshooting Faults 15-15FAULT, BATT, FORCE Flash EEPROM failure.FAULT, BATT, FORCE, RS232 Fail

Strona 342

Publication 1747-RM001C-EN-P - September 200115-16 Troubleshooting Faults

Strona 343 - Configuring Channel 0 Poll

1 Publication 1747-RM001C-EN-P - September 2001Appendix ASLC 5/03 (OS30x), SLC 5/04 (OS40x) and SLC 5/05 (OS50x) Firmware HistoryOS300, Series A, FRN

Strona 344 - Protocols

Publication 1747-RM001C-EN-P - September 2001A-2 SLC 5/03 (OS30x), SLC 5/04 (OS40x) and SLC 5/05 (OS50x) Firmware HistoryThe ASCII instructions

Strona 345 - Radio Modems

Publication 1747-RM001C-EN-P - September 2001SLC 5/03 (OS30x), SLC 5/04 (OS40x) and SLC 5/05 (OS50x) Firmware History A-3OS301, Series A, FRN 6

Strona 346 - Processors

Publication 1747-RM001C-EN-P - September 2001Basic Instructions 2-13Counter Instructions OverviewHow Counters WorkThe figure below demonstrates

Strona 347 - DF1 Half-Duplex Master

Publication 1747-RM001C-EN-P - September 2001A-4 SLC 5/03 (OS30x), SLC 5/04 (OS40x) and SLC 5/05 (OS50x) Firmware HistoryOS301, Series A, FRN 8

Strona 348 - Off Delay Parameters

Publication 1747-RM001C-EN-P - September 2001SLC 5/03 (OS30x), SLC 5/04 (OS40x) and SLC 5/05 (OS50x) Firmware History A-5Allows user to connect

Strona 349 - ASCII Communications

Publication 1747-RM001C-EN-P - September 2001A-6 SLC 5/03 (OS30x), SLC 5/04 (OS40x) and SLC 5/05 (OS50x) Firmware HistoryOS500, Series A, FRN 1

Strona 350

Publication 1747-RM001C-EN-P - September 2001SLC 5/03 (OS30x), SLC 5/04 (OS40x) and SLC 5/05 (OS50x) Firmware History A-7In the previous releas

Strona 351

Publication 1747-RM001C-EN-P - September 2001A-8 SLC 5/03 (OS30x), SLC 5/04 (OS40x) and SLC 5/05 (OS50x) Firmware HistoryThe SLC processor main

Strona 352 - Server Capability

Publication 1747-RM001C-EN-P - September 2001SLC 5/03 (OS30x), SLC 5/04 (OS40x) and SLC 5/05 (OS50x) Firmware History A-9The Ramp (RMP) instruc

Strona 353 - TCP/IP Configuration

Publication 1747-RM001C-EN-P - September 2001A-10 SLC 5/03 (OS30x), SLC 5/04 (OS40x) and SLC 5/05 (OS50x) Firmware HistoryThe error code trappi

Strona 354 - Network Stack Statistics

Publication 1747-RM001C-EN-P - September 2001SLC 5/03 (OS30x), SLC 5/04 (OS40x) and SLC 5/05 (OS50x) Firmware History A-11The processor can sup

Strona 355

Publication 1747-RM001C-EN-P - September 2001A-12 SLC 5/03 (OS30x), SLC 5/04 (OS40x) and SLC 5/05 (OS50x) Firmware HistoryCurrently, there is a

Strona 356 - Application Level Statistics

Publication 1747-RM001C-EN-P - September 2001SLC 5/03 (OS30x), SLC 5/04 (OS40x) and SLC 5/05 (OS50x) Firmware History A-13The SLC 5/05 Ethernet

Strona 357 - Messaging Examples

Publication 1747-RM001C-EN-P - September 20012-14 Basic InstructionsUsing Status BitsThe accumulated value is retained after the CTU instructio

Strona 358 - Remote Terminology

Publication 1747-RM001C-EN-P - September 2001A-14 SLC 5/03 (OS30x), SLC 5/04 (OS40x) and SLC 5/05 (OS50x) Firmware History

Strona 359 - Features

1 Publication 1747-RM001C-EN-P - September 2001Appendix BSLC Status FileThis appendix lists the:• SLC processor status file overview• status file deta

Strona 360 - Remote I/O Passthru

Publication 1747-RM001C-EN-P - September 2001B-2 SLC Status FileWord Function Applies To PageS:0 Arithmetic and Scan Status Flags all processor

Strona 361 - DeviceNet Passthru

Publication 1747-RM001C-EN-P - September 2001SLC Status File B-3S:16, S:17 Word Single Step Rung/File SLC 5/02 and higherB-37S:18, S:19 Single

Strona 362 - DF1 to DH+ Passthru Enabled

Publication 1747-RM001C-EN-P - September 2001B-4 SLC Status FileStatus File DetailsConventions Used in the DisplaysThe following tables describ

Strona 363

Publication 1747-RM001C-EN-P - September 2001SLC Status File B-5Address Classification Description Fixed5/015/02 5/03 5/04 5/05S:0 Arithmetic a

Strona 364

Publication 1747-RM001C-EN-P - September 2001B-6 SLC Status FileS:1/0toS:1/4Status Processor Mode Status/ControlBits 0-4 function as follows:••

Strona 365 - SLC 5/04 Passthru

Publication 1747-RM001C-EN-P - September 2001SLC Status File B-7S:1/8 Dynamic ConfigFault Override at Powerup BitWhen set, this bit causes the

Strona 366

Publication 1747-RM001C-EN-P - September 2001B-8 SLC Status FileS:1/11 Static Config(See table on page B-53 for all setting combinations.)Load

Strona 367

Publication 1747-RM001C-EN-P - September 2001SLC Status File B-9S:1/12 Static Config(See table on page B-53 for all setting combinations.)Load

Strona 368

Publication 1747-RM001C-EN-P - September 2001Basic Instructions 2-15Using Status BitsThe accumulated value is retained after the CTD instructio

Strona 369 - Passthru Examples DH+ to DF1

Publication 1747-RM001C-EN-P - September 2001B-10 SLC Status FileS:1/12continuedTIP All modes in the fixed, SLC 5/01, and SLC 5/02 processors a

Strona 370 - DOC #: 14003

Publication 1747-RM001C-EN-P - September 2001SLC Status File B-11S:1/13 Dynamic ConfigMajor Error Halted BitThis bit is set by the processor an

Strona 371 - DOC #: 14004

Publication 1747-RM001C-EN-P - September 2001B-12 SLC Status FileS:1/14 Status Access Denied Bit (OEM Lock)You can allow or deny future access

Strona 372 - SLC 5/05 Passthru

Publication 1747-RM001C-EN-P - September 2001SLC Status File B-13S:2/1 Static Config STI (Selectable Timed Interrupt) Enabled BitThis bit is se

Strona 373

Publication 1747-RM001C-EN-P - September 2001B-14 SLC Status FileS:2/5 Status Incoming Command Pending Bit (Channel 1)This bit is set when the

Strona 374 - Passthru Routing Table

Publication 1747-RM001C-EN-P - September 2001SLC Status File B-15S:2/11 Status Discrete Input Interrupt Pending BitWhen set, this bit indicates

Strona 375

Publication 1747-RM001C-EN-P - September 2001B-16 SLC Status FileS:2/14 Dynamic ConfigMath Overflow Selection BitSet this bit when you intend t

Strona 376 - DOC #: 14006

Publication 1747-RM001C-EN-P - September 2001SLC Status File B-17S:2/15 Dynamic ConfigCommunications Servicing Selection Bit(Ethernet Channel 1

Strona 377 - DOC #: 14007

Publication 1747-RM001C-EN-P - September 2001B-18 SLC Status FileS:3L Status Current/Last 10 ms Scan TimeThe value of this byte tells you how m

Strona 378 - DOC #: 14008

Publication 1747-RM001C-EN-P - September 2001SLC Status File B-19S:3LcontinuedApplication example: Your application requires that each and ever

Strona 379 - Remote Examples

Publication 1747-RM001C-EN-P - September 20012-16 Basic Instructionsuse the instruction, you must cut the jumper as shown below. A shielded cab

Strona 380 - DOC #: 14009

Publication 1747-RM001C-EN-P - September 2001B-20 SLC Status FileS:4 Status Free Running ClockOnly the first 8 bits (byte value) of this word a

Strona 381 - DOC #: 14010

Publication 1747-RM001C-EN-P - September 2001SLC Status File B-21S:5/0 Dynamic ConfigOverflow Trap BitWhen this bit is set by the processor, it

Strona 382 - DOC #: 14011

Publication 1747-RM001C-EN-P - September 2001B-22 SLC Status FileS:5/4 Dynamic ConfigM0-M1 Referenced on Disabled Slot BitThis bit is set whene

Strona 383 - DOC #: 14012

Publication 1747-RM001C-EN-P - September 2001SLC Status File B-23S:5/13 DynamicConfigUnsuccessful Operating System Load Was AttemptedThis bit i

Strona 384 - DOC #: 14013

Publication 1747-RM001C-EN-P - September 2001B-24 SLC Status FileS:6 Status Major Error Fault CodeA hexadecimal code is entered in this word by

Strona 385 - DOC #: 14014

Publication 1747-RM001C-EN-P - September 2001SLC Status File B-25Address Error Code (Hex)Errors Fault Classification ProcessorNon-UserUser Fixe

Strona 386 - DOC #: 14015

Publication 1747-RM001C-EN-P - September 2001B-26 SLC Status FileS:6continued0020 A minor error bit is set at the end of the scan. Refer to S:5

Strona 387 - DOC #: 14016

Publication 1747-RM001C-EN-P - September 2001SLC Status File B-27I/O ErrorsERROR CODES: The characters xx in the following codes represent the

Strona 388 - DHRIO and KA5

Publication 1747-RM001C-EN-P - September 2001B-28 SLC Status FileSlot xx(2)(2) Slot Numbers (xx) in hexadecimalSlot xx Slot xx Slot xx0123(1)45

Strona 389 - DOC #: 14018

Publication 1747-RM001C-EN-P - September 2001SLC Status File B-29S:6continued0038 A RET instruction was detected in a non-subroutine file.X • •

Strona 390

Publication 1747-RM001C-EN-P - September 2001Basic Instructions 2-17High-Speed Counter OperationFor high-speed counter operation you must do th

Strona 391 - Troubleshooting Faults

Publication 1747-RM001C-EN-P - September 2001B-30 SLC Status FileS:6continuedxx57 A specialty I/O module has not responded to a lock shared mem

Strona 392 - Manually Clearing Faults

Publication 1747-RM001C-EN-P - September 2001SLC Status File B-31S:6continuedxx90 Interrupt problem on disabled slot.X••••xx91 A disabled slot

Strona 393 - Powerup Errors

Publication 1747-RM001C-EN-P - September 2001B-32 SLC Status FileAddress Classification Description Fixed5/015/02 5/03 5/04 5/05S:7 and S:8Stat

Strona 394 - Going-to-Run Errors

Publication 1747-RM001C-EN-P - September 2001SLC Status File B-33S:11andS:12Dynamic Config I/O Slot EnablesThese two words are bit mapped to re

Strona 395

Publication 1747-RM001C-EN-P - September 2001B-34 SLC Status FileS:13andS:14Status and Dynamic ConfigMath RegisterUse this double register to p

Strona 396 - Run Errors

Publication 1747-RM001C-EN-P - September 2001SLC Status File B-35S:15L Static Config Node AddressThis byte value contains the node address of y

Strona 397

Publication 1747-RM001C-EN-P - September 2001B-36 SLC Status FileS:15HcontinuedStatic Config When a configure channel command is received for c

Strona 398 - ATTENTION

Publication 1747-RM001C-EN-P - September 2001SLC Status File B-37S:16 and S:17Status Test Single Step - Start Step On - Rung/FileThese register

Strona 399

Publication 1747-RM001C-EN-P - September 2001B-38 SLC Status FileS:20 and S:21Status Test - Fault/Powerdown - Rung/FileThese registers indicate

Strona 400 - I/O Errors

Publication 1747-RM001C-EN-P - September 2001SLC Status File B-39S:22 Status Maximum Observed Scan TimeThis word indicates the maximum observed

Strona 401

Publication 1747-RM001C-EN-P - September 20012-18 Basic InstructionsYour ladder program should poll the Done bit (C5:0/DN) to determine the sta

Strona 402

Publication 1747-RM001C-EN-P - September 2001B-40 SLC Status FileS:25andS:26Status I/O Interrupt PendingThese two words are bit-mapped to the 3

Strona 403

Publication 1747-RM001C-EN-P - September 2001SLC Status File B-41S:29 Dynamic Config User Fault Routine File NumberYou enter a program file num

Strona 404 - SLC 5/03 and Higher

Publication 1747-RM001C-EN-P - September 2001B-42 SLC Status FileS:32 Status I/O Interrupt ExecutingThis word indicates the slot number of the

Strona 405 - ON LED Display Description

Publication 1747-RM001C-EN-P - September 2001SLC Status File B-43S:33/5 Dynamic Config Communications Servicing Selection (Channel 0)When set,

Strona 406

Publication 1747-RM001C-EN-P - September 2001B-44 SLC Status FileS:33/8 Static Config Interrupt Latency Control BitWhen set, interrupt latency

Strona 407 - 5/05 (OS50x) Firmware History

Publication 1747-RM001C-EN-P - September 2001SLC Status File B-45S:33/11 and S:33/12Status Online Edit StatusThese two bits represent the four

Strona 408 - OS400, Series A, FRN 1

Publication 1747-RM001C-EN-P - September 2001B-46 SLC Status FileS:33/15 Dynamic Config DTR Force Bit (Channel 0)This bit is used to force the

Strona 409 - Enhancements

Publication 1747-RM001C-EN-P - September 2001SLC Status File B-47S:34/4 Dynamic Config Global Status Word Receive Enable BitWhen this bit is se

Strona 410

Publication 1747-RM001C-EN-P - September 2001B-48 SLC Status FileS:36/9 Status STI LostThis bit is set anytime an STI interrupt occurs while th

Strona 411 - OS401, Series B, FRN 7

Publication 1747-RM001C-EN-P - September 2001SLC Status File B-49S:43S:44S:45Status Selectable Timed Interrupt - 10 µs TimerI/O Event Interrupt

Strona 412 - Enhancements (OS501 only)

Publication 1747-RM001C-EN-P - September 2001Basic Instructions 2-19Application Example - File 2 (Poll for DN Bit in Main Program)Application E

Strona 413

Publication 1747-RM001C-EN-P - September 2001B-50 SLC Status FileS:49 Dynamic Config Discrete Input Interrupt - Compare ValueYou enter a bit ma

Strona 414

Publication 1747-RM001C-EN-P - September 2001SLC Status File B-51S:55 Status Last Discrete Input Interrupt Scan TimeThis value indicates, in 1

Strona 415

Publication 1747-RM001C-EN-P - September 2001B-52 SLC Status FileS:66 Status Flash EEPROM SizeIndicates the size of operating system memory in

Strona 416

Publication 1747-RM001C-EN-P - September 2001SLC Status File B-53The following table lists all combination settings for S:1/10, S:1/11 and S:1/

Strona 417

Publication 1747-RM001C-EN-P - September 2001B-54 SLC Status File

Strona 418

1 Publication 1747-RM001C-EN-P - September 2001Appendix CMemory UsageThis appendix provides:• instruction words for the Fixed, SLC 5/01, SLC 5/02, SLC

Strona 419

Publication 1747-RM001C-EN-P - September 2001C-2 Memory UsageFixed and SLC 5/01 ProcessorsThe number of words used by an instruction is indicat

Strona 420

Publication 1747-RM001C-EN-P - September 2001Memory Usage C-3MVM 1.50 Masked Move Data Handling 5-18NEG 1.50 Negate Data Handling 5-24NEQ 1.50

Strona 421

Publication 1747-RM001C-EN-P - September 2001C-4 Memory UsageEstimating Total Memory Usage of Your System Using a Fixed orSLC 5/01 Processor___

Strona 422 - B-2 SLC Status File

Publication 1747-RM001C-EN-P - September 2001Memory Usage C-5Fixed Controller Memory Usage ExampleL20B Fixed I/O Controller42 XIC and XIO 42 x

Strona 423 - SLC Status File B-3

Publication 1747-RM001C-EN-P - September 20012-20 Basic InstructionsReset (RES)Use a RES instruction to reset a timer or counter. When the RES

Strona 424 - Status File Details

Publication 1747-RM001C-EN-P - September 2001C-6 Memory UsageSLC 5/01 Processor Memory Usage Example1747-L514 processor, 30-slot configuration,

Strona 425 - SLC Status File B-5

Publication 1747-RM001C-EN-P - September 2001Memory Usage C-7SLC 5/02 ProcessorThe number of instruction words used by an instruction is indica

Strona 426 - B-6 SLC Status File

Publication 1747-RM001C-EN-P - September 2001C-8 Memory UsageLIM 1.50 Limit Test Comparison 3-4LFL 1.50 LIFO Load Data Handling 5-28LFU 1.50 LI

Strona 427 - SLC Status File B-7

Publication 1747-RM001C-EN-P - September 2001Memory Usage C-9TND 0.50 Temporary End Program Flow Control 6-7TOD 1.00 Convert to BCD Data Handli

Strona 428

Publication 1747-RM001C-EN-P - September 2001C-10 Memory UsageEstimating Total Memory Usage of Your System Using a SLC 5/02 Processor__________

Strona 429 - SLC Status File B-9

Publication 1747-RM001C-EN-P - September 2001Memory Usage C-11SLC 5/02 Memory Usage Example1747-L524 series C processor, 30-slot configuration,

Strona 430

Publication 1747-RM001C-EN-P - September 2001C-12 Memory UsageUser Word Comparison Between SLC 5/03 (and higher) Processors and the SLC 5/02 Pr

Strona 431

Publication 1747-RM001C-EN-P - September 2001Memory Usage C-13Data WordsFiles 0 and 1In the SLC 5/02 processor, each I/O data word consumes 0.7

Strona 432 - B-12 SLC Status File

Publication 1747-RM001C-EN-P - September 2001C-14 Memory UsageACN • • • 3.00 String Concatenate ASCII 10-10ACS • • 2.00 Arc Cosine Math 4-29ADD

Strona 433 - SLC Status File B-13

Publication 1747-RM001C-EN-P - September 2001Memory Usage C-15DEG FP • • 2.00 Degree Data Handling 5-8DIV • • • • 3.00, 4.00 Divide Math 4-9DIV

Strona 434 - B-14 SLC Status File

1 Publication 1747-RM001C-EN-P - September 2001Chapter 3Comparison InstructionsThis chapter contains general information about comparison instructions

Strona 435 - SLC Status File B-15

Publication 1747-RM001C-EN-P - September 2001C-16 Memory UsageLIM FP • • • 1.00 Limit Test Comparison 3-4LN FP • • 2.00 Natural Log Math 4-30LO

Strona 436 - B-16 SLC Status File

Publication 1747-RM001C-EN-P - September 2001Memory Usage C-17SCL FP • • 4.00 Scale Data Math 4-15SCP • • 6.00 Scale with Parameters Math 4-13S

Strona 437 - SLC Status File B-17

Publication 1747-RM001C-EN-P - September 2001C-18 Memory UsageEstimating Total Memory Usage of Your System Using an SLC 5/03, SLC 5/04 or SLC 5

Strona 438 - B-18 SLC Status File

Publication 1747-RM001C-EN-P - September 2001Memory Usage C-19SLC 5/03, SLC 5/04 or SLC 5/05 Memory Usage Example1747-L532 processor, 30-slot c

Strona 439 - SLC Status File B-19

Publication 1747-RM001C-EN-P - September 2001C-20 Memory Usage

Strona 440

1 Publication 1747-RM001C-EN-P - September 2001Appendix DProgramming Instruction ReferencesThis appendix lists all of the available programming instru

Strona 441 - SLC Status File B-21

Publication 1747-RM001C-EN-P - September 2001D-2 Programming Instruction ReferencesUnderstanding the Different Addressing ModesThe following de

Strona 442 - B-22 SLC Status File

Publication 1747-RM001C-EN-P - September 2001Programming Instruction References D-3then adds the offset from the Index Register S:24 to come up

Strona 443 - SLC Status File B-23

Publication 1747-RM001C-EN-P - September 2001D-4 Programming Instruction ReferencesAEX(1) ASCII String Extract source direct, indirect ST nonei

Strona 444 - SLC 5/02 processor users

Publication 1747-RM001C-EN-P - September 2001Programming Instruction References D-5ASN(2)Arc Sine source direct, indexed directindirect, indexe

Strona 445 - SLC Status File B-25

i Publication 1747-RM001C-EN-P - September 2001Table of ContentsPrefaceWho Should Use this Manual. . . . . . . . . . . . . . . . . . . . . . . . . 1P

Strona 446

Publication 1747-RM001C-EN-P - September 20013-2 Comparison InstructionsComparison Instructions OverviewThe following general information appli

Strona 447

Publication 1747-RM001C-EN-P - September 2001D-6 Programming Instruction ReferencesCLR Clear destination direct, indexed directindirect, indexe

Strona 448 - B-28 SLC Status File

Publication 1747-RM001C-EN-P - September 2001Programming Instruction References D-7DIV Divide source A direct, indexed directindirect, indexed

Strona 449 - SLC Status File B-29

Publication 1747-RM001C-EN-P - September 2001D-8 Programming Instruction ReferencesFRD From BCD to Binary source (SLC 5/01) direct O, I, S, B,

Strona 450 - B-30 SLC Status File

Publication 1747-RM001C-EN-P - September 2001Programming Instruction References D-9LBL Label Declaration label number 0 to 999LEQ Less Than or

Strona 451 - SLC Status File B-31

Publication 1747-RM001C-EN-P - September 2001D-10 Programming Instruction ReferencesMEQ Mask Compare Equal To source direct, indexed directindi

Strona 452 - B-32 SLC Status File

Publication 1747-RM001C-EN-P - September 2001Programming Instruction References D-11MSG(5/03, 5/04, and 5/05(7))Message type 64=peer-to-peerrea

Strona 453

Publication 1747-RM001C-EN-P - September 2001D-12 Programming Instruction ReferencesMSG(5/05 Ethernet)Message type 64=peer-to-peerread/write 0=

Strona 454 - B-34 SLC Status File

Publication 1747-RM001C-EN-P - September 2001Programming Instruction References D-13TIPMessage lengths for SLC 5/05 processors are shown in the

Strona 455 - SLC Status File B-35

Publication 1747-RM001C-EN-P - September 2001D-14 Programming Instruction ReferencesInstruction Description Parameter Valid Addressing Mode(s)V

Strona 456 - B-36 SLC Status File

Publication 1747-RM001C-EN-P - September 2001Programming Instruction References D-15PID(1)PID control block direct N noneprocess variable direc

Strona 457 - SLC Status File B-37

Publication 1747-RM001C-EN-P - September 2001Comparison Instructions 3-3Less Than (LES)Use the LES instruction to test whether one value (sourc

Strona 458

Publication 1747-RM001C-EN-P - September 2001D-16 Programming Instruction ReferencesSCP(2)Scale with Parameters input direct, indexed directind

Strona 459 - SLC Status File B-39

Publication 1747-RM001C-EN-P - September 2001Programming Instruction References D-17SQR(3)Square Root source direct, indexed directindirect, in

Strona 460 - B-40 SLC Status File

Publication 1747-RM001C-EN-P - September 2001D-18 Programming Instruction ReferencesTOD Convert to BCD source (SLC 5/01) direct O, I, S, B, T,

Strona 461 - SLC Status File B-41

1 Publication 1747-RM001C-EN-P - September 2001Appendix EData File Organization and AddressingThis chapter discusses the following topics:• data file

Strona 462 - DH-485 protocol only

Publication 1747-RM001C-EN-P - September 2001E-2 Data File Organization and Addressingversion with the edited version. The hard disk is the re

Strona 463 - SLC Status File B-43

Publication 1747-RM001C-EN-P - September 2001Data File Organization and Addressing E-3• Input (file 1) - This file stores the status of the inp

Strona 464 - B-44 SLC Status File

Publication 1747-RM001C-EN-P - September 2001E-4 Data File Organization and AddressingTable 5.A Data file types, identifiers, and numbers (data

Strona 465 - SLC Status File B-45

Publication 1747-RM001C-EN-P - September 2001Data File Organization and Addressing E-5Specifying Logical AddressesYou assign logical addresses

Strona 466 - B-46 SLC Status File

Publication 1747-RM001C-EN-P - September 2001E-6 Data File Organization and AddressingYou can also address at the bit level using mnemonics for

Strona 467 - SLC Status File B-47

Publication 1747-RM001C-EN-P - September 2001Data File Organization and Addressing E-7The table on the following page explains the addressing f

Strona 468 - B-48 SLC Status File

Publication 1747-RM001C-EN-P - September 20013-4 Comparison InstructionsGreater Than or Equal (GEQ)Use the GEQ instruction to test whether one

Strona 469 - SLC Status File B-49

Publication 1747-RM001C-EN-P - September 2001E-8 Data File Organization and AddressingI/O Addressing for a Modular ControllerWith modular contr

Strona 470 - B-50 SLC Status File

Publication 1747-RM001C-EN-P - September 2001Data File Organization and Addressing E-9The figure indicates the number of inputs and outputs in

Strona 471 - SLC Status File B-51

Publication 1747-RM001C-EN-P - September 2001E-10 Data File Organization and AddressingSpecifying Indexed AddressesThe indexed address symbol i

Strona 472 - B-52 SLC Status File

Publication 1747-RM001C-EN-P - September 2001Data File Organization and Addressing E-11SLC 5/03 (OS301 and higher), SLC 5/04, and SLC 5/05 proc

Strona 473 - SLC Status File B-53

Publication 1747-RM001C-EN-P - September 2001E-12 Data File Organization and Addressingoccur if you use an offset value that results in crossin

Strona 474 - B-54 SLC Status File

Publication 1747-RM001C-EN-P - September 2001Data File Organization and Addressing E-13Monitoring Indexed AddressesThe offset address value is

Strona 475

Publication 1747-RM001C-EN-P - September 2001E-14 Data File Organization and AddressingEffects of Program Interrupts on Index Register S:24When

Strona 476 - Fixed and SLC 5/01

Publication 1747-RM001C-EN-P - September 2001Data File Organization and Addressing E-15ExamplesCreating Data for Indirect AddressesData tables

Strona 477 - Memory Usage C-3

Publication 1747-RM001C-EN-P - September 2001E-16 Data File Organization and AddressingThe following paragraphs explain user-created files as t

Strona 478 - SLC 5/01 Processor

Publication 1747-RM001C-EN-P - September 2001Data File Organization and Addressing E-17Sequencer InstructionsThe following figure shows a user-

Strona 479 - Memory Usage C-5

Publication 1747-RM001C-EN-P - September 2001Comparison Instructions 3-5• If the Test parameter is a program constant, both the Low Limit and H

Strona 480 - C-6 Memory Usage

Publication 1747-RM001C-EN-P - September 2001E-18 Data File Organization and AddressingThe following figure shows a user-defined file within Da

Strona 481 - SLC 5/02 Processor

Publication 1747-RM001C-EN-P - September 2001Data File Organization and Addressing E-19When entering values into an instruction or data table e

Strona 482 - C-8 Memory Usage

Publication 1747-RM001C-EN-P - September 2001E-20 Data File Organization and AddressingAddressing M0-M1 FilesThe addressing format for M0 and M

Strona 483 - Memory Usage C-9

Publication 1747-RM001C-EN-P - September 2001Data File Organization and Addressing E-21SLC 5/03 and Higher ProcessorsThe SLC 5/03 and higher pr

Strona 484 - Processor

Publication 1747-RM001C-EN-P - September 2001E-22 Data File Organization and AddressingThe COP instruction that follows copies data form an M1

Strona 485 - SLC 5/02 Memory Usage Example

Publication 1747-RM001C-EN-P - September 2001Data File Organization and Addressing E-23In the equivalent rungs of the following figure, XIC ins

Strona 486 - Between SLC 5/03 (and

Publication 1747-RM001C-EN-P - September 2001E-24 Data File Organization and AddressingCapturing M0-M1 File DataThe first two ladder diagrams i

Strona 487 - SLC 5/05 Processor

Publication 1747-RM001C-EN-P - September 2001Data File Organization and Addressing E-25G Data Files - Specialty I/O ModulesSome specialty I/O m

Strona 488 - C-14 Memory Usage

Publication 1747-RM001C-EN-P - September 2001E-26 Data File Organization and Addressing

Strona 489 - Memory Usage C-15

1 Publication 1747-RM001C-EN-P - September 2001Appendix FNumber SystemsThis appendix:• covers binary and hexadecimal numbers• explains the use of a he

Strona 490 - C-16 Memory Usage

Publication 1747-RM001C-EN-P - September 20013-6 Comparison Instructions

Strona 491 - Memory Usage C-17

Publication 1747-RM001C-EN-P - September 2001F-2 Number SystemsNegative Decimal ValuesThe 2s complement notation is used. The far left positio

Strona 492 - C-18 Memory Usage

Publication 1747-RM001C-EN-P - September 2001Number Systems F-3Hexadecimal NumbersHexadecimal numbers use single characters with equivalent dec

Strona 493 - Memory Usage C-19

Publication 1747-RM001C-EN-P - September 2001F-4 Number SystemsHexadecimal and binary numbers have the following equivalence: ExampleDecimal nu

Strona 494 - C-20 Memory Usage

Publication 1747-RM001C-EN-P - September 2001Number Systems F-5Hex MaskThis is a 4-character code, entered as a parameter in SQO, SQC, and othe

Strona 495 - Appendix

Publication 1747-RM001C-EN-P - September 2001F-6 Number SystemsBinary Floating-Point ArithmeticThe SLC 5/03, OS301 and higher, SLC 5/04, and SL

Strona 496 - Indexed Indirect Addressing

1 Publication 1747-RM001C-EN-P - September 2001Appendix GApplication Example ProgramsThis appendix is designed to illustrate various instructions desc

Strona 497

Publication 1747-RM001C-EN-P - September 2001G-2 Application Example ProgramsOPERATOR PANELStart I:1/6Stop I:1/7Change Drill SoonO:3/4Change Dr

Strona 498

Publication 1747-RM001C-EN-P - September 2001Application Example Programs G-3Paper Drilling Machine Operation OverviewUndrilled books are place

Strona 499

Publication 1747-RM001C-EN-P - September 2001G-4 Application Example ProgramsThe following rung will call the drill sequence subroutine. The su

Strona 500

Publication 1747-RM001C-EN-P - September 2001Application Example Programs G-5Drill Mechanism OperationWhen the operator presses the start butto

Strona 501

1 Publication 1747-RM001C-EN-P - September 2001Chapter 4Math InstructionsThis chapter contains general information about math instructions and explain

Strona 502

Publication 1747-RM001C-EN-P - September 2001G-6 Application Example ProgramsConveyor OperationWhen the start button is pressed, the conveyor m

Strona 503

Publication 1747-RM001C-EN-P - September 2001Application Example Programs G-7The following rung will keep track of the hole number that is bein

Strona 504

Publication 1747-RM001C-EN-P - September 2001G-8 Application Example ProgramsThe following rung is identical to the previous two rungs except t

Strona 505

Publication 1747-RM001C-EN-P - September 2001Application Example Programs G-9The following rung stops the conveyor and signals the main program

Strona 506

Publication 1747-RM001C-EN-P - September 2001G-10 Application Example ProgramsDrill Calculation and WarningThe program tracks the number of hol

Strona 507

Publication 1747-RM001C-EN-P - September 2001Application Example Programs G-11The following rung will reset the number of 1/4" increments

Strona 508

Publication 1747-RM001C-EN-P - September 2001G-12 Application Example ProgramsThe following rung will convert the BCD thumbwheel value from BCD

Strona 509

Publication 1747-RM001C-EN-P - September 2001Application Example Programs G-13The following rung will keep a running total of how many inches o

Strona 510

Publication 1747-RM001C-EN-P - September 2001G-14 Application Example ProgramsTime Driven Sequencer Application ExampleThe following applicatio

Strona 511

Publication 1747-RM001C-EN-P - September 2001Application Example Programs G-15Event Driven Sequencer Application ExampleThe following applicati

Strona 512

Publication 1747-RM001C-EN-P - September 20014-2 Math InstructionsAbout the Math InstructionsThe majority of the instructions take two input va

Strona 513

Publication 1747-RM001C-EN-P - September 2001G-16 Application Example Programssequencers also “roll over” to step 1. “Roll Over” to step 1 is i

Strona 514 - Data Files

Publication 1747-RM001C-EN-P - September 2001Application Example Programs G-17On/Off Circuit Ladder ProgramInterfacing with Enhanced Bar Code D

Strona 515 - Addressing Data Files

Publication 1747-RM001C-EN-P - September 2001G-18 Application Example Programsorder for a device to get bar code data from an Enhanced Bar Code

Strona 516

Publication 1747-RM001C-EN-P - September 2001Application Example Programs G-19The 5/03 ladder program then initiates a “MSG Write” to the decod

Strona 517 - Specifying Logical Addresses

Publication 1747-RM001C-EN-P - September 2001G-20 Application Example ProgramsSequence of EventsThe photo switch input to the SLC goes from fal

Strona 518 - Bit within an integer file

Publication 1747-RM001C-EN-P - September 2001Application Example Programs G-21Optimizing MSG Time-OutIf the time delay between sending a comman

Strona 519

Publication 1747-RM001C-EN-P - September 2001G-22 Application Example ProgramsExample Scanner and Decoder ConfigurationControl block N7:0 N7:20

Strona 520

Publication 1747-RM001C-EN-P - September 2001Application Example Programs G-23Example Ladder ProgramThis rung detects the Photo Switch input go

Strona 521

Publication 1747-RM001C-EN-P - September 2001G-24 Application Example ProgramsThe internal storage bit, B3/1, holds the MSG instruction true un

Strona 522 - Example of Indexed Addressing

Publication 1747-RM001C-EN-P - September 2001Application Example Programs G-25This rung moves the decimal value for the bar code decoder “Read”

Strona 523 - Crossing File Boundaries

Publication 1747-RM001C-EN-P - September 2001Math Instructions 4-3(OS302), SLC 5/04 (OS401), or SLC 5/05 processors. Refer to Appendix C for mo

Strona 524 - of -3 and a

Publication 1747-RM001C-EN-P - September 2001G-26 Application Example ProgramsWhen the SLC processor sets both DN and DA for a MSG instruction,

Strona 525 - File Instructions

Publication 1747-RM001C-EN-P - September 2001IndexNumerics1747-CP3 13-385/04 processorschannel 0, RS-232 communication 13-21AAbsolute (ABS) 4-24math i

Strona 526 - + subelement)

Publication 1747-RM001C-EN-P - September 20012 IndexBlock TransferEntering Parameters 8-2Programming Examples 8-8RIO Block Transfer Overview 8-

Strona 527 - Monitoring Indirect Addresses

Publication 1747-RM001C-EN-P - September 2001Index 3control register error bit B-21Convert to BCD (TOD) 5-2data handling instruction 5-2Copy Fi

Strona 528

Publication 1747-RM001C-EN-P - September 20014 IndexDII enable bit B-15DII executing bit B-15DII lost B-47DII overflow bit B-22DII pending bit

Strona 529

Publication 1747-RM001C-EN-P - September 2001Index 5file copy and file fill instructions E-17file indicator (#) E-15file organizationdata files

Strona 530 - Numeric Constants

Publication 1747-RM001C-EN-P - September 20016 IndexLEDs 15-14SLC 5/03 and SLC 5/04 LEDs 15-14load memory module on memory error bit B-7local m

Strona 531 - Specialty I/O Modules

Publication 1747-RM001C-EN-P - September 2001Index 7MSG instruction for SLC 5/03 and SLC 5/04 processors 12-4communication instruction 12-4MSG

Strona 532 - Monitoring Bit Addresses

Publication 1747-RM001C-EN-P - September 20018 IndexRRadian to Degrees (DEG) 5-8data handling instruction 5-8Ramp (RMP) 4-20ramp equation 4-23r

Strona 533

Publication 1747-RM001C-EN-P - September 2001Index 9SLC 5/03, 5/04, and 5/05 13-45, 13-52SLC-5/03, 5/04, and 5/05 13-55Station listviewing 13-5

Strona 534 - Minimizing the Scan Time

Publication 1747-RM001C-EN-P - September 20014-4 Math InstructionsUsing Floating Point Data File (F8:)This file type is valid for SLC 5/03 (OS3

Strona 535

Publication 1747-RM001C-EN-P - September 200110 Index

Strona 536 - Capturing M0-M1 File Data

1 Publication 1747-RM001C-EN-PSLC 500 Alphabetical List of InstructionsInstruction- Description Page Instruction- Description PageABS - Absolute 4-24

Strona 537 - G Data Files - Specialty I/O

Publication 1747-RM001C-EN-P - September 2001 1 PN XXXXXX-XXSupersedes Publication 1747-6.15 - January 1998, 1747-DU001A-EN-P - July 2000, 1747-RN001A

Strona 538

Publication 1747-RM001C-EN-P - September 2001Math Instructions 4-5Add (ADD)Use the ADD instruction to add one value (source A) to another value

Strona 539 - Number Systems

Publication 1747-RM001C-EN-P - September 2001Table of Contents iiMultiply (MUL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Strona 540 - F-2 Number Systems

Publication 1747-RM001C-EN-P - September 20014-6 Math Instructions32-Bit Addition and SubtractionYou have the option of performing 16-bit or 32

Strona 541 - Hexadecimal Numbers

Publication 1747-RM001C-EN-P - September 2001Math Instructions 4-7Example of 32-bit AdditionThe following example shows how a 16-bit signed int

Strona 542 - F-4 Number Systems

Publication 1747-RM001C-EN-P - September 20014-8 Math Instructions Multiply (MUL)Use the MUL instruction to multiply one value (source A) by an

Strona 543 - Hex Mask

Publication 1747-RM001C-EN-P - September 2001Math Instructions 4-9Updates to the Math Register, S:13 and S:14During integer operation, S:13 and

Strona 544 - Arithmetic

Publication 1747-RM001C-EN-P - September 20014-10 Math InstructionsUpdates to the Math Registers, S:13 and S:14During integer operation, the un

Strona 545 - Application Example Programs

Publication 1747-RM001C-EN-P - September 2001Math Instructions 4-11Double Divide (DDV)The 32-bit content of the math register is divided by the

Strona 546 - OPERATOR PANEL

Publication 1747-RM001C-EN-P - September 20014-12 Math InstructionsClear (CLR)Use the CLR instruction to set the destination value of a word to

Strona 547

Publication 1747-RM001C-EN-P - September 2001Math Instructions 4-13Scale with Parameters (SCP)Use the SCP instruction to produce a scaled outpu

Strona 548

Publication 1747-RM001C-EN-P - September 20014-14 Math InstructionsUpdates to Arithmetic Status BitsThe arithmetic status bits are found in Wor

Strona 549 - Drill Mechanism Operation

Publication 1747-RM001C-EN-P - September 2001Math Instructions 4-15Example 2In the second example, an analog I/O combination module (1746-NIO4I

Strona 550 - Conveyor Operation

Publication 1747-RM001C-EN-P - September 2001Table of Contents iiiChapter 6Program Flow InstructionsAbout the Program Flow Control Instructions

Strona 551

Publication 1747-RM001C-EN-P - September 20014-16 Math InstructionsNote that the term rate is sometimes referred to as slope. The rate function

Strona 552 - 1746-IA16

Publication 1747-RM001C-EN-P - September 2001Math Instructions 4-17Application Example 1 - Converting 4 to 20 mA Analog Input Signal to PID Pro

Strona 553

Publication 1747-RM001C-EN-P - September 20014-18 Math InstructionsApplication Example 2 - Scaling an Analog Input to Control an Analog OutputC

Strona 554 - Drill Calculation and Warning

Publication 1747-RM001C-EN-P - September 2001Math Instructions 4-19Notice that an overflow occurred even though the final value was correct. Th

Strona 555

Publication 1747-RM001C-EN-P - September 20014-20 Math InstructionsIn this example, the SCL instruction is entered in the ladder logic program

Strona 556

Publication 1747-RM001C-EN-P - September 2001Math Instructions 4-21• Word 3 Beginning Output Value - Starting point of ramp (integer value, val

Strona 557

Publication 1747-RM001C-EN-P - September 20014-22 Math InstructionsInstruction OperationWhen the rung state is true all parameters are validate

Strona 558

Publication 1747-RM001C-EN-P - September 2001Math Instructions 4-23When the rung state is false, the current time is not updated and the destin

Strona 559

Publication 1747-RM001C-EN-P - September 20014-24 Math InstructionsContinuous OperationAbsolute (ABS)Use the ABS instruction to calculate the a

Strona 560 - On/Off Circuit Application

Publication 1747-RM001C-EN-P - September 2001Math Instructions 4-25Compute (CPT)The CPT instruction performs copy, arithmetic, logical, and con

Strona 561

Publication 1747-RM001C-EN-P - September 2001Table of Contents ivChapter 10ASCII InstructionsASCII Instruction Overview . . . . . . . . . . . .

Strona 562 - System Set Up

Publication 1747-RM001C-EN-P - September 20014-26 Math InstructionsUpdates to Arithmetic Status BitsThe arithmetic status bits are found in Wor

Strona 563 - Operating Sequence

Publication 1747-RM001C-EN-P - September 2001Math Instructions 4-27Swap (SWP)Use this instruction to swap the low and high bytes of a specified

Strona 564 - Sequence of Events

Publication 1747-RM001C-EN-P - September 20014-28 Math InstructionsThe following example shows how the SWP instruction works.Before:ST10:1 = ab

Strona 565 - Optimizing MSG Time-Out

Publication 1747-RM001C-EN-P - September 2001Math Instructions 4-29Arc Cosine (ACS)Use the ACS instruction to take the arc cosine of a number (

Strona 566

Publication 1747-RM001C-EN-P - September 20014-30 Math InstructionsCosine (COS)Use the COS instruction to take the cosine of a number (source i

Strona 567 - Example Ladder Program

Publication 1747-RM001C-EN-P - September 2001Math Instructions 4-31Log to the Base 10 (LOG)Use the LOG instruction to take the log base 10 of t

Strona 568

Publication 1747-RM001C-EN-P - September 20014-32 Math InstructionsTangent (TAN)Use the TAN instruction to take the tangent of a number (source

Strona 569

Publication 1747-RM001C-EN-P - September 2001Math Instructions 4-33Updates to Arithmetic Status BitsThe arithmetic status bits are found in Wor

Strona 570

Publication 1747-RM001C-EN-P - September 20014-34 Math Instructions

Strona 571 - Numerics

1 Publication 1747-RM001C-EN-P - September 2001Chapter 5Data Handling InstructionsThis chapter contains general information about the data handling in

Strona 572 - 2 Index

Publication 1747-RM001C-EN-P - September 2001Table of Contents vChapter 12SLC Communication InstructionsAbout the Communication Instructions .

Strona 573 - Index 3

Publication 1747-RM001C-EN-P - September 20015-2 Data Handling InstructionsConvert to BCD (TOD)Use this instruction to convert 16-bit integers

Strona 574 - 4 Index

Publication 1747-RM001C-EN-P - September 2001Data Handling Instructions 5-3Example 2The integer value 32760 stored at N7:3 is converted to BCD.

Strona 575 - Index 5

Publication 1747-RM001C-EN-P - September 20015-4 Data Handling InstructionsTODTO BCDSource N7:332760Dest S:1300032760(U) S:50] [S:0 1MOVMOVESou

Strona 576 - 6 Index

Publication 1747-RM001C-EN-P - September 2001Data Handling Instructions 5-5Convert from BCD (FRD)Use this instruction to convert BCD values to

Strona 577 - Index 7

Publication 1747-RM001C-EN-P - September 20015-6 Data Handling InstructionsChanges to the Math Register, S:13 and S:14Used as the source for co

Strona 578 - 8 Index

Publication 1747-RM001C-EN-P - September 2001Data Handling Instructions 5-7You should convert BCD values to integer before you manipulate them

Strona 579 - Index 9

Publication 1747-RM001C-EN-P - September 20015-8 Data Handling InstructionsWhen the input condition is set (1), a BCD value (transferred from a

Strona 580 - 10 Index

Publication 1747-RM001C-EN-P - September 2001Data Handling Instructions 5-9Updates to Arithmetic Status BitsThe arithmetic status bits are foun

Strona 581

Publication 1747-RM001C-EN-P - September 20015-10 Data Handling InstructionsUpdates to Arithmetic Status BitsThe arithmetic status bits are fou

Strona 582

Publication 1747-RM001C-EN-P - September 2001Data Handling Instructions 5-11Entering Parameters• Source is the address that contains the bit de

Komentarze do niniejszej Instrukcji

Brak uwag