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,
Publication 1747-RM001C-EN-P - September 2001Table of Contents viChapter 15Troubleshooting FaultsAutomatically Clearing Faults. . . . . . . . .
Publication 1747-RM001C-EN-P - September 20015-12 Data Handling InstructionsEntering Parameters• Source is the address of the word to be encode
Publication 1747-RM001C-EN-P - September 2001Data Handling Instructions 5-13After a COP or FLL instruction is executed, index register S:24 is
Publication 1747-RM001C-EN-P - September 20015-14 Data Handling InstructionsAll elements are copied from the source file into the destination f
Publication 1747-RM001C-EN-P - September 2001Data Handling Instructions 5-15Entering ParametersEnter the following parameters when programming
Publication 1747-RM001C-EN-P - September 20015-16 Data Handling InstructionsMove and Logical Instructions OverviewThe following general informa
Publication 1747-RM001C-EN-P - September 2001Data Handling Instructions 5-17Updates to the Math Register, S:13 and S:14Move and logical instruc
Publication 1747-RM001C-EN-P - September 20015-18 Data Handling InstructionsMasked Move (MVM)The MVM instruction is a word instruction that mov
Publication 1747-RM001C-EN-P - September 2001Data Handling Instructions 5-19OperationWhen the rung containing this instruction is true, data at
Publication 1747-RM001C-EN-P - September 20015-20 Data Handling InstructionsAnd (AND)This instruction performs a bit-by-bit logical AND. The op
Publication 1747-RM001C-EN-P - September 2001Data Handling Instructions 5-21Or (OR)This instruction performs a bit-by-bit logical OR. The opera
Publication 1747-RM001C-EN-P - September 2001Table of Contents viiOS302, Series B, FRN 12released: November 1998OS401, Series B, FRN 9released:
Publication 1747-RM001C-EN-P - September 20015-22 Data Handling InstructionsExclusive Or (XOR)This instruction performs a bit-by-bit logical XO
Publication 1747-RM001C-EN-P - September 2001Data Handling Instructions 5-23Not (NOT)This instruction performs a bit-by-bit logical NOT. The op
Publication 1747-RM001C-EN-P - September 20015-24 Data Handling InstructionsNegate (NEG)Use the NEG instruction to change the sign of the sourc
Publication 1747-RM001C-EN-P - September 2001Data Handling Instructions 5-25Entering ParametersEnter the following parameters when programming
Publication 1747-RM001C-EN-P - September 20015-26 Data Handling InstructionsEffects on Index Register S:24The value present in S:24 is overwrit
Publication 1747-RM001C-EN-P - September 2001Data Handling Instructions 5-27FFL Instruction Operation: When rung conditions change from false-t
Publication 1747-RM001C-EN-P - September 20015-28 Data Handling InstructionsLIFO Load (LFL) and LIFO Unload (LFU) LFL and LFU instructions are
Publication 1747-RM001C-EN-P - September 2001Data Handling Instructions 5-29LFL Instruction Operation: When rung conditions change from false-t
Publication 1747-RM001C-EN-P - September 20015-30 Data Handling Instructions
1 Publication 1747-RM001C-EN-P - September 2001Chapter 6Program Flow InstructionsThis chapter contains general information about the program flow inst
Publication 1747-RM001C-EN-P - September 2001Table of Contents viiiAppendix DProgramming Instruction ReferencesValid Addressing Modes and File
Publication 1747-RM001C-EN-P - September 20016-2 Program Flow InstructionsJump (JMP) and Label (LBL)Use these instructions in pairs to skip por
Publication 1747-RM001C-EN-P - September 2001Program Flow Instructions 6-3You can program multiple jumps to the same label by assigning the sam
Publication 1747-RM001C-EN-P - September 20016-4 Program Flow InstructionsNesting Subroutine FilesNesting subroutines allows you to direct prog
Publication 1747-RM001C-EN-P - September 2001Program Flow Instructions 6-5Using SBRThe target subroutine is identified by the file number that
Publication 1747-RM001C-EN-P - September 20016-6 Program Flow InstructionsMaster Control Reset (MCR)Use MCR instructions in pairs to create pro
Publication 1747-RM001C-EN-P - September 2001Program Flow Instructions 6-7Temporary End (TND)This instruction, when its rung is true, stops the
Publication 1747-RM001C-EN-P - September 20016-8 Program Flow InstructionsSuspend (SUS)When this instruction is executed, it causes the process
Publication 1747-RM001C-EN-P - September 2001Program Flow Instructions 6-9ExampleMask - Specify a hexadecimal constant or register address.Refe
Publication 1747-RM001C-EN-P - September 20016-10 Program Flow InstructionsLength - For SLC 5/03 and higher processors, this parameter is used
1 Publication 1747-RM001C-EN-P - September 2001Chapter 7Application Specific InstructionsThis chapter contains general information about the applicati
1 Publication 1747-RM001C-EN-P - September 2001PrefaceRead this preface to familiarize yourself with the rest of the manual. It provides information c
Publication 1747-RM001C-EN-P - September 20017-2 Application Specific InstructionsAbout the Application Specific InstructionsThese instructions
Publication 1747-RM001C-EN-P - September 2001Application Specific Instructions 7-3• Error Bit ER (bit 11), when set, indicates the instruction
Publication 1747-RM001C-EN-P - September 20017-4 Application Specific InstructionsEffects on Index Register S:24The shift operation clears the
Publication 1747-RM001C-EN-P - September 2001Application Specific Instructions 7-5Using BSRWhen the rung goes from false-to-true, the enable bi
Publication 1747-RM001C-EN-P - September 20017-6 Application Specific InstructionsApplications Requiring More than 16-BitsWhen your application
Publication 1747-RM001C-EN-P - September 2001Application Specific Instructions 7-7• Destination is the address of the output word or file for a
Publication 1747-RM001C-EN-P - September 20017-8 Application Specific InstructionsThe address assigned for a sequencer file is step zero. Seque
Publication 1747-RM001C-EN-P - September 2001Application Specific Instructions 7-9If the position is equal to zero at startup, when you switch
Publication 1747-RM001C-EN-P - September 20017-10 Application Specific InstructionsUsing SQCWhen the status of all non-masked bits in the sourc
Publication 1747-RM001C-EN-P - September 2001Application Specific Instructions 7-11(EN)(DN)SQCSEQUENCER COMPAREFile #B10:11Mask FFF0Source I:3
Publication 1747-RM001C-EN-P - September 2001Preface 2Rockwell Automation SupportRockwell Automation offers support services worldwide, with ov
Publication 1747-RM001C-EN-P - September 20017-12 Application Specific InstructionsSequencer Load (SQL)The SQL instruction stores 16-bit data i
Publication 1747-RM001C-EN-P - September 2001Application Specific Instructions 7-13• Control is a control file address. The status bits, length
Publication 1747-RM001C-EN-P - September 20017-14 Application Specific InstructionsWhen rung conditions change from false-to-true, the SQL enab
Publication 1747-RM001C-EN-P - September 2001Application Specific Instructions 7-15Read High-Speed Clock and Compute Time Difference OverviewTD
Publication 1747-RM001C-EN-P - September 20017-16 Application Specific InstructionsTDF Instruction OperationWhen the TDF is evaluated with a tr
Publication 1747-RM001C-EN-P - September 2001Application Specific Instructions 7-17Read High-Speed Clock Instruction (RHC)The Read High-Speed C
Publication 1747-RM001C-EN-P - September 20017-18 Application Specific InstructionsFile Bit Comparison (FBC) and Diagnostic Detect (DDT)The FBC
Publication 1747-RM001C-EN-P - September 2001Application Specific Instructions 7-19• enable bit• found bit (if set)• compare done bit• result d
Publication 1747-RM001C-EN-P - September 20017-20 Application Specific InstructionsEntering ParametersTo program these instructions, you need t
Publication 1747-RM001C-EN-P - September 2001Application Specific Instructions 7-21The instruction control bits are reset when the rung’s input
Publication 1747-RM001C-EN-P - September 2001Preface 3Related DocumentationThe following documents contain additional information concerning Al
Publication 1747-RM001C-EN-P - September 20017-22 Application Specific InstructionsThe FBC and DDT instructions detect mismatches and record th
1 Publication 1747-RM001C-EN-P - September 2001Chapter 8Block Transfer InstructionsThis chapter contains general information about block transfer inst
Publication 1747-RM001C-EN-P - September 20018-2 Block Transfer Instructionstransfer request in the order it is requested. When the processor c
Publication 1747-RM001C-EN-P - September 2001Block Transfer Instructions 8-3• Control - The control block is an integer data file address that
Publication 1747-RM001C-EN-P - September 20018-4 Block Transfer InstructionsControl Status BitsTo use the BTR and BTW instructions correctly, e
Publication 1747-RM001C-EN-P - September 2001Block Transfer Instructions 8-55. The scanner detects that the SLC control program has completed p
Publication 1747-RM001C-EN-P - September 20018-6 Block Transfer InstructionsIn addition to the control and status bits, the control block conta
Publication 1747-RM001C-EN-P - September 2001Block Transfer Instructions 8-7Instruction Operation1. The scanner processes the BTR/BTW when it d
Publication 1747-RM001C-EN-P - September 20018-8 Block Transfer Instructions2. When a block transfer completes successfully, the DN bit is set.
Publication 1747-RM001C-EN-P - September 2001Block Transfer Instructions 8-9Figure 8.2 DirectionalFigure 8.3 Directional RepeatingFigure 8.4 Di
Publication 1747-RM001C-EN-P - September 2001Preface 4
Publication 1747-RM001C-EN-P - September 20018-10 Block Transfer InstructionsFigure 8.5 Bi-directional ContinuousFigure 8.6 Bi-directional Alte
Publication 1747-RM001C-EN-P - September 2001Block Transfer Instructions 8-11Comparison to the PLC-5 BTR and BTWBTR/BTW in SLC processors are q
Publication 1747-RM001C-EN-P - September 20018-12 Block Transfer Instructions
1 Publication 1747-RM001C-EN-P - September 2001Chapter 9Proportional Integral Derivative InstructionThis chapter describes the Proportional Integral D
Publication 1747-RM001C-EN-P - September 20019-2 Proportional Integral Derivative InstructionThe PID equation controls the process by sending a
Publication 1747-RM001C-EN-P - September 2001Proportional Integral Derivative Instruction 9-3Place the PID instruction on a rung without any co
Publication 1747-RM001C-EN-P - September 20019-4 Proportional Integral Derivative Instruction• Control Variable CV is an element address that s
Publication 1747-RM001C-EN-P - September 2001Proportional Integral Derivative Instruction 9-5Controller Gain (Kc)Gain Kc (word 3) is the propor
Publication 1747-RM001C-EN-P - September 20019-6 Proportional Integral Derivative InstructionReset Term (Ti)Reset Term Ti (word 4) is the Integ
Publication 1747-RM001C-EN-P - September 2001Proportional Integral Derivative Instruction 9-7Feed Forward/BiasApplications involving transport
1 Publication 1747-RM001C-EN-P - September 2001Chapter 1Processor FilesFile StructureSLC 500 user memory is comprised of Data Files and Program Files.
Publication 1747-RM001C-EN-P - September 20019-8 Proportional Integral Derivative InstructionLoop UpdateThe loop update (word 13) is the time i
Publication 1747-RM001C-EN-P - September 2001Proportional Integral Derivative Instruction 9-9Auto / Manual (AM)The auto/manual bit can be set o
Publication 1747-RM001C-EN-P - September 20019-10 Proportional Integral Derivative InstructionDeadband (DB)This bit is set (1) when the process
Publication 1747-RM001C-EN-P - September 2001Proportional Integral Derivative Instruction 9-11 Setpoint Scaling (SC)The SC bit is cleared when
Publication 1747-RM001C-EN-P - September 20019-12 Proportional Integral Derivative InstructionOutput Alarm Upper Limit (UL)The control variable
Publication 1747-RM001C-EN-P - September 2001Proportional Integral Derivative Instruction 9-13The process variable out of range bit is set (1)
Publication 1747-RM001C-EN-P - September 20019-14 Proportional Integral Derivative InstructionInput ParametersThe table below shows the input p
Publication 1747-RM001C-EN-P - September 2001Proportional Integral Derivative Instruction 9-15If the SPV is configured to be read in engineerin
Publication 1747-RM001C-EN-P - September 20019-16 Proportional Integral Derivative InstructionOutput ParametersThe table below shows the output
Publication 1747-RM001C-EN-P - September 2001Proportional Integral Derivative Instruction 9-17CVP (Control Variable Percent) displays the contr
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
Publication 1747-RM001C-EN-P - September 20019-18 Proportional Integral Derivative InstructionOutput Minimum (CVL)When the output limiting bit
Publication 1747-RM001C-EN-P - September 2001Proportional Integral Derivative Instruction 9-1921H(SLC 5/02 only)1. Scaled setpoint max Smax >
Publication 1747-RM001C-EN-P - September 20019-20 Proportional Integral Derivative InstructionPID and Analog I/O ScalingFor the SLC 500 PID ins
Publication 1747-RM001C-EN-P - September 2001Proportional Integral Derivative Instruction 9-21Use the following values in an SCL instruction to
Publication 1747-RM001C-EN-P - September 20019-22 Proportional Integral Derivative InstructionThe STI routine should have a time interval equal
Publication 1747-RM001C-EN-P - September 2001Proportional Integral Derivative Instruction 9-23Application NotesThe following paragraphs discuss
Publication 1747-RM001C-EN-P - September 20019-24 Proportional Integral Derivative InstructionFor example, if measuring a full scale temperatur
Publication 1747-RM001C-EN-P - September 2001Proportional Integral Derivative Instruction 9-25Output Limiting with Anti-Reset WindupYou may set
Publication 1747-RM001C-EN-P - September 20019-26 Proportional Integral Derivative InstructionPID RungstateIf the PID rung is false, the integr
Publication 1747-RM001C-EN-P - September 2001Proportional Integral Derivative Instruction 9-27Example - Time proportioning outputsT4:0.PRE is t
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
Publication 1747-RM001C-EN-P - September 20019-28 Proportional Integral Derivative Instruction
1 Publication 1747-RM001C-EN-P - September 2001Chapter 10ASCII InstructionsThis chapter contains general information about the ASCII instructions and
Publication 1747-RM001C-EN-P - September 200110-2 ASCII InstructionsASCII Instruction OverviewASCII instructions are available in SLC 5/03 OS30
Publication 1747-RM001C-EN-P - September 2001ASCII Instructions 10-3Using the ASCII Data File TypeThese are 1-word elements. Assign ASCII addre
Publication 1747-RM001C-EN-P - September 200110-4 ASCII InstructionsAssign string addresses as follows:Entering ParametersThe control element f
Publication 1747-RM001C-EN-P - September 2001ASCII Instructions 10-5EN = Enable BitEU = Queue BitDN = Asynchronous Done BitEM = Synchronous Don
Publication 1747-RM001C-EN-P - September 200110-6 ASCII InstructionsTest Buffer for Line (ABL)Use the ABL instruction to determine the total nu
Publication 1747-RM001C-EN-P - September 2001ASCII Instructions 10-7When the program scans the instruction and finds the Done bit (DN) set, the
Publication 1747-RM001C-EN-P - September 200110-8 ASCII Instructions(DN) is then set. If a zero appears in the characters field, no characters
Publication 1747-RM001C-EN-P - September 2001ASCII Instructions 10-9ASCII Clear Receive and/orSend Buffer (ACL)Use this instruction to clear an
Important User InformationBecause of the variety of uses for the products described in this publication, those responsible for the application and use
Publication 1747-RM001C-EN-P - September 20011-4 Processor FilesTimer Data File (T4:)Timer instructions use various control bits. These are 3-w
Publication 1747-RM001C-EN-P - September 200110-10 ASCII InstructionsString Concatenate (ACN)The ACN instruction combines two strings using ASC
Publication 1747-RM001C-EN-P - September 2001ASCII Instructions 10-11ExampleThe following conditions cause the processor to set the ASCII Error
Publication 1747-RM001C-EN-P - September 200110-12 ASCII InstructionsEntering ParametersEnter the following parameters when programming this in
Publication 1747-RM001C-EN-P - September 2001ASCII Instructions 10-13ExampleThe Error bit (ER) is set during the execution of the instruction i
Publication 1747-RM001C-EN-P - September 200110-14 ASCII Instructions• String Length (.LEN) is the number of characters you want to read from t
Publication 1747-RM001C-EN-P - September 2001ASCII Instructions 10-15• an ACL to clear the receive buffer is executed, removing the ARD instruc
Publication 1747-RM001C-EN-P - September 200110-16 ASCII InstructionsASCII Read Line (ARL)Use the ARL instruction to read characters from the b
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
Publication 1747-RM001C-EN-P - September 200110-18 ASCII InstructionsExampleThe following conditions cause the processor to set the ASCII Error
Publication 1747-RM001C-EN-P - September 2001ASCII Instructions 10-19ASCII Write with Append (AWA)Use the AWA instruction to write characters f
Publication 1747-RM001C-EN-P - September 2001Processor Files 1-5Addressing StructureAddress bits and words using the format Tf:e.s/bTable 1.4 T
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
Publication 1747-RM001C-EN-P - September 2001ASCII Instructions 10-21ExamplesFor the following examples:N7:0 = 250N7:1 = -37F8:0 = 2.015000F8:1
Publication 1747-RM001C-EN-P - September 200110-22 ASCII Instructions• Characters Sent (POS) is the number of characters that the processor sen
Publication 1747-RM001C-EN-P - September 2001ASCII Instructions 10-23ASCII Instruction Error CodesThe following error codes indicate why the Er
Publication 1747-RM001C-EN-P - September 200110-24 ASCII InstructionsASCII Conversion TableThe table below lists the decimal, hexadecimal, and
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
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
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
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
1 Publication 1747-RM001C-EN-P - September 2001Chapter 11Understanding Interrupt RoutinesThis chapter contains general information about interrupt rou
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
Publication 1747-RM001C-EN-P - September 200111-2 Understanding Interrupt RoutinesUser Fault Routine OverviewThe user fault routine gives you t
Publication 1747-RM001C-EN-P - September 2001Understanding Interrupt Routines 11-3Status File Data SavedData in the following words is saved on
Publication 1747-RM001C-EN-P - September 200111-4 Understanding Interrupt Routines• Prevent a processor shutdown if the overflow trap bit S:5/0
Publication 1747-RM001C-EN-P - September 2001Understanding Interrupt Routines 11-5Fault Routine - Subroutine File 3Fault Routine Example 10000S
Publication 1747-RM001C-EN-P - September 200111-6 Understanding Interrupt RoutinesSubroutine File 4 - Executed for Error 0020hIf the overflow t
Publication 1747-RM001C-EN-P - September 2001Understanding Interrupt Routines 11-7Subroutine File 5 - Executed for Error 0034h0000SBRSubroutine
Publication 1747-RM001C-EN-P - September 200111-8 Understanding Interrupt RoutinesIf the accumulator value of timer T4:0 is negative, the major
Publication 1747-RM001C-EN-P - September 2001Understanding Interrupt Routines 11-9Basic Programming Procedure for the STI FunctionTo use the ST
Publication 1747-RM001C-EN-P - September 200111-10 Understanding Interrupt Routines4. If while an STI is pending, the STI timer expires, the ST
Publication 1747-RM001C-EN-P - September 2001Understanding Interrupt Routines 11-11Note that STI execution time adds directly to the overall sc
Publication 1747-RM001C-EN-P - September 2001Processor Files 1-7Entering ParametersThere are several parameters associated with Counter instruc
Publication 1747-RM001C-EN-P - September 200111-12 Understanding Interrupt RoutinesInterrupt PrioritiesInterrupt priorities for the processors
Publication 1747-RM001C-EN-P - September 2001Understanding Interrupt Routines 11-13STI ParametersThe following parameters are associated with t
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
Publication 1747-RM001C-EN-P - September 2001Understanding Interrupt Routines 11-15STI Example0000S:115First PassUB3:00Indicate ValidMeasuremen
Publication 1747-RM001C-EN-P - September 200111-16 Understanding Interrupt Routines0000B3:00Indicate ValidMeasurementSUBSubtractSource A S:430&
Publication 1747-RM001C-EN-P - September 2001Understanding Interrupt Routines 11-17STD and STE InstructionsThe STD and STE instructions are use
Publication 1747-RM001C-EN-P - September 200111-18 Understanding Interrupt RoutinesSelectable Timed Start (STS)Use the STS instruction to condi
Publication 1747-RM001C-EN-P - September 2001Understanding Interrupt Routines 11-19Discrete Input Interrupt OverviewUse the Discrete Input Inte
Publication 1747-RM001C-EN-P - September 200111-20 Understanding Interrupt Routines3. Enter the Bit Mask (word S:48). Valid Bit Masks range fro
Publication 1747-RM001C-EN-P - September 2001Understanding Interrupt Routines 11-212. When the input data matches the programmed masked value,
Publication 1747-RM001C-EN-P - September 20011-8 Processor FilesControl Data File (R6:)These instructions use various control bits. These are 3
Publication 1747-RM001C-EN-P - September 200111-22 Understanding Interrupt RoutinesInterrupt Latency and Interrupt OccurrencesInterrupt latency
Publication 1747-RM001C-EN-P - September 2001Understanding Interrupt Routines 11-23Interrupt PrioritiesInterrupt priorities for the SLC 5/03 an
Publication 1747-RM001C-EN-P - September 200111-24 Understanding Interrupt RoutinesExampleThe DII can be programmed to count items on a high-sp
Publication 1747-RM001C-EN-P - September 2001Understanding Interrupt Routines 11-25• File Number (Word S:46) - Enter a program file number (3 t
Publication 1747-RM001C-EN-P - September 200111-26 Understanding Interrupt Routines• Return Mask (Word S:51) - The Return Mask is updated immed
Publication 1747-RM001C-EN-P - September 2001Understanding Interrupt Routines 11-27The following parameters are used to program the DII for the
Publication 1747-RM001C-EN-P - September 200111-28 Understanding Interrupt RoutinesLadder Diagram for the Bottling ApplicationRefer to Appendix
Publication 1747-RM001C-EN-P - September 2001Understanding Interrupt Routines 11-29I/O Interrupt OverviewThis function allows a specialty I/O m
Publication 1747-RM001C-EN-P - September 200111-30 Understanding Interrupt RoutinesInterrupt Subroutine (ISR) ContentThe Interrupt Subroutine (
Publication 1747-RM001C-EN-P - September 2001Understanding Interrupt Routines 11-31Note that ISR execution time adds directly to the overall sc
Publication 1747-RM001C-EN-P - September 2001Processor Files 1-9Assign control addresses as follows:Table 1.9 Control File Addressing FormatFor
Publication 1747-RM001C-EN-P - September 200111-32 Understanding Interrupt RoutinesIf a major fault occurs while executing the I/O interrupt su
Publication 1747-RM001C-EN-P - September 2001Understanding Interrupt Routines 11-33I/O Interrupt ParametersThe I/O interrupt parameters below h
Publication 1747-RM001C-EN-P - September 200111-34 Understanding Interrupt RoutinesSLC 5/03 and higher processors: Changes made to these bits u
Publication 1747-RM001C-EN-P - September 2001Understanding Interrupt Routines 11-35IIE OperationWhen true, this instruction sets the I/O interr
Publication 1747-RM001C-EN-P - September 200111-36 Understanding Interrupt RoutinesReset Pending Interrupt (RPI)This instruction resets the pen
1 Publication 1747-RM001C-EN-P - September 2001Chapter 12SLC Communication InstructionsThis chapter contains general information about the SLC communi
Publication 1747-RM001C-EN-P - September 200112-2 SLC Communication InstructionsService Communications (SVC)Using an SLC 5/02 ProcessorThe SVC
Publication 1747-RM001C-EN-P - September 2001SLC Communication Instructions 12-3Channel ServicingWhether a channel is selected to be serviced b
Publication 1747-RM001C-EN-P - September 200112-4 SLC Communication InstructionsTo invoke the MSG instruction, toggle the MSG instruction rung
Publication 1747-RM001C-EN-P - September 2001SLC Communication Instructions 12-5Figure 12.1 SLC 5/02 Messaging Example with MSG TimeoutUN9:0N9:
Publication 1747-RM001C-EN-P - September 20011-10 Processor FilesInteger Data File (N7:)Use these addresses as your program requires. These are
Publication 1747-RM001C-EN-P - September 200112-6 SLC Communication InstructionsFigure 12.2 SLC 5/02 Repeating Messaging Example with MSG Timeo
Publication 1747-RM001C-EN-P - September 2001SLC Communication Instructions 12-7You can use the timeout control similar to the SLC 5/02 MSG ins
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
Publication 1747-RM001C-EN-P - September 2001SLC Communication Instructions 12-9Available Configuration OptionsThe following configuration opti
Publication 1747-RM001C-EN-P - September 200112-10 SLC Communication InstructionsIn addition, the following configuration option is available o
Publication 1747-RM001C-EN-P - September 2001SLC Communication Instructions 12-11MSG Setup Screen ParametersParameters for “This Controller”:•
Publication 1747-RM001C-EN-P - September 200112-12 SLC Communication Instructions• Channel(1):Specifies the communication channel that is used
Publication 1747-RM001C-EN-P - September 2001SLC Communication Instructions 12-13Parameters for “Target Device”:• Message Timeout(1):Specifies
Publication 1747-RM001C-EN-P - September 200112-14 SLC Communication InstructionsSpecifies the node number of the target device that is receivi
Publication 1747-RM001C-EN-P - September 2001SLC Communication Instructions 12-15Specifies the node number of the target device on the remote n
Publication 1747-RM001C-EN-P - September 2001Processor Files 1-11Float Data File (F8:)Use these addresses as your program requires. These are 2
Publication 1747-RM001C-EN-P - September 200112-16 SLC Communication InstructionsMSG Setup Screen Status BitsThe column in the display below li
Publication 1747-RM001C-EN-P - September 2001SLC Communication Instructions 12-17• No Response Bit NR (bit 09) is set if the target processor r
Publication 1747-RM001C-EN-P - September 200112-18 SLC Communication Instructions• Done Bit DN (bit 13) is set when the message is transmitted
Publication 1747-RM001C-EN-P - September 2001SLC Communication Instructions 12-19MSG Instruction Control BlockLimitations for Manipulating the
Publication 1747-RM001C-EN-P - September 200112-20 SLC Communication InstructionsControl Block LayoutsThe control block layout is shown below f
Publication 1747-RM001C-EN-P - September 2001SLC Communication Instructions 12-21The control block layout is shown below for 485CIF as the targ
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
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
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
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
Publication 1747-RM001C-EN-P - September 20011-12 Processor Files
Publication 1747-RM001C-EN-P - September 200112-26 SLC Communication InstructionsIf you choose to set the CO bit, your MSG instruction will “ta
Publication 1747-RM001C-EN-P - September 2001SLC Communication Instructions 12-27Step 4 not shown in the timing diagram.4. If you do not receiv
Publication 1747-RM001C-EN-P - September 200112-28 SLC Communication Instructionsthe EN bit is cleared the next time the MSG instruction is sca
Publication 1747-RM001C-EN-P - September 2001SLC Communication Instructions 12-2910H Target node cannot respond because of incorrect command pa
Publication 1747-RM001C-EN-P - September 200112-30 SLC Communication InstructionsDBH Multi-hop messaging CIP message format errorDFH Multi-hop
Publication 1747-RM001C-EN-P - September 2001SLC Communication Instructions 12-31TIPFor 1770-6.5.16 DFI Protocol and Command Set Reference Manu
Publication 1747-RM001C-EN-P - September 200112-32 SLC Communication Instructions
1 Publication 1747-RM001C-EN-P - September 2001Chapter 13SLC Communication ChannelsUse the information in this chapter to understand how to configure
Publication 1747-RM001C-EN-P - September 200113-2 SLC Communication ChannelsData Highway Plus (DH+) - The Data Highway Plus protocol is used by
Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-3DH-485 CommunicationsThe DH-485 network offers:• interconnection of
1 Publication 1747-RM001C-EN-P - September 2001Chapter 2Basic InstructionsThis chapter contains general information about the basic instructions and e
Publication 1747-RM001C-EN-P - September 200113-4 SLC Communication ChannelsDH-485 Network InitializationNetwork initialization begins when a p
Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-5The best network performance occurs when node addresses start at 0
Publication 1747-RM001C-EN-P - September 200113-6 SLC Communication ChannelsConfiguring a Channel for DH-485 To configure an SLC processor chan
Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-7DH-485 Channel StatusFor SLC 5/03 (OS302, Series C and higher), SLC
Publication 1747-RM001C-EN-P - September 200113-8 SLC Communication ChannelsDouble-click on the Channel Status Icon Located beneath the Configu
Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-9Data Highway Plus CommunicationsData Highway Plus implements peer-t
Publication 1747-RM001C-EN-P - September 200113-10 SLC Communication ChannelsExampleThe example below shows a DH+ protocol using two SLC 5/04 c
Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-11Configuring Channel 1 for DH+To configure an SLC 5/04 processor ch
Publication 1747-RM001C-EN-P - September 200113-12 SLC Communication ChannelsDH+ Channel StatusFor SLC 5/04 (OS401, Series C and higher), chann
Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-13Double-click on the Channel Status Icon Located beneath the Config
1 Publication 1747-RM001C-EN-P - September 2001Summary of ChangesThe information below summarizes the changes to this manual since the last printing.T
Publication 1747-RM001C-EN-P - September 20012-2 Basic InstructionsAbout the Basic InstructionsBasic instructions, when used in ladder programs
Publication 1747-RM001C-EN-P - September 200113-14 SLC Communication ChannelsTable 13.5 SLC 5/04 Channel 1 DH+ Channel StatusStatus field: Word
Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-15General Network dead 5 Number of times the station detects no traf
Publication 1747-RM001C-EN-P - September 200113-16 SLC Communication ChannelsGeneral Solicit rotations 30 Number of times a complete solicit su
Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-17Global Status Word OverviewWhen a processor passes the DH+ token t
Publication 1747-RM001C-EN-P - September 200113-18 SLC Communication ChannelsOne word of every node’s Global Status File is updated each token
Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-19– having an OS400 user program downloaded to the SLC 5/04 processo
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
Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-21Ethernet CommunicationsThis section:• describes SLC 5/05 performan
Publication 1747-RM001C-EN-P - September 200113-22 SLC Communication ChannelsOptimal Performance: PC to SLC 5/05 Processor (2-node Ethernet net
Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-23There are two ways to configure the SLC 5/05 Ethernet channel 1. T
Publication 1747-RM001C-EN-P - September 2001Basic Instructions 2-3Examine if Closed (XIC)Use the XIC instruction in your ladder program to det
Publication 1747-RM001C-EN-P - September 200113-24 SLC Communication ChannelsDefine the location of the diagnostic file used for Channel Status
Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-25Table 13.7 Define these communication parameters when configuring
Publication 1747-RM001C-EN-P - September 200113-26 SLC Communication ChannelsEthernet Channel StatusFor SLC 5/05 processors, channel status dat
Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-27Table 13.8 SLC 5/05 Channel 1 Ethernet Channel StatusStatus field:
Publication 1747-RM001C-EN-P - September 200113-28 SLC Communication ChannelsConfiguration Via BOOTPBOOTP is a standard protocol that TCP/IP no
Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-29BOOTP Operation at Power-UpWhen BOOTP is enabled, the following ev
Publication 1747-RM001C-EN-P - September 200113-30 SLC Communication ChannelsInstall the DOS/Windows BOOTP serverTo install the DOS BOOTP serve
Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-312. Make one copy of the SLC 5/05 processor template for every SLC
Publication 1747-RM001C-EN-P - September 200113-32 SLC Communication ChannelsBased on this configuration, the BOOTPTAB file looks like:Run the
Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-33Running the DOS-Based UtilityTo run the boot-server utility, DTLBO
Publication 1747-RM001C-EN-P - September 20012-4 Basic InstructionsOutput Energize (OTE)Use the OTE instruction in your ladder program to turn
Publication 1747-RM001C-EN-P - September 200113-34 SLC Communication ChannelsOnce you invoke the utility, it will run until you terminate it by
Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-35The BOOTPTAB files that correspond to the example looks like:Perso
Publication 1747-RM001C-EN-P - September 200113-36 SLC Communication ChannelsTable 13.12 Iota1 Configuration#######Legend: gwhahtipsmvmtc------
Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-37DF1 CommunicationsThe SLC 5/03, SLC 5/04, and SLC 5/05 processors
Publication 1747-RM001C-EN-P - September 200113-38 SLC Communication Channelsthe reply that it transmits in response to any command data packet
Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-39Configuring Channel 0 for DF1 Full-DuplexTo configure an SLC 5/03,
Publication 1747-RM001C-EN-P - September 200113-40 SLC Communication Channels 1. On the Channel 0 tab, choose DF1 Full-Duplex for y
Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-41Chan. 0 System Error Detection CRC With this selection, you choose
Publication 1747-RM001C-EN-P - September 200113-42 SLC Communication ChannelsDF1 Full-Duplex Channel StatusChannel Status data is stored in the
Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-43Configuring Channel 0 for Standard-Mode DF1 Half-Duplex Master Cho
Publication 1747-RM001C-EN-P - September 2001Basic Instructions 2-5When rung conditions become false (after being true), the bit remains set an
Publication 1747-RM001C-EN-P - September 200113-44 SLC Communication Channels Define the location of the diagnostic file used for Channel Sta
Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-45Table 13.17 Define these parameters when configuring a SLC 5/03, 5
Publication 1747-RM001C-EN-P - September 200113-46 SLC Communication ChannelsChannel 0 SystemDuplicate Packet DetectEnabled Duplicate Detect le
Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-47Minimum DF1 Half-Duplex Master Channel 0 ACK TimeoutThe governing
Publication 1747-RM001C-EN-P - September 200113-48 SLC Communication ChannelsNext, you need to determine the average slave program scan time. I
Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-49DF1 Half-Duplex Master Channel StatusChannel Status data is stored
Publication 1747-RM001C-EN-P - September 200113-50 SLC Communication ChannelsMonitor Active Stations To see what stations are active, view
Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-51Configuring Channel 0 for Message-based Mode DF1 Half-Duplex Maste
Publication 1747-RM001C-EN-P - September 200113-52 SLC Communication Channels 1. On the Channel 0 tab, choose DF1 Half-Duplex Master for your
Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-53Channel 0 SystemPolling Mode Message BasedIf you want to:• accept
Publication 1747-RM001C-EN-P - September 20012-6 Basic InstructionsUse a bit address from either the bit or integer data file. The addressed bi
Publication 1747-RM001C-EN-P - September 200113-54 SLC Communication ChannelsConfiguring Channel 0 for DF1 Half-Duplex SlaveTo configure an SLC
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
Publication 1747-RM001C-EN-P - September 200113-56 SLC Communication ChannelsChan. 0 SystemError DetectionCRC With this selection, you choose t
Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-57Configuring Channel 0 Poll TimeoutThe Channel 0 Poll Timeout is on
Publication 1747-RM001C-EN-P - September 200113-58 SLC Communication ChannelsUsing Modems that Support DF1 Communication ProtocolsThe types of
Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-59the RS-232 modem control signals when “Full-Duplex Modem” is selec
Publication 1747-RM001C-EN-P - September 200113-60 SLC Communication ChannelsLine DriversLine drivers, also called short-haul “modems”, do not
Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-61DF1 Half-Duplex SlaveWhen you configure the SLC 5/03, SLC 5/04, an
Publication 1747-RM001C-EN-P - September 200113-62 SLC Communication Channelsalso set. If DSR does not go inactive, then DTR is raised again in
Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-63ASCII CommunicationsThe SLC 5/03 (OS301 and higher), SLC 5/04, and
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
Publication 1747-RM001C-EN-P - September 200113-64 SLC Communication ChannelsConfiguring Channel 0 for ASCII CommunicationsTo configure an SLC
Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-651. On the Channel 0 user tab, choose ASCII for your Driver. 2. Con
Publication 1747-RM001C-EN-P - September 200113-66 SLC Communication ChannelsSLC 5/05 Embedded Web Server CapabilitySLC 5/05 processors with OS
Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-67Figure 13.3 1747 SLC 5/05 Module Information PageTCP/IP Configurat
Publication 1747-RM001C-EN-P - September 200113-68 SLC Communication ChannelsDiagnostic InformationThis section gives you access to the various
Publication 1747-RM001C-EN-P - September 2001SLC Communication Channels 13-69Figure 13.6 1747 SLC 5/05 General Ethernet Counters• Commands Sent
Publication 1747-RM001C-EN-P - September 200113-70 SLC Communication Channels• Excessive Collisions - Count of frames for which transmission fa
1 Publication 1747-RM001C-EN-P - September 2001Chapter 14Messaging ExamplesThe purpose of this chapter is to illustrate some of the more common but el
Publication 1747-RM001C-EN-P - September 200114-2 Messaging Examplesactual bridging device) on the local network will act as a bridge or gatewa
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
Publication 1747-RM001C-EN-P - September 20012-8 Basic InstructionsAccumulator Value (.ACC)This is the time elapsed since the timer was last re
Publication 1747-RM001C-EN-P - September 200114-4 Messaging Examplesprocessor are re-sent out channel 0 onto the DH-485 network. This activity
Publication 1747-RM001C-EN-P - September 2001Messaging Examples 14-5DeviceNet Passthru(SLC 5/03 OS302, SLC 5/04 OS401, and SLC 5/05 processors)
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
Publication 1747-RM001C-EN-P - September 2001Messaging Examples 14-7The routing table file number must be between 9 and 255 (a valid data table
Publication 1747-RM001C-EN-P - September 200114-8 Messaging ExamplesStatus File Bits - Two status file bits control whether or not the passthru
Publication 1747-RM001C-EN-P - September 2001Messaging Examples 14-9MSG Error Code - When the processor detects an error during the passage of
Publication 1747-RM001C-EN-P - September 200114-10 Messaging ExamplesThe following is the ladder logic necessary for the SLC5/03 processor.TIPN
Publication 1747-RM001C-EN-P - September 2001Messaging Examples 14-11The following is the MSG Setup for the SLC5/03 processor.Local Bridge Addr
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
Publication 1747-RM001C-EN-P - September 2001Messaging Examples 14-13Passthru Examples DH+ to DF1For the Step by Step procedure for this exampl
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
Publication 1747-RM001C-EN-P - September 200114-14 Messaging ExamplesPassthru Examples DH485 to DH+For the Step by Step procedure for this exam
Publication 1747-RM001C-EN-P - September 2001Messaging Examples 14-15Passthru Examples DH+ to DH485For the Step by Step procedure for this exam
Publication 1747-RM001C-EN-P - September 200114-16 Messaging ExamplesSLC 5/05 Passthru ExamplesPassthru Examples DF1 to EthernetThe IP Addresse
Publication 1747-RM001C-EN-P - September 2001Messaging Examples 14-17The following is the logic necessary for the SLC5/03 processor.The followi
Publication 1747-RM001C-EN-P - September 200114-18 Messaging Examples• Channel is set to zero for DF1 full-duplex protocol.• Target Node is the
Publication 1747-RM001C-EN-P - September 2001Messaging Examples 14-19For the Step by Step procedure for this example please refer to KB DOC #:
Publication 1747-RM001C-EN-P - September 200114-20 Messaging ExamplesPassthru Examples Ethernet to DF1For the Step by Step procedure for this e
Publication 1747-RM001C-EN-P - September 2001Messaging Examples 14-21Passthru Examples DH485 to EthernetFor the Step by Step procedure for this
Publication 1747-RM001C-EN-P - September 200114-22 Messaging ExamplesPassthru Examples Ethernet to DH485For the Step by Step procedure for this
Publication 1747-RM001C-EN-P - September 2001Messaging Examples 14-23Remote ExamplesAll of the following remote examples were constructed for t
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
Publication 1747-RM001C-EN-P - September 200114-24 Messaging ExamplesNetwork Message Example #1: SLC5/04 to SLC5/02 via DHRIO and KA5For the St
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
Publication 1747-RM001C-EN-P - September 200114-26 Messaging ExamplesNetwork Message Example #3: SLC5/04 to SLC5/04 via KA5For the Step by Step
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
Publication 1747-RM001C-EN-P - September 200114-28 Messaging ExamplesNetwork Message Example #5: SLC5/04 to SLC5/03 via KA5For the Step by Step
Publication 1747-RM001C-EN-P - September 2001Messaging Examples 14-29Network Message Example #6: SLC5/04 to SLC5/05 via DHRIO and ENETFor the S
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
Publication 1747-RM001C-EN-P - September 2001Messaging Examples 14-31Network Message Example #8: SLC5/05 to SLC5/03 via ENET, CNB and KFCFor th
Publication 1747-RM001C-EN-P - September 200114-32 Messaging ExamplesNetwork Message Example #9: SLC5/05 to SLC5/03 via ENET, DHRIO and KA5For
Publication 1747-RM001C-EN-P - September 2001Messaging Examples 14-33Network Message Example #10: PLC5/20E to SLC500 CH0 via ENIFor the Step by
Publication 1747-RM001C-EN-P - September 2001Basic Instructions 2-11Retentive Timer (RTO)Use the RTO instruction to turn an output on or off af
Publication 1747-RM001C-EN-P - September 200114-34 Messaging Examples
1 Publication 1747-RM001C-EN-P - September 2001Chapter 15Troubleshooting FaultsThis chapter lists the major error fault codes, indicates the probable
Publication 1747-RM001C-EN-P - September 200115-2 Troubleshooting FaultsManually Clearing FaultsThe following section describes the different w
Publication 1747-RM001C-EN-P - September 2001Troubleshooting Faults 15-3SLC Processor FaultsThe processor faults are divided into the following
Publication 1747-RM001C-EN-P - September 200115-4 Troubleshooting FaultsGoing-to-Run Errors0007 Failure during memory module transfer.Memory mo
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
Publication 1747-RM001C-EN-P - September 200115-6 Troubleshooting FaultsRun ErrorsTable 15.3 Run ErrorsError Code (Hex)Description Probable Cau
Publication 1747-RM001C-EN-P - September 2001Troubleshooting Faults 15-70022 The user watchdog scan time has been exceeded.• Either Watchdog ti
Publication 1747-RM001C-EN-P - September 200115-8 Troubleshooting FaultsATTENTION!The SLC processor uses an index value of zero for the faulted
Publication 1747-RM001C-EN-P - September 2001Troubleshooting Faults 15-9User Program Instruction ErrorsTable 15.4 User Program Instruction Erro
Publication 1747-RM001C-EN-P - September 2001Summary of Changes 2
Publication 1747-RM001C-EN-P - September 20012-12 Basic InstructionsUsing Status BitsWhen the processor changes from the REM Run or REM Test mo
Publication 1747-RM001C-EN-P - September 200115-10 Troubleshooting FaultsI/O ErrorsERROR CODES: The characters xx in the following codes repres
Publication 1747-RM001C-EN-P - September 2001Troubleshooting Faults 15-11TIPAn I/O card that is severly damaged may cause the processor to indi
Publication 1747-RM001C-EN-P - September 200115-12 Troubleshooting Faultsxx55 A discrete I/O module required for the user program is detected a
Publication 1747-RM001C-EN-P - September 2001Troubleshooting Faults 15-13xx60throughxx6FIdentifies an I/O module specific recoverable major err
Publication 1747-RM001C-EN-P - September 200115-14 Troubleshooting FaultsTroubleshooting SLC 5/03 and Higher ProcessorsBetween the time you app
Publication 1747-RM001C-EN-P - September 2001Troubleshooting Faults 15-15FAULT, BATT, FORCE Flash EEPROM failure.FAULT, BATT, FORCE, RS232 Fail
Publication 1747-RM001C-EN-P - September 200115-16 Troubleshooting Faults
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
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
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
Publication 1747-RM001C-EN-P - September 2001Basic Instructions 2-13Counter Instructions OverviewHow Counters WorkThe figure below demonstrates
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
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
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
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
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
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
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
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
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
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
Publication 1747-RM001C-EN-P - September 20012-14 Basic InstructionsUsing Status BitsThe accumulated value is retained after the CTU instructio
Publication 1747-RM001C-EN-P - September 2001A-14 SLC 5/03 (OS30x), SLC 5/04 (OS40x) and SLC 5/05 (OS50x) Firmware History
1 Publication 1747-RM001C-EN-P - September 2001Appendix BSLC Status FileThis appendix lists the:• SLC processor status file overview• status file deta
Publication 1747-RM001C-EN-P - September 2001B-2 SLC Status FileWord Function Applies To PageS:0 Arithmetic and Scan Status Flags all processor
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
Publication 1747-RM001C-EN-P - September 2001B-4 SLC Status FileStatus File DetailsConventions Used in the DisplaysThe following tables describ
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
Publication 1747-RM001C-EN-P - September 2001B-6 SLC Status FileS:1/0toS:1/4Status Processor Mode Status/ControlBits 0-4 function as follows:••
Publication 1747-RM001C-EN-P - September 2001SLC Status File B-7S:1/8 Dynamic ConfigFault Override at Powerup BitWhen set, this bit causes the
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
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
Publication 1747-RM001C-EN-P - September 2001Basic Instructions 2-15Using Status BitsThe accumulated value is retained after the CTD instructio
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
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
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
Publication 1747-RM001C-EN-P - September 2001SLC Status File B-13S:2/1 Static Config STI (Selectable Timed Interrupt) Enabled BitThis bit is se
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
Publication 1747-RM001C-EN-P - September 2001SLC Status File B-15S:2/11 Status Discrete Input Interrupt Pending BitWhen set, this bit indicates
Publication 1747-RM001C-EN-P - September 2001B-16 SLC Status FileS:2/14 Dynamic ConfigMath Overflow Selection BitSet this bit when you intend t
Publication 1747-RM001C-EN-P - September 2001SLC Status File B-17S:2/15 Dynamic ConfigCommunications Servicing Selection Bit(Ethernet Channel 1
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
Publication 1747-RM001C-EN-P - September 2001SLC Status File B-19S:3LcontinuedApplication example: Your application requires that each and ever
Publication 1747-RM001C-EN-P - September 20012-16 Basic Instructionsuse the instruction, you must cut the jumper as shown below. A shielded cab
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
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
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
Publication 1747-RM001C-EN-P - September 2001SLC Status File B-23S:5/13 DynamicConfigUnsuccessful Operating System Load Was AttemptedThis bit i
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
Publication 1747-RM001C-EN-P - September 2001SLC Status File B-25Address Error Code (Hex)Errors Fault Classification ProcessorNon-UserUser Fixe
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
Publication 1747-RM001C-EN-P - September 2001SLC Status File B-27I/O ErrorsERROR CODES: The characters xx in the following codes represent the
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
Publication 1747-RM001C-EN-P - September 2001SLC Status File B-29S:6continued0038 A RET instruction was detected in a non-subroutine file.X • •
Publication 1747-RM001C-EN-P - September 2001Basic Instructions 2-17High-Speed Counter OperationFor high-speed counter operation you must do th
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
Publication 1747-RM001C-EN-P - September 2001SLC Status File B-31S:6continuedxx90 Interrupt problem on disabled slot.X••••xx91 A disabled slot
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
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
Publication 1747-RM001C-EN-P - September 2001B-34 SLC Status FileS:13andS:14Status and Dynamic ConfigMath RegisterUse this double register to p
Publication 1747-RM001C-EN-P - September 2001SLC Status File B-35S:15L Static Config Node AddressThis byte value contains the node address of y
Publication 1747-RM001C-EN-P - September 2001B-36 SLC Status FileS:15HcontinuedStatic Config When a configure channel command is received for c
Publication 1747-RM001C-EN-P - September 2001SLC Status File B-37S:16 and S:17Status Test Single Step - Start Step On - Rung/FileThese register
Publication 1747-RM001C-EN-P - September 2001B-38 SLC Status FileS:20 and S:21Status Test - Fault/Powerdown - Rung/FileThese registers indicate
Publication 1747-RM001C-EN-P - September 2001SLC Status File B-39S:22 Status Maximum Observed Scan TimeThis word indicates the maximum observed
Publication 1747-RM001C-EN-P - September 20012-18 Basic InstructionsYour ladder program should poll the Done bit (C5:0/DN) to determine the sta
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
Publication 1747-RM001C-EN-P - September 2001SLC Status File B-41S:29 Dynamic Config User Fault Routine File NumberYou enter a program file num
Publication 1747-RM001C-EN-P - September 2001B-42 SLC Status FileS:32 Status I/O Interrupt ExecutingThis word indicates the slot number of the
Publication 1747-RM001C-EN-P - September 2001SLC Status File B-43S:33/5 Dynamic Config Communications Servicing Selection (Channel 0)When set,
Publication 1747-RM001C-EN-P - September 2001B-44 SLC Status FileS:33/8 Static Config Interrupt Latency Control BitWhen set, interrupt latency
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
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
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
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
Publication 1747-RM001C-EN-P - September 2001SLC Status File B-49S:43S:44S:45Status Selectable Timed Interrupt - 10 µs TimerI/O Event Interrupt
Publication 1747-RM001C-EN-P - September 2001Basic Instructions 2-19Application Example - File 2 (Poll for DN Bit in Main Program)Application E
Publication 1747-RM001C-EN-P - September 2001B-50 SLC Status FileS:49 Dynamic Config Discrete Input Interrupt - Compare ValueYou enter a bit ma
Publication 1747-RM001C-EN-P - September 2001SLC Status File B-51S:55 Status Last Discrete Input Interrupt Scan TimeThis value indicates, in 1
Publication 1747-RM001C-EN-P - September 2001B-52 SLC Status FileS:66 Status Flash EEPROM SizeIndicates the size of operating system memory in
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/
Publication 1747-RM001C-EN-P - September 2001B-54 SLC Status File
1 Publication 1747-RM001C-EN-P - September 2001Appendix CMemory UsageThis appendix provides:• instruction words for the Fixed, SLC 5/01, SLC 5/02, SLC
Publication 1747-RM001C-EN-P - September 2001C-2 Memory UsageFixed and SLC 5/01 ProcessorsThe number of words used by an instruction is indicat
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
Publication 1747-RM001C-EN-P - September 2001C-4 Memory UsageEstimating Total Memory Usage of Your System Using a Fixed orSLC 5/01 Processor___
Publication 1747-RM001C-EN-P - September 2001Memory Usage C-5Fixed Controller Memory Usage ExampleL20B Fixed I/O Controller42 XIC and XIO 42 x
Publication 1747-RM001C-EN-P - September 20012-20 Basic InstructionsReset (RES)Use a RES instruction to reset a timer or counter. When the RES
Publication 1747-RM001C-EN-P - September 2001C-6 Memory UsageSLC 5/01 Processor Memory Usage Example1747-L514 processor, 30-slot configuration,
Publication 1747-RM001C-EN-P - September 2001Memory Usage C-7SLC 5/02 ProcessorThe number of instruction words used by an instruction is indica
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
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
Publication 1747-RM001C-EN-P - September 2001C-10 Memory UsageEstimating Total Memory Usage of Your System Using a SLC 5/02 Processor__________
Publication 1747-RM001C-EN-P - September 2001Memory Usage C-11SLC 5/02 Memory Usage Example1747-L524 series C processor, 30-slot configuration,
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
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
Publication 1747-RM001C-EN-P - September 2001C-14 Memory UsageACN • • • 3.00 String Concatenate ASCII 10-10ACS • • 2.00 Arc Cosine Math 4-29ADD
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
1 Publication 1747-RM001C-EN-P - September 2001Chapter 3Comparison InstructionsThis chapter contains general information about comparison instructions
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
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
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
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
Publication 1747-RM001C-EN-P - September 2001C-20 Memory Usage
1 Publication 1747-RM001C-EN-P - September 2001Appendix DProgramming Instruction ReferencesThis appendix lists all of the available programming instru
Publication 1747-RM001C-EN-P - September 2001D-2 Programming Instruction ReferencesUnderstanding the Different Addressing ModesThe following de
Publication 1747-RM001C-EN-P - September 2001Programming Instruction References D-3then adds the offset from the Index Register S:24 to come up
Publication 1747-RM001C-EN-P - September 2001D-4 Programming Instruction ReferencesAEX(1) ASCII String Extract source direct, indirect ST nonei
Publication 1747-RM001C-EN-P - September 2001Programming Instruction References D-5ASN(2)Arc Sine source direct, indexed directindirect, indexe
i Publication 1747-RM001C-EN-P - September 2001Table of ContentsPrefaceWho Should Use this Manual. . . . . . . . . . . . . . . . . . . . . . . . . 1P
Publication 1747-RM001C-EN-P - September 20013-2 Comparison InstructionsComparison Instructions OverviewThe following general information appli
Publication 1747-RM001C-EN-P - September 2001D-6 Programming Instruction ReferencesCLR Clear destination direct, indexed directindirect, indexe
Publication 1747-RM001C-EN-P - September 2001Programming Instruction References D-7DIV Divide source A direct, indexed directindirect, indexed
Publication 1747-RM001C-EN-P - September 2001D-8 Programming Instruction ReferencesFRD From BCD to Binary source (SLC 5/01) direct O, I, S, B,
Publication 1747-RM001C-EN-P - September 2001Programming Instruction References D-9LBL Label Declaration label number 0 to 999LEQ Less Than or
Publication 1747-RM001C-EN-P - September 2001D-10 Programming Instruction ReferencesMEQ Mask Compare Equal To source direct, indexed directindi
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
Publication 1747-RM001C-EN-P - September 2001D-12 Programming Instruction ReferencesMSG(5/05 Ethernet)Message type 64=peer-to-peerread/write 0=
Publication 1747-RM001C-EN-P - September 2001Programming Instruction References D-13TIPMessage lengths for SLC 5/05 processors are shown in the
Publication 1747-RM001C-EN-P - September 2001D-14 Programming Instruction ReferencesInstruction Description Parameter Valid Addressing Mode(s)V
Publication 1747-RM001C-EN-P - September 2001Programming Instruction References D-15PID(1)PID control block direct N noneprocess variable direc
Publication 1747-RM001C-EN-P - September 2001Comparison Instructions 3-3Less Than (LES)Use the LES instruction to test whether one value (sourc
Publication 1747-RM001C-EN-P - September 2001D-16 Programming Instruction ReferencesSCP(2)Scale with Parameters input direct, indexed directind
Publication 1747-RM001C-EN-P - September 2001Programming Instruction References D-17SQR(3)Square Root source direct, indexed directindirect, in
Publication 1747-RM001C-EN-P - September 2001D-18 Programming Instruction ReferencesTOD Convert to BCD source (SLC 5/01) direct O, I, S, B, T,
1 Publication 1747-RM001C-EN-P - September 2001Appendix EData File Organization and AddressingThis chapter discusses the following topics:• data file
Publication 1747-RM001C-EN-P - September 2001E-2 Data File Organization and Addressingversion with the edited version. The hard disk is the re
Publication 1747-RM001C-EN-P - September 2001Data File Organization and Addressing E-3• Input (file 1) - This file stores the status of the inp
Publication 1747-RM001C-EN-P - September 2001E-4 Data File Organization and AddressingTable 5.A Data file types, identifiers, and numbers (data
Publication 1747-RM001C-EN-P - September 2001Data File Organization and Addressing E-5Specifying Logical AddressesYou assign logical addresses
Publication 1747-RM001C-EN-P - September 2001E-6 Data File Organization and AddressingYou can also address at the bit level using mnemonics for
Publication 1747-RM001C-EN-P - September 2001Data File Organization and Addressing E-7The table on the following page explains the addressing f
Publication 1747-RM001C-EN-P - September 20013-4 Comparison InstructionsGreater Than or Equal (GEQ)Use the GEQ instruction to test whether one
Publication 1747-RM001C-EN-P - September 2001E-8 Data File Organization and AddressingI/O Addressing for a Modular ControllerWith modular contr
Publication 1747-RM001C-EN-P - September 2001Data File Organization and Addressing E-9The figure indicates the number of inputs and outputs in
Publication 1747-RM001C-EN-P - September 2001E-10 Data File Organization and AddressingSpecifying Indexed AddressesThe indexed address symbol i
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
Publication 1747-RM001C-EN-P - September 2001E-12 Data File Organization and Addressingoccur if you use an offset value that results in crossin
Publication 1747-RM001C-EN-P - September 2001Data File Organization and Addressing E-13Monitoring Indexed AddressesThe offset address value is
Publication 1747-RM001C-EN-P - September 2001E-14 Data File Organization and AddressingEffects of Program Interrupts on Index Register S:24When
Publication 1747-RM001C-EN-P - September 2001Data File Organization and Addressing E-15ExamplesCreating Data for Indirect AddressesData tables
Publication 1747-RM001C-EN-P - September 2001E-16 Data File Organization and AddressingThe following paragraphs explain user-created files as t
Publication 1747-RM001C-EN-P - September 2001Data File Organization and Addressing E-17Sequencer InstructionsThe following figure shows a user-
Publication 1747-RM001C-EN-P - September 2001Comparison Instructions 3-5• If the Test parameter is a program constant, both the Low Limit and H
Publication 1747-RM001C-EN-P - September 2001E-18 Data File Organization and AddressingThe following figure shows a user-defined file within Da
Publication 1747-RM001C-EN-P - September 2001Data File Organization and Addressing E-19When entering values into an instruction or data table e
Publication 1747-RM001C-EN-P - September 2001E-20 Data File Organization and AddressingAddressing M0-M1 FilesThe addressing format for M0 and M
Publication 1747-RM001C-EN-P - September 2001Data File Organization and Addressing E-21SLC 5/03 and Higher ProcessorsThe SLC 5/03 and higher pr
Publication 1747-RM001C-EN-P - September 2001E-22 Data File Organization and AddressingThe COP instruction that follows copies data form an M1
Publication 1747-RM001C-EN-P - September 2001Data File Organization and Addressing E-23In the equivalent rungs of the following figure, XIC ins
Publication 1747-RM001C-EN-P - September 2001E-24 Data File Organization and AddressingCapturing M0-M1 File DataThe first two ladder diagrams i
Publication 1747-RM001C-EN-P - September 2001Data File Organization and Addressing E-25G Data Files - Specialty I/O ModulesSome specialty I/O m
Publication 1747-RM001C-EN-P - September 2001E-26 Data File Organization and Addressing
1 Publication 1747-RM001C-EN-P - September 2001Appendix FNumber SystemsThis appendix:• covers binary and hexadecimal numbers• explains the use of a he
Publication 1747-RM001C-EN-P - September 20013-6 Comparison Instructions
Publication 1747-RM001C-EN-P - September 2001F-2 Number SystemsNegative Decimal ValuesThe 2s complement notation is used. The far left positio
Publication 1747-RM001C-EN-P - September 2001Number Systems F-3Hexadecimal NumbersHexadecimal numbers use single characters with equivalent dec
Publication 1747-RM001C-EN-P - September 2001F-4 Number SystemsHexadecimal and binary numbers have the following equivalence: ExampleDecimal nu
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
Publication 1747-RM001C-EN-P - September 2001F-6 Number SystemsBinary Floating-Point ArithmeticThe SLC 5/03, OS301 and higher, SLC 5/04, and SL
1 Publication 1747-RM001C-EN-P - September 2001Appendix GApplication Example ProgramsThis appendix is designed to illustrate various instructions desc
Publication 1747-RM001C-EN-P - September 2001G-2 Application Example ProgramsOPERATOR PANELStart I:1/6Stop I:1/7Change Drill SoonO:3/4Change Dr
Publication 1747-RM001C-EN-P - September 2001Application Example Programs G-3Paper Drilling Machine Operation OverviewUndrilled books are place
Publication 1747-RM001C-EN-P - September 2001G-4 Application Example ProgramsThe following rung will call the drill sequence subroutine. The su
Publication 1747-RM001C-EN-P - September 2001Application Example Programs G-5Drill Mechanism OperationWhen the operator presses the start butto
1 Publication 1747-RM001C-EN-P - September 2001Chapter 4Math InstructionsThis chapter contains general information about math instructions and explain
Publication 1747-RM001C-EN-P - September 2001G-6 Application Example ProgramsConveyor OperationWhen the start button is pressed, the conveyor m
Publication 1747-RM001C-EN-P - September 2001Application Example Programs G-7The following rung will keep track of the hole number that is bein
Publication 1747-RM001C-EN-P - September 2001G-8 Application Example ProgramsThe following rung is identical to the previous two rungs except t
Publication 1747-RM001C-EN-P - September 2001Application Example Programs G-9The following rung stops the conveyor and signals the main program
Publication 1747-RM001C-EN-P - September 2001G-10 Application Example ProgramsDrill Calculation and WarningThe program tracks the number of hol
Publication 1747-RM001C-EN-P - September 2001Application Example Programs G-11The following rung will reset the number of 1/4" increments
Publication 1747-RM001C-EN-P - September 2001G-12 Application Example ProgramsThe following rung will convert the BCD thumbwheel value from BCD
Publication 1747-RM001C-EN-P - September 2001Application Example Programs G-13The following rung will keep a running total of how many inches o
Publication 1747-RM001C-EN-P - September 2001G-14 Application Example ProgramsTime Driven Sequencer Application ExampleThe following applicatio
Publication 1747-RM001C-EN-P - September 2001Application Example Programs G-15Event Driven Sequencer Application ExampleThe following applicati
Publication 1747-RM001C-EN-P - September 20014-2 Math InstructionsAbout the Math InstructionsThe majority of the instructions take two input va
Publication 1747-RM001C-EN-P - September 2001G-16 Application Example Programssequencers also “roll over” to step 1. “Roll Over” to step 1 is i
Publication 1747-RM001C-EN-P - September 2001Application Example Programs G-17On/Off Circuit Ladder ProgramInterfacing with Enhanced Bar Code D
Publication 1747-RM001C-EN-P - September 2001G-18 Application Example Programsorder for a device to get bar code data from an Enhanced Bar Code
Publication 1747-RM001C-EN-P - September 2001Application Example Programs G-19The 5/03 ladder program then initiates a “MSG Write” to the decod
Publication 1747-RM001C-EN-P - September 2001G-20 Application Example ProgramsSequence of EventsThe photo switch input to the SLC goes from fal
Publication 1747-RM001C-EN-P - September 2001Application Example Programs G-21Optimizing MSG Time-OutIf the time delay between sending a comman
Publication 1747-RM001C-EN-P - September 2001G-22 Application Example ProgramsExample Scanner and Decoder ConfigurationControl block N7:0 N7:20
Publication 1747-RM001C-EN-P - September 2001Application Example Programs G-23Example Ladder ProgramThis rung detects the Photo Switch input go
Publication 1747-RM001C-EN-P - September 2001G-24 Application Example ProgramsThe internal storage bit, B3/1, holds the MSG instruction true un
Publication 1747-RM001C-EN-P - September 2001Application Example Programs G-25This rung moves the decimal value for the bar code decoder “Read”
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
Publication 1747-RM001C-EN-P - September 2001G-26 Application Example ProgramsWhen the SLC processor sets both DN and DA for a MSG instruction,
Publication 1747-RM001C-EN-P - September 2001IndexNumerics1747-CP3 13-385/04 processorschannel 0, RS-232 communication 13-21AAbsolute (ABS) 4-24math i
Publication 1747-RM001C-EN-P - September 20012 IndexBlock TransferEntering Parameters 8-2Programming Examples 8-8RIO Block Transfer Overview 8-
Publication 1747-RM001C-EN-P - September 2001Index 3control register error bit B-21Convert to BCD (TOD) 5-2data handling instruction 5-2Copy Fi
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
Publication 1747-RM001C-EN-P - September 2001Index 5file copy and file fill instructions E-17file indicator (#) E-15file organizationdata files
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
Publication 1747-RM001C-EN-P - September 2001Index 7MSG instruction for SLC 5/03 and SLC 5/04 processors 12-4communication instruction 12-4MSG
Publication 1747-RM001C-EN-P - September 20018 IndexRRadian to Degrees (DEG) 5-8data handling instruction 5-8Ramp (RMP) 4-20ramp equation 4-23r
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
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
Publication 1747-RM001C-EN-P - September 200110 Index
1 Publication 1747-RM001C-EN-PSLC 500 Alphabetical List of InstructionsInstruction- Description Page Instruction- Description PageABS - Absolute 4-24
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
Publication 1747-RM001C-EN-P - September 2001Math Instructions 4-5Add (ADD)Use the ADD instruction to add one value (source A) to another value
Publication 1747-RM001C-EN-P - September 2001Table of Contents iiMultiply (MUL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Publication 1747-RM001C-EN-P - September 20014-6 Math Instructions32-Bit Addition and SubtractionYou have the option of performing 16-bit or 32
Publication 1747-RM001C-EN-P - September 2001Math Instructions 4-7Example of 32-bit AdditionThe following example shows how a 16-bit signed int
Publication 1747-RM001C-EN-P - September 20014-8 Math Instructions Multiply (MUL)Use the MUL instruction to multiply one value (source A) by an
Publication 1747-RM001C-EN-P - September 2001Math Instructions 4-9Updates to the Math Register, S:13 and S:14During integer operation, S:13 and
Publication 1747-RM001C-EN-P - September 20014-10 Math InstructionsUpdates to the Math Registers, S:13 and S:14During integer operation, the un
Publication 1747-RM001C-EN-P - September 2001Math Instructions 4-11Double Divide (DDV)The 32-bit content of the math register is divided by the
Publication 1747-RM001C-EN-P - September 20014-12 Math InstructionsClear (CLR)Use the CLR instruction to set the destination value of a word to
Publication 1747-RM001C-EN-P - September 2001Math Instructions 4-13Scale with Parameters (SCP)Use the SCP instruction to produce a scaled outpu
Publication 1747-RM001C-EN-P - September 20014-14 Math InstructionsUpdates to Arithmetic Status BitsThe arithmetic status bits are found in Wor
Publication 1747-RM001C-EN-P - September 2001Math Instructions 4-15Example 2In the second example, an analog I/O combination module (1746-NIO4I
Publication 1747-RM001C-EN-P - September 2001Table of Contents iiiChapter 6Program Flow InstructionsAbout the Program Flow Control Instructions
Publication 1747-RM001C-EN-P - September 20014-16 Math InstructionsNote that the term rate is sometimes referred to as slope. The rate function
Publication 1747-RM001C-EN-P - September 2001Math Instructions 4-17Application Example 1 - Converting 4 to 20 mA Analog Input Signal to PID Pro
Publication 1747-RM001C-EN-P - September 20014-18 Math InstructionsApplication Example 2 - Scaling an Analog Input to Control an Analog OutputC
Publication 1747-RM001C-EN-P - September 2001Math Instructions 4-19Notice that an overflow occurred even though the final value was correct. Th
Publication 1747-RM001C-EN-P - September 20014-20 Math InstructionsIn this example, the SCL instruction is entered in the ladder logic program
Publication 1747-RM001C-EN-P - September 2001Math Instructions 4-21• Word 3 Beginning Output Value - Starting point of ramp (integer value, val
Publication 1747-RM001C-EN-P - September 20014-22 Math InstructionsInstruction OperationWhen the rung state is true all parameters are validate
Publication 1747-RM001C-EN-P - September 2001Math Instructions 4-23When the rung state is false, the current time is not updated and the destin
Publication 1747-RM001C-EN-P - September 20014-24 Math InstructionsContinuous OperationAbsolute (ABS)Use the ABS instruction to calculate the a
Publication 1747-RM001C-EN-P - September 2001Math Instructions 4-25Compute (CPT)The CPT instruction performs copy, arithmetic, logical, and con
Publication 1747-RM001C-EN-P - September 2001Table of Contents ivChapter 10ASCII InstructionsASCII Instruction Overview . . . . . . . . . . . .
Publication 1747-RM001C-EN-P - September 20014-26 Math InstructionsUpdates to Arithmetic Status BitsThe arithmetic status bits are found in Wor
Publication 1747-RM001C-EN-P - September 2001Math Instructions 4-27Swap (SWP)Use this instruction to swap the low and high bytes of a specified
Publication 1747-RM001C-EN-P - September 20014-28 Math InstructionsThe following example shows how the SWP instruction works.Before:ST10:1 = ab
Publication 1747-RM001C-EN-P - September 2001Math Instructions 4-29Arc Cosine (ACS)Use the ACS instruction to take the arc cosine of a number (
Publication 1747-RM001C-EN-P - September 20014-30 Math InstructionsCosine (COS)Use the COS instruction to take the cosine of a number (source i
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
Publication 1747-RM001C-EN-P - September 20014-32 Math InstructionsTangent (TAN)Use the TAN instruction to take the tangent of a number (source
Publication 1747-RM001C-EN-P - September 2001Math Instructions 4-33Updates to Arithmetic Status BitsThe arithmetic status bits are found in Wor
Publication 1747-RM001C-EN-P - September 20014-34 Math Instructions
1 Publication 1747-RM001C-EN-P - September 2001Chapter 5Data Handling InstructionsThis chapter contains general information about the data handling in
Publication 1747-RM001C-EN-P - September 2001Table of Contents vChapter 12SLC Communication InstructionsAbout the Communication Instructions .
Publication 1747-RM001C-EN-P - September 20015-2 Data Handling InstructionsConvert to BCD (TOD)Use this instruction to convert 16-bit integers
Publication 1747-RM001C-EN-P - September 2001Data Handling Instructions 5-3Example 2The integer value 32760 stored at N7:3 is converted to BCD.
Publication 1747-RM001C-EN-P - September 20015-4 Data Handling InstructionsTODTO BCDSource N7:332760Dest S:1300032760(U) S:50] [S:0 1MOVMOVESou
Publication 1747-RM001C-EN-P - September 2001Data Handling Instructions 5-5Convert from BCD (FRD)Use this instruction to convert BCD values to
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
Publication 1747-RM001C-EN-P - September 2001Data Handling Instructions 5-7You should convert BCD values to integer before you manipulate them
Publication 1747-RM001C-EN-P - September 20015-8 Data Handling InstructionsWhen the input condition is set (1), a BCD value (transferred from a
Publication 1747-RM001C-EN-P - September 2001Data Handling Instructions 5-9Updates to Arithmetic Status BitsThe arithmetic status bits are foun
Publication 1747-RM001C-EN-P - September 20015-10 Data Handling InstructionsUpdates to Arithmetic Status BitsThe arithmetic status bits are fou
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