Page 2
• avoid a hazard • recognize the consequences Identifies information that is critical for successful IMPORTANT application and understanding of the product. Logix5550 is a trademark of Allen-Bradley, Inc., a Rockwell International Company. Microsoft, Access, and Excel are trademarks of Microsoft.
Page 3
4-5 and 4-8) and structured text (see pages 6-5 and 6-8). • Addition of sequential function chart components (see page 7-1). • Addition of an appendix that lists the valid CommMethod and ConfigMethod values for the supported I/O modules (see page A-1) Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
Page 4
Summary of Changes Notes: Publication 1756-RM084F-EN-P - July 2002...
See Page: projects import a text file to create a project export a project into a text (.L5K) file tags import tags into a project export tags into a text (.CVS) file Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
Importing and Exporting Files Importing a Complete Text You can import controller information from a saved text file (that has a .L5K extension). This lets you use any text editor to create a project. File into a Project Select File → Open. Select the text file.
Select File → Save As. Define the project. Specify the name of the text file. Select the .L5K file format. Click Save. Any unsaved edits are automatically saved when you IMPORTANT Spare Allen-Bradley Parts OK the export operation. Publication 1756-RM084F-EN-P - July 2002...
Importing and Exporting Files Importing a Tags Text File When you are offline and have a project open, you can import tags from a saved text file (that has a .CSV extension). This lets you use a into a Project ®...
Page 13
You have to use the programming software to delete tags from the tag list. For more information about the structure of the partial import/export file, see: For information on: See chapter: structuring a partial import/export file Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
Importing and Exporting Files Exporting Tags to a When you have a project open, you can export tags to a text file. You can then use a database program (like Microsoft Excel) to edit tags. Text File Make sure the project you want to export tags from is already open. Select Tools →...
You can place comments anywhere in an import/export file, except in keywords, names, component descriptions, and the value portion of attributes (before the delimiting comma or the end parenthesis). Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
Structuring a Complete (.L5K) Import/Export File Format You can enter comments using either of these methods: • Start the comment with two percent (%%) characters and stop at the end of the line. • Start the comment with a “(*” and end with a corresponding “*)”. Comments can extend multiple lines.
13,10 (carriage return, line feed) $N or $n 12 (form feed) $P or $p 13 (carriage return) $R or $r 9 (tab) $T or $t xxxx (4-digit character code that $xxxx represents a hexadecimal value) Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
(optional) and the version statement: Import-Export Version := RSLogix 5000 - 11.00.00.00 Owner := User Name, Allen-Bradley Co., Inc. Exported := Fri June 14 10:25:38 2002 IE_VER := 2.2; Following the header and version statement, the CONTROLLER component follows this structure: CONTROLLER <...
Specify whether the SFC restarts at the most recently executed step (MostRecent) or at SFCRestartPosition the initial step (InitialStep). Specify: SFCRestartPosition := name Specify how the SFC manages its state on last scan. Select AutomaticReset, SFCLastScan ProgrammaticReset, or DontScan. Specify: SFCLastScan := name Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
Structuring a Complete (.L5K) Import/Export File Format CONTROLLER guidelines Keep these guidelines in mind when defining a data type: • All declarations must be explicitly ordered as shown in the syntax above. • The maximum number of tasks depends on the controller type: Controller: Maximum Number of Tasks: ControlLogix...
DataType_name attributes of the data structure Attributes can also contain a description of the component separate each attribute with a comma (,) each member of the data structure member_definition Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
Creating a Complete Import/Export File Specifying DATATYPE attributes You can specify these attributes for a DATATYPE: Attribute: Description: Provide information about the data type. Description Specify: Description := ” text ” Specify StringFamily for a string datatype. Specify FamilyType NoFamily for all other datatypes. Specify: FamilyType := text Specifying a DATATYPE member...
Page 23
(for example, I/O structures) and without the space we could not tell where type name actually ends. Bit members cannot be defined before their host members. Note that BitPosition zero is the least significant bit. Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
Creating a Complete Import/Export File Specifying DATATYPE member attributes You can specify these attributes for a member of a DATATYPE: Attribute: Description: Provide information about the data type member. Description Specify: Description := ” text ” Specify decimal, hex, octal, binary, exponential, float, Radix or ASCII.
Specify the number of slots in the chassis (1-32). This only applies to the MODULE ChassisSize statement that defines the controller selected for the project. Specify: ChassisSize := number Specify the slot number (1-31) where the module is in the chassis. Slot Specify: Slot := number Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
Page 26
Creating a Complete Import/Export File Attribute: Description: Specify the ControlNet node address (1-99) or the remote I/O rack address (0-63) of NodeAddress the module. Specify: NodeAddress := number If the module is a remote I/O module, specify the starting group (0-7). For a block-transfer Group module, this is the module group number under the remote I/O adapter.
Forces appear as arrays of bytes under the InputForceData and OutputForceData attributes of the connection list. Do not modify forces in the import/export file. Use the programming software to enter and enable forces. Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
Creating a Complete Import/Export File Specifying MODULE connection list attributes You can specify these attributes for a MODULE connection list: Attribute: Description: Provide information about the connection list. Description Specify: Description := ” text ” Specify the requested packet interval (RPI) rate in microseconds. Rate Specify: Rate := microseconds...
This is because type names can contain a colon and without the space it would be impossible to detect where the type name actually starts. Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
3-12 Creating a Complete Import/Export File Defining a TAG declaration for an alias tag A tag declaration for an alias tag follows this structure: < tag_name > OF < alias > [ Attributes ]; Where: Item: Identifies: name of the alias tag tag_name name of the base tag the alias tag references alias...
You must also specify a Producer and RemoteTag attribute. Specify: RPI := milliseconds If consume information is provided on an alias tag, IMPORTANT the alias tag is converted to a base tag before it can consume data. Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
Page 34
3-14 Creating a Complete Import/Export File Specifying attributes for a MOTION_GROUP tag A MOTION_GROUP tag differs from a basic tag. A motion group tag has these attributes: Attribute: Description: Provide information about the tag. Description Specify: Description := ” text ” Provide information about a tag component.
Page 35
If the communication method uses DH+, specify the destination node number (0-77 octal). DestinationNode Specify: DHPlusDestinationNode := value If the message type is CIP Generic, specify the service code (0-32,767 hexadecimal). ServiceCode Specify: ServiceCode := 16# value Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
Page 36
3-16 Creating a Complete Import/Export File Attribute: Description: If the message type is CIP Generic, specify the object type (0-32,767 hexadecimal). The ObjectType ObjectType attribute is the same as the Class field on the MSG configuration dialog. Specify: ObjectType := 16#value If the message type is CIP Generic, specify the target object (0-32,767 decimal).
Page 37
Specify the home configuration bits. Enter a hexadecimal number. HomeConfigurationBits Specify: HomeConfigurationBits := 16# value Specify the desired absolute position, in positioning units, for the axis after the homing HomePosition sequence is complete (any positive number). Specify: HomePosition := value Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
Page 38
3-18 Creating a Complete Import/Export File Attribute: Description: Specify the desired offset (any positive number) in position units the axis is to move, upon HomeOffset completion of the homing sequence, to reach the home position. In most cases, this value will be zero.
Page 39
ProgrammedStopMode := text Specify the intended use of the axis. Enter Servo or Feedback Only. AxisType Specify: AxisType := text Specify the configuration of the loop. Enter Position Servo. ServoLoopConfiguration Specify: ServoLoopConfiguration := text Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
Page 40
3-20 Creating a Complete Import/Export File Attribute: Description: Specify the drive type for the servo loop. Enter Torque or Velocity. ExternalDriveType Specify: ExternalDriveType := text Specify the fault configuration bits. Enter a hexadecimal number. FaultConfigurationBits Specify: FaultConfigurationBits := 16# value Specify an axis attribute to transmit, along with the actual position data, to the controller.
Page 41
Specify the amount of distance traversed by the axis when executing the output and TestIncrement feedback test (any positive number). Specify: TestIncrement := value Specify the tuning travel limit in revolutions (any positive number). TuningTravelLimit Specify: TuningTravelLimit := value Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
Page 42
3-22 Creating a Complete Import/Export File Attribute: Description: Specify the tuning speed in revolutions per second (any positive number). TuningSpeed Specify: TuningSpeed := value Specify the tuning torque % rated (any positive number). TuningTorque Specify: TuningSpeed := value Specify the damping factor (any positive number). DampingFactor Specify: DampingFactor := value...
Page 43
Specify the maximum acceleration rate of the axis in position units/second (any MaximumAcceleration positive number). Specify: MaximumAcceleration := value Specify the maximum deceleration rate of the axis in position units/second (any MaximumDeceleration positive number). Spare Allen-Bradley Parts Specify: MaximumDeceleration := value Publication 1756-RM084F-EN-P - July 2002...
Page 44
3-24 Creating a Complete Import/Export File Attribute: Description: Specify how a specific axis will stop when the controller changes mode or a motion group ProgrammedStopMode stop (MGS) instruction is executed. Enter Fast Disable, Fast Stop, Fast Shutdown, Hard Disable, or Hard Shutdown. Specify: ProgrammedStopMode := text Specify the intended use of the axis.
Page 45
Specify the tuning speed in revolutions per second (any positive number). TuningSpeed Specify: TuningSpeed := value Specify the tuning torque % rated (any positive number). TuningTorque Specify: TuningTorque := value Specify the damping factor (any positive number). DampingFactor Specify: Spare Allen-Bradley Parts DampingFactor := value Publication 1756-RM084F-EN-P - July 2002...
Page 46
3-26 Creating a Complete Import/Export File Attribute: Description: Specify the drive model time constant (any positive number). DriveModelTimeConstant Specify: DriveModelTimeConstant := value Specify the maximum allowable value for position bandwidth (any positive number), given PositionServoBandwidth the damping factor. This parameter is disabled if the loop configuration is set to velocity. Specify: PositionServoBandwidth := value Specify the unity gain bandwidth that is to be used to calculate the subsequent gains for a...
Page 47
Specify the amount of torque available to stop the motor (0-1000). StoppingTorque Specify: StoppingTorque := value Specify the maximum amount of time that the drive amplifier will remain enabled while StoppingTimeLimit trying to stop (0-6553.5). Specify: StoppingTimeLimit := value Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
3-28 Creating a Complete Import/Export File Attribute: Description: Specify the amount of time that the drive maintains torque when the servo axis is disabled BrakeEngageDelayTime and the drive decelerates to a minimum speed (0-6.5535). Specify: BrakeEngageDelayTime := value Specify amount of time that the drive ignores command values from the controller when BrakeReleaseDelayTime the servo axis is enabled and the drive activates the torque (0-6.5535).
Enter: bit 3 of a tag COMMENT.3 := “ description ” element 8 of an array tag COMMENT[8] := “ description ” COMMENT.PRE := “ description ” preset value of a tag Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
3-30 Creating a Complete Import/Export File TAG guidelines Keep these guidelines in mind when defining a tag: • Tags must be defined after devices (if there are no devices, then after the data types) within the controller body. • Base tags and aliases can be defined out of order within a tag block.
5 structured text routine for this program STX_ROUTINE see chapter 6 sequential function chart routine for this program SFC_ROUTINE see chapter 7 You can intermix ROUTINE, FBD_ROUTINE, STX_ROUTINE, and SFC_ROUTINE declarations. Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
3-32 Creating a Complete Import/Export File Specifying PROGRAM attributes You can specify these attributes for a PROGRAM: Attribute: Description: Provide information about the program. Description Specify: Description := ” text ” Name of the main routine of the program. Main Specify: Main := name Name of the program fault routine, if any.
The maximum number of tasks depends on the of controller: Controller: Maximum Number of Tasks: ControlLogix SoftLogix5800 FlexLogix CompactLogix (L20, L30) DriveLogix A TASK component follows this structure: TASK < task_name > [ Attributes ] < program_name >; END_TASK Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
3-34 Creating a Complete Import/Export File Where: Item: Identifies: the task task_name attributes of the task Attributes can also contain a description of the task separate each attribute with a comma (,) each program within the task program_name all program names are followed by a semi colon (;) Specifying TASK attributes You can specify these attributes for a TASK: Attribute:...
(,) Controller objects are optional. There can be only one of each controller object you choose to define. Controller objects appear at the end of the import/export file. Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
3-36 Creating a Complete Import/Export File Specifying CONFIG attributes The attributes depend on the type on CONFIG object you specify. Some objects do not have any attributes. The following table lists those objects that have attributes and descriptions of each: Object: Attribute: Description:...
Page 57
Specify the maximum station address (0-31). MaxStationAddress Specify: MaxStationAddress := value Specify the token hold factor (1-4). TokenHoldFactor Specify: TokenHoldFactor := value none none ExtendedDevice none none FaultLog none none none none PCCC none none Redundancy Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
Page 58
3-38 Creating a Complete Import/Export File Object: Attribute: Description: Specify the communication rate for the serial port. Enter 110, 300 SerialPort BaudRate 600, 1200, 2400, 4800, 9600, 19200, or 38400 Specify: BaudRate := value Specify the parity setting for the serial port. Parity provides Parity additional message-packet error detection.
Page 59
Specify the user mode character. PendingSystemMode Character Specify: PendingSystemModeCharacter := value none none UserMemory Specify any local time adjustment. WallClockTime LocalTimeAdjustment Specify: LocalTimeAdjustment := value Specify the time zone. TimeZone Specify: TimeZone := value Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
(,) ladder logic ladder rungs Specifying ROUTINE attributes You can specify these attributes for a ROUTINE: Attribute: Description: Provide information about the routine. Description Specify: Description := ” text ” Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
Entering Ladder Diagram Logic Entering Rung Logic You enter rung logic within a ROUTINE component in an import/export file. Each rung follows this structure: < RungType > : < RungNeutralText >; Where: Item: Identifies: the rung RungType the logic RungNeutralText The following rung types are available: Rung type: Description:...
Entering Ladder Diagram Logic Example with a single branch N: XIC(conveyor_a)[,XIC(input_1) XIO(input_2) ]OTE(light_1); Example with two simultaneous branches N: XIC(conveyor_b)[,XIC(input_1) XIO(input_2) ,XIC(input_a) XIO(input_b) ]OTE(light_2); Entering Rung Comments The comments for rungs are similar to those for components except that the syntax is a bit different. The rung comment syntax is: RC: “comment”...
(such as sheet Attributes size or sheet orientation) can also contain a description of the routine separate each attribute with a comma (,) you enter function block logic in sheets function block sheets Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
Entering Function Block Diagram Logic Specifying FBD_ROUTINE attributes You can specify these attributes for a FBD_ROUTINE: Attribute: Description: Provide information about the routine. Description Specify: Description := ” text ” Select one of these sizes: SheetSize • Letter (8.5x11in) • Legal (8.5x14in) •...
• WIRE and FEEDBACK_WIRE statements must appear after all the other components. • Be careful when copying and pasting function block components within an import/export file. Each component within a sheet must have a unique ID number within that sheet. Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
IREF and OREF examples IREF (ID := 8, X := 200, Y := 380, Operand := PMUL_InitVal) END_IREF OREF (ID := 9, X := 480, Y := 340, Operand := FB_PMUL) END_OREF Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
Entering Function Block Diagram Logic Entering ICONs and OCONs Input and output wire connectors have similar formats and identical attributes. They follow this format: ICON (ID := < unique_identifier > X := < internal_grid_x_location >, Y := < internal_grid_y_location >, Name := <...
ToElementID enter unsigned, 32-bit integer Specify: ToElementID := ” number ” the pin on the destination drawing element ToParameter For: Enter: blocks parameter name OREFs OCONs Specify: ToParameter := ” pin ” Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
5-10 Entering Function Block Diagram Logic WIRE guidelines • Wires that are not correctly specified will not be imported. • A feedback wire follows the same format as a wire. Just connect the source and destination elements to form a feedback. WIRE example WIRE (FromElementID := 11,...
SoakValue (required) SoakTime (required) • The X and Y grid locations are a relative position from the upper-left corner of the sheet. X is the horizontal position; Y is the vertical position. Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
5-12 Entering Function Block Diagram Logic Entering Parameters for The following tables lists each function block instruction and its format in the Block component of an import/export file. For details Function Block Instructions about a specific instruction, see one of these manuals: Instruction Type: Documents: General, sequential...
(‘) Specifying STX_ROUTINE attributes You can specify these attributes for a ROUTINE: Attribute: Description: Provide information about the routine. Description Specify: Description := ” text ” Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
Entering Structured Text Logic Entering Structured Text You enter structured text logic within an STX_ROUTINE component in an import/export file. Each line of structured text must begin with a Logic single quote (‘). Structured text is not case sensitive. Structured text can contain: Term: Definition: Examples:...
END_STX_ROUTINE Entering Comments Enclose comments between (* and *) characters. Comments can include carriage returns. You can place comments anywhere in structured text logic. For example: (*------------------------------------------------------------------------------------------ ----------- Example comment ---------------------------------------------------------------- ------------------------------------------------------------------------------------------*) Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
Entering Structured Text Logic Entering Structured Text The following tables lists each structured text instruction and function. For more details, see one of these manuals: Instruction Type: Documents: General, sequential Logix5000 Controllers General Instructions Set Reference Manual , publication 1756-RM003 instruction Process control or drives Logix5000 Controllers Process Control and Drives Instructions Set Reference Manual , publication 1756-RM006...
Page 93
FOR count := initial_value TO final_value BY increment DO < statement >; END_FOR; IF sourceA >= source B THEN < statements >; ENDIF; IF sourceA > source B THEN < statements >; ENDIF; GSV( ClassName,InstanceName,AttributeName,Dest ); Spare Allen-Bradley Parts HLL( HLL_tag ); Publication 1756-RM084F-EN-P - July 2002...
Page 94
Entering Structured Text Logic Instruction: Neutral text format: HPF( HPF_tag ); IF...THEN IF bool_expression THEN <statement> ; END_IF; INSERT INSERT( SourceA,SourceB,Start,Dest ); INTG INTG( INTG_tag ); JKFF JKFF( JKFF_tag ); JSR( RoutineName,InputCount,InputPar,ReturnPar ); LDL2 LDL2( LDL2_tag ); LDLG LDLG( LDLG_tag ); IF sourceA <= source B THEN <...
Page 95
MVMT( MVMT_tag ); dest := - source ; IF sourceA <> sourceB THEN < statements >; END_IF; IF NOT source THEN < statements >; END_IF; dest := sourceA OR sourceB Spare Allen-Bradley Parts OSFI OSFI( OSFI_tag ); Publication 1756-RM084F-EN-P - July 2002...
Page 96
Entering Structured Text Logic Instruction: Neutral text format: OSRI OSRI( OSRI_tag ); data_bit [:=] BOOL_expression ; IF BOOL_expression THEN data_bit := 1; END_IF; IF BOOL_expression THEN data_bit := 0; END_IF; PI( PI_tag ); PID(PID ,ProcessVariable,Tieback,ControlVariable,PIDMasterLoop,InholdBit, InholdValue); PIDE PIDE( PIDE_tag ); PMUL PMUL( PMUL_tag );...
Page 97
WHILE bool_expression DO < statement >; END_WHILE; IF data_bit THEN < statement >; END_IF; IF NOT data_bit THEN < statement >; END_IF; dest := sourceA XOR sourceB ; dest := sourceX XPY sourceY ; Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
Page 98
6-10 Entering Structured Text Logic Notes: Publication 1756-RM084F-EN-P - July 2002...
You enter sequential function chart logic in an SFC_ROUTINE component in an import/export file. Each routine follows this Function Chart Routine structure: SFC_ROUTINE < routine_name > [Attributes] <STEP_component> <TRANSITION_componment> <SBR_RET_component> <STOP_component> <BRANCH_component> <DIRECTED_LINK_component> <TEXT_BOX_component) <ATTACHMENT_component> END_SFC_ROUTINE Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
Page 100
Entering Sequential Function Chart Logic Where: Item: Identifies: the name of the SFC routine. routine_name attributes of the SFC routine Attributes see page 7-3 SFC step block, contains actions STEP_component see page 7-9 SFC transition block TRANSITION_component see page 7-14 subroutine call SBR_RET_component see page 7-15...
ActionName := name the prefix for the name of the stop blocks in this SFC routine. RSLogix 5000 software uses StopName this prefix when it automatically generates an SFC_STOP tag. Specify: StopName := name Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
Entering Sequential Function Chart Logic SFC_ROUTINE example This SFC routine: Publication 1756-RM084F-EN-P - July 2002...
Page 103
(ID := 12, X := 460, Y := 1160, Operand := Tran_UsedTwice, HideDescription := Yes, DescriptionX := 495, DescriptionY := 1145, DescriptionWidth := 0) CONDITION (LanguageType := STX) ’TempTag > 0 END_CONDITION Spare Allen-Bradley Parts END_TRANSITION Publication 1756-RM084F-EN-P - July 2002...
Page 104
Entering Sequential Function Chart Logic BRANCH (ID := 14, Y := 940, BranchType := Selection, BranchFlow := Diverge, Priority := UserDefined) (ID := 15) END_LEG (ID := 16) END_LEG END_BRANCH BRANCH (ID := 17, Y := 1320, BranchType := Simultaneous, BranchFlow := Converge) (ID := 18) END_LEG (ID := 19)
Page 105
InitialStep := No, PresetUsesExpression := No, LimitHighUsesExpression := No, LimitLowUsesExpression := No, ShowActions := Yes) END_STEP BRANCH (ID := 39, Y := 1220, BranchType := Selection, BranchFlow := Converge) (ID := 40) END_LEG (ID := 41) END_LEG Spare Allen-Bradley Parts END_BRANCH Publication 1756-RM084F-EN-P - July 2002...
Page 106
Entering Sequential Function Chart Logic STEP (ID := 42, X := 280, Y := 1260, Operand := Step_000, HideDescription := No, DescriptionX := 360, DescriptionY := 1240, DescriptionWidth := 0, InitialStep := No, PresetUsesExpression := No, LimitHighUsesExpression := No, LimitLowUsesExpression := No, ShowActions := Yes) END_STEP STEP (ID := 44, X := 460, Y := 1080, Operand := ConsumedTag_Step,...
Page 108
7-10 Entering Sequential Function Chart Logic Where: Item: Identifies: the step identifier. This ID uniquely identifies this step from all other blocks. Enter an unsigned, 32-bit integer value. Specify: ID := number x-coordinate on internal grid. Enter an unsigned, 32-bit integer value. Specify: X := number y-coordinate on internal grid.
The limit low block contains a structured text expression that specifies the preset time in milliseconds for a limit low alarm. Each line of structured text begins with a single quote (‘). LIMITLOW (LanguageType := STX) ‘<structured_text> Spare Allen-Bradley Parts END_LIMITLOW Publication 1756-RM084F-EN-P - July 2002...
The subroutine calls let you pass values into and out of the SFC routine. Subroutine calls follow this format: SBR_RET ( ID := < unique_identifier >, X := < internal_grid_x_location >, Y := < internal_grid_y_location >, In := <“list”>, Out := <“list”>) END_SBR_RET Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
7-16 Entering Sequential Function Chart Logic Where: Item: Identifies: the SBR_RET identifier. This ID uniquely identifies this subroutine call from all other blocks. Enter an unsigned, 32-bit integer value. Specify: ID := number x-coordinate on internal grid. Enter an unsigned, 32-bit integer value. Specify: X := number y-coordinate on internal grid.
7-18 Entering Sequential Function Chart Logic Where: Item: Identifies: the branch identifier. This ID uniquely identifies this branch from all other blocks. Enter an unsigned, 32-bit integer value. Specify: ID := number y-coordinate on internal grid. Enter an unsigned, 32-bit integer value. Specify: Y := number the type of branch.
Enter an unsigned, 32-bit integer value. ToElementID Specify: ToElementID := number whether or not to show the link. Enter TRUE or FALSE. ShowLink pecify: ShowLink := text Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
7-20 Entering Sequential Function Chart Logic DIRECTED_LINK guidelines • All DIRECTED_LINK blocks must come after all STEP, TRANSITION, STOP, and BRANCH blocks. • A directed link links only one element to one other element. DIRECTED_LINK example DIRECTED_LINK (FromElementID := 16, ToElementID := 12, ShowLink := True) END_DIRECTED_LINK Entering Text Boxes The text box blocks in an SFC routine hold descriptions about SFC...
• Use an attachment to link a text box to an SFC element. • All ATTACHMENT blocks must come after all TEXT_BOX blocks. ATTACHMENT example ATTACHMENT (FromElementID := 7, ToElementID := 2) Spare Allen-Bradley Parts END_ATTACHMENT Publication 1756-RM084F-EN-P - July 2002...
Page 120
7-22 Entering Sequential Function Chart Logic Notes: Publication 1756-RM084F-EN-P - July 2002...
White space characters include spaces, tabs, carriage return, newline, and form feed. These characters can occur anywhere in an import/export file, except in keywords or names. If white space characters occur outside of descriptions, they are ignored. Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
• for a tag comment, specifies the tag name and member or bit Specifying a Tag Record Each TAG record defines a tag within a controller project. A TAG record follows this format: TAG,”Scope”,”Name”,”Description”,”Datatype”,”Specifier” Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
Structuring the Tag (.CSV) Import/Export File Format Specifying dimensions You specify tag dimensions the same way as you enter the tag in logic. To specify: Enter: 1 dimension number 2 dimensions number,number 3 dimensions number,number,number TAG examples The following examples show TAG records. Example: Description: TAG,,timer_1,”this is the first timer”,”TIMER”,””...
Important: If you use the COMMENT statement for a tag, it overwrites the description part of the TAG statement for that tag. The COMMENT tag essentially defines a new description for the tag. Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
Structuring the Tag (.CSV) Import/Export File Format Sample Scenarios of The following examples show how you can use the partial import of tags (the collision mode is overwrite): Importing/Exporting Tags Scenario: Result: Export tags Changed attributes overwrite existing Edit tag attributes, but not names tag attributes Import tags back into controller project Export tags (contains tag named Joe)
Example Tag The following example shows a partial, tag (.CSV) import/export file. Import/Export File remark,”CSV-Import-Export” remark,”Date = Fri Mar 16 14:16:47 2001” remark,”Version = RSLogix 5000-8.00.00.00” remark,”Owner = User Name” remark,”Company = Allen-Bradley Co., Inc.” TYPE,SCOPE,NAME,DESCRIPTION,DATATYPE,SPECIFIER TAG,,remote_cnb:I,"","AB:1756_CNB_10SLOT:I:0","" TAG,,remote_cnb:O,"","AB:1756_CNB_10SLOT:O:0","" TAG,,Local:1:C,"","AB:1756_DI:C:0","" TAG,,Local:1:I,"","AB:1756_DI:I:0","" TAG,,Local:2:C,"","AB:1756_DO:C:0",""...
Page 128
Structuring the Tag (.CSV) Import/Export File Format The above example tag file would look like this if opened using a spreadsheet program: Publication 1756-RM084F-EN-P - July 2002...
Listen Only - Input Data 28000002 00800002 1734-IT2I Input Data 20000001 00800001 Listen Only - Input Data 28000002 00800002 1734-IV2 Input Data 20000001 00800001 Listen Only - Input Data 28000002 00800002 Spare Allen-Bradley Parts Rack Optimized 40000000 00800003 Publication 1756-RM084F-EN-P - July 2002...
Page 130
Valid CommMethod and ConfigMethod Values I/O Module: Configuration: CommMethod Value: ConfigMethod Value: 1734-IV4 Input Data 20000001 00800001 Listen Only - Input Data 28000002 00800002 Rack Optimized 40000000 00800003 1734-MODULE Data - INT 20000003 00800003 Input Data - INT 2000000B 0080000B Data - SINT 20000002 00800002...
Velocity Control 20000001 00800001 Position Control 20000002 00800002 User-Defined Control 20000003 00800003 1756-DMF30 User-Defined Control 20000003 00800001 1756-DNB Data 20000001 1756-ENBT None 20000002 Rack Optimized 30000001 Listen Only - Rack Optimized 38000003 Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
Page 132
Valid CommMethod and ConfigMethod Values I/O Module: Configuration: CommMethod Value: ConfigMethod Value: 1756-ENET None 20000002 Rack Optimized 30000001 Listen Only - Rack Optimized 38000003 1756-HSC HSC Data 20000001 00800001 Listen Only - HSC Data 28000001 00800002 1756-IA16 Input Data 20000001 00800002 CST Timestamped Input Data 20000002...
Page 133
Listen Only - CST Timestamped Integer Data - High Speed Mode 28000012 00800024 1756-IF4FXOF2F Float Data 20000001 00800001 CST Timestamped Float Data 20000003 00800003 Listen Only - Float Data 28000002 00800002 Listen Only - CST Timestamped Float Data 28000004 0800004 Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
Page 134
Valid CommMethod and ConfigMethod Values I/O Module: Configuration: CommMethod Value: ConfigMethod Value: 1756-IF6I Float Data 20000001 00800001 Integer Data 20000002 00800002 CST Timestamped Float Data 20000003 00800003 CST Timestamped Integer Data 20000004 00800004 Listen Only - Float Data 28000001 00800005 Listen Only - Integer Data 28000002 00800006...
Page 135
20000010 00800010 Input Data - SINT 2000000C 0080000C Input Data - SINT - With Status 2000000D 0080000D Input Data - REAL 2000000E 0080000E Input Data - REAL - With Status 2000000F 0080000F Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
Page 136
Valid CommMethod and ConfigMethod Values I/O Module: Configuration: CommMethod Value: ConfigMethod Value: 1756-OA8 Output Data 20000001 00800001 Scheduled Output Data 20000002 00800002 Listen Only - Output Data 28000001 00800003 Rack Optimized 40000000 00800004 1756-OA8D Full Diagnostics - Scheduled Output Data 20000001 00800001 (standard) 00800002 (diagnostic)
Page 137
Listen Only - Float Data 28000001 00800005 Listen Only - Integer Data 28000002 00800006 Listen Only - CST Timestamped Float Data 28000003 00800007 Listen Only - CST Timestamped Integer Data 28000004 00800008 Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
Page 138
A-10 Valid CommMethod and ConfigMethod Values I/O Module: Configuration: CommMethod Value: ConfigMethod Value: 1756-OF8 Float Data 20000001 00800001 Integer Data 20000002 00800002 CST Timestamped Float Data 20000003 00800003 CST Timestamped Integer Data 20000004 00800004 Listen Only - Float Data 28000001 00800005 Listen Only - Integer Data 28000002...
Page 139
Listen Only, No Transmit Data\n4 Direct Words, 18 Buffered 200A6000 00800036 Listen Only, No Transmit Data\n4 Direct Words, 8 Buffered 200A7000 00800037 Listen Only, No Transmit Data\n, No Receive Data 200A9000 00800038 Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
Input Data - SINT - With Status 2000000D 0080000D Input Data - REAL 2000000E 0080000E Input Data - REAL - With Status 2000000F 0080000F Input Data - INT - With Status 20000010 00800010 Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
Data 20000001 1336S-PLUSDriveSM-CN1 Data 20000001 1336T Data 20000001 1336T-FORCEDriveCNA-CN1 Data 20000001 1336T-FORCEDrivePLC-CN1 Data 20000001 1336T-FORCEDriveStd-CN1 Data 20000001 1394C-SJT05-D Data 20000001 00800001 1394C-SJT10-D Data 20000001 00800001 1394C-SJT22-D Data 20000001 00800001 Spare Allen-Bradley Parts 1395 Data 20000001 Publication 1756-RM084F-EN-P - July 2002...
Page 146
A-18 Valid CommMethod and ConfigMethod Values I/O Module: Configuration: CommMethod Value: ConfigMethod Value: 1407-CGCM Data 20000001 00800001 150-SMCDialogPlus-CN1 Data 20000001 2094-AC05-M01 Data 20000001 00800001 2094-AC09-M02 Data 20000001 00800001 2094-AM01 Data 20000001 00800001 2094-AM02 Data 20000001 00800001 2094-BC01-M01 Data 20000001 00800001 2094-BC02-M02 Data 20000001...
Input Data - REAL - With Status 2000000F 0080000F Input Data - DINT - Run/Program 20000011 00800011 Input Data - INT - Run/Program 20000012 00800012 Input Data - SINT - Run/Program 20000013 00800013 Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
Page 148
A-20 Valid CommMethod and ConfigMethod Values I/O Module: Configuration: CommMethod Value: ConfigMethod Value: PanelView Data - 32 INT 20000001 Data - 8 INT 20000002 RIO-ADAPTER Rack 20000001 00800001 Publication 1756-RM084F-EN-P - July 2002...
• Do not create descriptions or comments that start with a +, -, or = symbol. Even if you add text after the symbol, Excel displays #NAME? in the cell. Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
Considerations for Using Microsoft Excel to Edit a .CSV File RSLogix 5000 Data When RSLogix5000 programming software exports tags, it performs these conversions: Transformations Original content: Content in .CSV file after export: ‘ $’ “ newline $N$L Microsoft Excel Data When you open the exported .CSV file in Excel, these conversions occur: Transformation...
Page 151
-text “-text” #NAME? #NAME? Do not start a description or comment with a minus sign (-). =text “=text” #NAME? #NAME? Do not start a description or comment with an equal sign (=). Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
Page 152
Considerations for Using Microsoft Excel to Edit a .CSV File Notes: Publication 1756-RM084F-EN-P - July 2002...
The import/export utility does not support backward compatibility for export operations. This means that older version of the RSLogix 5000 programming software cannot read .L5K files that were created with newer versions of the programming software. Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
Import/Export Revision History Each version of the RSLogix 5000 programming software exports .L5K files with a specific import/export version number. The RSLogix 5000 programming software imports any .L5K file with the same major revision number and the same or lower minor revision number. The major revision number increments when there are conditions such that the programming software cannot support backward compatibility for import operations.
If the communication method uses DH+, specify the DH+ channel. Enter either A or B. DHPlusChannel Specify: DHPlusChannel := letter If the message is to cache connections, enter TRUE. If the message is not to cache CacheConnections connections, enter FALSE. Specify: CacheConnections := text Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
Import/Export Revision History Attribute: Description: If the message type is CIP Generic, specify the service code (0-255 hexadecimal). ServiceCode Specify: ServiceCode := #16 value If the message type is CIP Generic, specify the object type (0-65,535 hexadecimal). ObjectType Specify: ObjectType := 16#value If the message type is CIP Generic, specify the target object (0-65,535 decimal).
9.0 software (after changing the import/export version line to 2.0), the AXIS tags convert to: If the AXIS type is: It converts to: unused AXIS_SERVO position only AXIS_SERVO servo AXIS_SERVO consumed AXIS_CONSUMED virtual AXIS_VIRTUAL Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
Page 158
Import/Export Revision History MOTION_GROUP tag structure (version 1.1) Attribute: Description: Provide information about the tag. Description Specify: Description := ” text ” Provide information about a tag component. Comment Specify: Comment< specifier > := ” text ” Where the specifier is: .
Page 159
Specify the maximum positive travel (any positive number). MaximumPositiveTravel Specify: MaximumPositiveTravel := value Specify the maximum negative travel (any positive number). MaximumNegativeTravel Specify: MaximumNegativeTravel := value Specify the position error tolerance (any positive number). PositionErrorTolerance Spare Allen-Bradley Parts Specify: PositionErrorTolerance := value Publication 1756-RM084F-EN-P - July 2002...
Page 160
Import/Export Revision History Attribute: Description: Specify the position local tolerance (any positive number). PositionLockTolerance Specify: PositionLockTolerance := value Specify position proportional gain (any positive number). PositionProportionalGain Specify: PositionProportionalGain := value Specify the position integral gain (any positive number). PositionIntegralGain Specify: PositionIntegralGain := value Specify the velocity feedforward gain (any positive number).
Page 161
RSLogix 5000 programming software, RSLogix 5000 Version 8.0 version 8.0 included these major enhancements: • addition of function block instructions and routines • addition of ASCII instructions • verification of all instruction attributes and parameters Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
Page 162
C-10 Import/Export Revision History Notes: Publication 1756-RM084F-EN-P - July 2002...
Page 163
5-10 component FBD_ROUTINE 5-11 guidelines ICON 7-12 block IREF BRANCH MODULE 7-17 entering OCON 7-19 example OREF 7-18 LEG block 3-31 PROGRAM 4-3, 7-17 branches ROUTINE SFC_ROUTINE STX_ROUTINE 3-10 3-33 TASK Spare Allen-Bradley Parts WIRE Publication 1756-RM084F-EN-P - July 2002...
Page 164
7-15 CONDITION block examples (continued) CONFIG function block logic 3-35 component ICON 3-40 examples IREF connection list MODULE CONTROLLER OCON attributes OREF component partial project 3-33 example PROGRAM guidelines ROUTINE 3-35 controller objects rung logic 2-1, 8-1 7-16 conventions SBR_RET CSV format scenarios of partial import/export operations sequential function chart logic...
Page 165
OREF importing component .CSV format example .L5K format guidelines complete project overview file structure partial project project tags types 3-28 initial values 4-4, 5-12, 6-4 instructions 2-1, 8-2 internal file comments Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
Page 166
sequential function chart logic (continued) 7-14 entering transitions partial example ALIAS record 7-18 LEG block COMMENT record 7-11 LIMIT_HIGH block comments 7-11 LIMIT_LOW block components 7-11 PRESET block conventions SFC_ROUTINE CSV format attributes dimensions component example example file format SHEET remark example scenarios...
Page 167
3-33 component 3-35 example 3-34 guidelines 7-20 text boxes text file TEXT_BOX 7-20 entering 7-21 example 7-21 guidelines TRANSITION 7-15 CONDITION block 7-14 entering 7-15 example WIRE component 5-10 example 5-10 guidelines Spare Allen-Bradley Parts Publication 1756-RM084F-EN-P - July 2002...
Page 168
Notes: Publication 1756-RM084F-EN-P - July 2002...
Page 169
___Yes, please email me at __________________________ ___Yes, please contact me via ________________________ Spare Allen-Bradley Parts Return this form to: Allen-Bradley Marketing Communications, 1 Allen-Bradley Dr., Mayfield Hts., OH 44124-9705 Phone: 440-646-3176 Fax: 440-646-3525 Email: RADocumentComments@ra.rockwell.com Publication ICCG-5.21- January 2001 PN 955107-82...
Page 170
PLEASE FASTEN HERE (DO NOT STAPLE) Other Comments PLEASE FOLD HERE NO POSTAGE NECESSARY IF MAILED IN THE UNITED STATES BUSINESS REPLY MAIL FIRST-CLASS MAIL PERMIT NO. 18235 CLEVELAND OH POSTAGE WILL BE PAID BY THE ADDRESSEE 1 ALLEN-BRADLEY DR MAYFIELD HEIGHTS OH 44124-9705...
Need help?
Do you have a question about the ControlLogix 1756 and is the answer not in the manual?
Questions and answers