66
Chapter 2 Define a controller component
54
Rockwell
Automation
Publicatio
n 1756-RM084U-EN-P - November 2015
Controller attributes
Attribute
Description
Use
L5X only. Specify context or target.
Name
L5X only. Specify the name of the controller component.
In L5K, the name is an element of the controller component.
ProcessorType
Specify the type of controller. (1756-L71, 1756-L71S, 1756-L72, 1756-L72S, 1756-L73, 1756-L73S,
1756-L74, 1756-L75, 1769-L16ER-BB1B, 1769-L18ER-BB1B, 1769-L18ERM-BB1B, 1769-L24ER-
QB1B, 1769-L24ER-QBFC1B, 1769-L27ERM-QBFC1B, 1769-L30ER, 1769-L30ERM, 1769-L30ER-NSE,
1769-L33ER, 1769-L33ERM, 1769-L36ERM, Emulator)
Major
L5K only. Specify the major revision number (1...127) of the controller.
MajorRev
L5X only. Specify the major revision number (1...127) of the controller.
MinorRev
L5X only. Specify the minor revision number (1...127) of the controller.
TimeSlice
Percentage of available CPU time (10...90) that is assigned to communication.
ShareUnusedTimeSlice
Specify whether to share an unused timeslice or not. Type a 0 to not share; type a 1 to share.
PowerLossProgram
Name of the program to be executed upon restart after a power loss.
MajorFaultProgram
Name of the program to be executed when a major fault occurs.
CommPath
Specify the devices in the communication path. The communication path ends with the controller
(\Backplane\1). This is exported only if you select manual configuration of the communication path
in RSLinx software.
CommDriver
Specify the type of communication driver. This is the name of the selected driver in RSLinx
software. This is exported only if you select manual configuration of the communication driver in
RSLinx software.
RedundancyEnabled
L5K only. Specify whether redundancy is used or not. Type a 0 to disable redundancy; type a 1 to
enable redundancy.
Enabled
L5X only. Specify whether redundancy is used (true or false).
This attribute is on the <RedundancyInfo> tag element.
KeepTestEditsOnSwitchOver
Specify whether to keep test edits on when a switchover occurs in a redundant system. Type a 0
not to keep test edits on; type a 1 to keep test edits on.
For L5X, this attribute is on the <RedundancyInfo> tag element. Type false or true.
IOMemoryPadPercentage
Specify the percentage (0...100) of I/O memory that is available to the system after the download
when configured for redundancy.
For L5X, this attribute is on the <RedundancyInfo> tag element.
DataTablePadPercentage
Specify the percentage (0...100) of the data table to reserve. If redundancy is not enabled, type 0. If
redundancy is enabled, type 50.
For L5X, this attribute is on the <RedundancyInfo> tag element.
SecurityCode
L5K only. Specify whether the RSI Security Server is enabled for the controller. Type 0 if the
controller is unsecured; type a 10-digit, non-zero value if the controller is secured.
Code
L5X only. Specify whether the RSI Security Server is enabled for the controller. Type 0 if the
controller is unsecured; type a 10-digit, non-zero value if the controller is secured.
This attribute is on the <Security> tag element.
69
Define a controller component Chapter 2
Rockwell
Automation
Publicatio
n 1756-RM084U-EN-P - November 2015
55
Attribute
Description
SFCExecutionControl
Specify whether the SFC executes the current active steps before returning control (CurrentActive)
or whether the SFC executes all threads until reaching a false transition (UntilFalse).
SFCRestartPosition
Specify whether the SFC restarts at the most recently executed step (MostRecent) or at the initial
step (InitialStep).
SFCLastScan
Specify how the SFC manages its state on a last scan. Select AutomaticReset, ProgrammaticReset,
or DontScan.
SerialNumber
L5K only. Specify the serial number of the controller. If a serial number is specified, it is imported
into the project regardless of the MatchProjectToController setting. Type a 32-bit, hexadecimal
number with the 16# prefix, such as 16#0012_E2BC.
ProjectSN
L5X only. Specify the serial number of the controller. If a serial number is specified, it is imported
into the project regardless of the MatchProjectToController setting. Type a 32-bit, hexadecimal
number with the 16# prefix, such as 16#0012_E2BC.
MatchProjectToController
Specify whether to be sure that the project matches the controller or not. Type Yes or No.
InhibitAutomaticFirmwareUpdate
Specify whether to inhibit the automatic update of controller firmware. Type a 0 to not inhibit;
type a 1 to inhibit.
CurrentProjectLanguage
Specify the current project language for a project documentation project.
DefaultProjectLanguage
Specify the default project language for a project document at on project.
ControllerLanguage
Specify the controller project language for a project document at on project.
CanUseRPIFromController
Specify whether the consumed tags in the controller can connect to the producer with an RPI
provided by the producer (true or false).
SecurityAuthorityID
ID of the FactoryTalk Diagnostics® to which your controller is bound.
For L5X only, this attribute is on the <Security> tag element.
SecurityAuthorityURI
Network
path
to the FactoryTalk Diagnostics to which your controller is bound.
For L5X only, this attribute is on the <Security> tag element.
PermissionSet
Name of the set of permissions, configured in FactoryTalk Security, to apply to this object.
For L5X only, this attribute is on the <Security> tag element.
ChangesToDetect
Mask that specifies the controller events that you wish to track.
For L5X only, this attribute is on the <Security> tag element.
TrustedSlots
Mask defining the slots through which the trusted communication is permitted to the controller.
For L5X only, this attribute is on the <Security> tag element
PassThroughConfiguration
For L5K and L5X. Indicates the pass through state of documentation for the project.
Type Disabled, Enabled, or EnabledWithAppend
DownloadProjectDocumentationAndExtendedProperties
For L5K and L5X. Indicates the download project documentation configuration setting of the
project.
DownloadCustomProperties
For L5K and L5X. Indicates the download custom properties configuration setting of the project.
Only applies if the project is already configured to DownloadProjectDocumentation.
Rockwell recommends setting this attribute to false only during startup testing to improve
download speeds during commissioning testing. It should be set to true for the normal operating
state of a system. For L5X, the setting is true or false. For L5K, the setting is 1 (true) or 0
(false).
42
Chapter 2 Define a controller component
56
Rockwell
Automation
Publicatio
n 1756-RM084U-EN-P - November 2015
For safety controllers, specify these attributes for the Controller component, in
addition to those previously described.
Attribute
Description
SafetySignature
Specifies the safety signature control as defined in the controller properties. This value is exported only; it is ignored on import.
For L5X, this attribute is on the <SafetyInfo> tag element.
SafetyLocked
Displays whether the safety controller is locked or not. This value is exported only; it is ignored on import. This value will be Yes or No.
For L5X, this attribute is on the <SafetyInfo> tag element. Type true or false.
SafetyLockPassword
Specifies the lock password in the controller. This value is encrypted on export.
For L5X, this attribute is on the <SafetyInfo> tag element.
SafetyUnlockPassword
Specifies the unlock password in the controller. This value is encrypted on export.
For L5X, this attribute is on the <SafetyInfo> tag element.
SafetyTagMap
L5K only as an attribute. Specify the tags in the safety tag map. Place double quotes around the tags. Each entry must end with a comma
and carriage return. This is an example.
"StdTag1=SafeTag1,
StdTag2=SafTag2"
For L5X, a <SafetyTagMap> element is a subelement under the <SafeyInfo> element. Specify the tags in the safety tag map in the body
of the <SafetyTagMap> element Do not use quotes. Separate mappings with a comma and a space.
ConfigureSafetyIOAlways
Specify whether to configure safety I/O when replacing safety I/O. Type Yes or No.
For L5X, this attribute is on the <SafetyInfo> tag element. Type true or false.
SignatureRunModeProtect
Indicates
whether you can modify the safety signature when in Run mode.
For L5X only, this attribute is on the <SafetyInfo> tag element.
Observe these guidelines when defining a controller:
All declarations must be ordered in the prescribed syntax.
The maximum number of tasks vary by the controller type.
Controller attributes in a
safety controller system
Controller guidelines
C# Excel - Excel Page Processing Overview C#.NET programming. Allow for changing the order of pages in an Excel document in .NET applications using C# language. Enable you
convert pdf to openoffice text; c# convert pdf to text C#: How to Edit XDoc.HTML5 Viewer Toolbar Commands _viewerTopToolbar.removeTab(_tabRedact); _tabSignature.removeCommand(Text); applies equally to changing tabs order var _userCmdDemoPdf = new UserCommand("pdf");
pdf to text; convert pdf to word editable text online
24
Define a controller component Chapter 2
Rockwell
Automation
Publicatio
n 1756-RM084U-EN-P - November 2015
57
Controller
Maximum Number of Tasks
ControlLogix®
32
SoftLogix™ 5800
32
FlexLogix™
8
CompactLogix™
4
DriveLogix™
4
There can be only one continuous task.
Programs can be scheduled under only one task.
There can be a maximum of 1000 programs under a task.
Scheduled programs must be defined.
L5X Controller Example
Examples
14
Chapter 2 Define a controller component
58
Rockwell
Automation
Publicatio
n 1756-RM084U-EN-P - November 2015
L5X Safety Controller Example
L5K CONTROLLER Example
CONTROLLER example_controller (Description := "controller
description",
ProcessorType := "1756-L73",
Major := 22,
TimeSlice := 20,
ShareUnusedTimeSlice := 1,
51
Define a controller component Chapter 2
Rockwell
Automation
Publicatio
n 1756-RM084U-EN-P - November 2015
59
RedundancyEnabled := 0,
KeepTestEditsOnSwitchOver := 0,
DataTablePadPercentage := 50,
SecurityCode := 0,
ChangesToDetect := 16#ffff_ffff_ffff_ffff,
SFCExecutionControl := "CurrentActive",
SFCRestartPosition := "MostRecent",
SFCLastScan := "DontScan",
SerialNumber := 16#0000_0000,
MatchProjectToController := No,
CanUseRPIFromProducer := No,
InhibitAutomaticFirmwareUpdate := 0,
PassThroughConfiguration := EnabledWithAppend,
DownloadProjectDocumentationAndExtendedProperties := Yes)
MODULE Local (Parent := "Local",
ParentModPortId := 1,
CatalogNumber := "1756-L73",
Vendor := 1,
ProductType := 14,
ProductCode := 94,
Major := 22,
Minor := 1,
PortLabel := "RxBACKPLANE",
ChassisSize := 7,
Slot := 0,
Mode := 2#0000_0000_0000_0001,
CompatibleModule := 0,
KeyMask := 2#0000_0000_0001_1111)
END_MODULE
TAG
END_TAG
PROGRAM MainProgram (MAIN := "MainRoutine",
MODE := 0, DisableFlag := 0)
TAG
END_TAG
ROUTINE MainRoutine
END_ROUTINE
END_PROGRAM
TASK MainTask (Type := CONTINUOUS,
Rate := 10, Priority := 10, Watchdog := 500,
DisableUpdateOutputs := No, InhibitTask := No)
MainProgram;
END_TASK
PARAMETER_CONNECTION
END_PARAMETER_CONNECTION
47
Chapter 2 Define a controller component
60
Rockwell
Automation
Publicatio
n 1756-RM084U-EN-P - November 2015
CONFIG ASCII(XONXOFFEnable := 0,
DeleteMode := 0, EchoMode := 0,
TerminationChars := 65293, AppendChars := 2573,
BufferSize := 82)
END_CONFIG
CONFIG ControllerDevice END_CONFIG
CONFIG CST(SystemTimeMasterID := 0) END_CONFIG
CONFIG DF1(DuplicateDetection := 1,
ErrorDetection := BCC Error, EmbeddedResponseEnable := 0,
DF1Mode := Pt to Pt, ACKTimeout := 50,
NAKReceiveLimit := 3, ENQTransmitLimit := 3,
TransmitRetries := 3, StationAddress := 0,
ReplyMessageWait := 5, PollingMode := 1,
MasterMessageTransmit := 0, NormalPollNodeFile := "<NA>",
NormalPollGroupSize := 0, PriorityPollNodeFile := "<NA>",
ActiveStationFile := "<NA>", SlavePollTimeout := 3000,
EOTSuppression := 0, MaxStationAddress := 31,
TokenHoldFactor := 1, EnableStoreFwd := 0,
StoreFwdFile := "<NA>")
END_CONFIG
CONFIG FileManager END_CONFIG
CONFIG SerialPort(BaudRate := 19200,
Parity := No Parity, DataBits := 8 Bits of Data,
StopBits := 1 Stop Bit, ComDriverId := DF1,
PendingComDriverId := DF1, RTSOffDelay := 0,
RTSSendDelay := 0, ControlLine := No Handshake,
PendingControlLine := No Handshake,
RemoteModeChangeFlag := 0,
PendingRemoteModeChangeFlag := 0,
ModeChangeAttentionChar := 27,
PendingModeChangeAttentionChar := 27,
SystemModeCharacter := 83,
PendingSystemModeCharacter := 83,
UserModeCharacter := 85,
PendingUserModeCharacter := 85,
DCDWaitDelay := 0)
END_CONFIG
CONFIG WallClockTime(LocalTimeAdjustment := 0, TimeZone := 0)
CONFIG InternetProtocol [(Internet_Protocol_Attributes)]
END_ CONFIG
CONFIG EthernetPort1 [(Internet_Protocol_Attributes)]
Documents you may be interested
Documents you may be interested