The text of a manual · part 14 of 18
Simatic S5 to RSLogix 5000 Application Conversion Guide: Chapter 5: Conversion of System Functions
Pages 101 to 104 of 140, from Simatic S5 to RSLogix 5000 Application Conversion Guide
The original document is the PDF (3.5 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Siemens 6ES5-431-8MA11, Siemens 6ES5-451-8MA11 and Siemens 6ES5-452-8MR11
Page 101
Chapter
5
Conversion of System Functions
Introduction
The purpose of this chapter is to examine the most commonly used S5 System Functions and their RSLogix 5000 equivalents, and to show the range of system functions available in RSLogix 5000 software.
Logix System Values
In RSLogix 5000 software, the equivalent of most S5 System Functions will be the GSV (Get System Value) and the SSV (Set System Value) instructions. These instructions access a hierarchy of objects (Classes, Instances and Attributes) built-in to Logix controllers. The GSV and SSV pull-down menus will guide you through parameter selection.
When you enter a GSV/SSV instruction, specify the object and its attribute that you want to access. If there are multiple instances of the same object type, it is necessary to specify the object name. For example, there can be several tasks in your application. Each task has its own TASK object that can be accessed by the task name. The RSLogix 5000 online help provides detailed information on how to access these system values and how to select the required Attribute Name in the GSV/SSV instruction.
101Publication LOGIX-AP010B-EN-P - May 2010
101
Page 102
Chapter 5
Conversion of System Functions
The following objects can be accessed by the GSV/SSV instruction.
Read/Write System Time
Objects
Description
Axis
Provides status information about a servo module axis.
Controller
Provides status information about a controller’s execution.
Controller Device
Identifies the physical hardware of the controller.
Coordinate System
The coordinate system tag is used to set the attribute values to be used by the Multi-Axis Coordinated Motion instructions in your motion applications.
CST (CoordinatedSystemTime)
Provides coordinated system time for the devices in one chassis.
DF1
Provides an interface to the DF1 communication driver that you can configure for the serial port.
FaultLog
Provides fault information about the controller.
Message
Provides an interface to set up and trigger peer-to-peer communication.
Module
Provides status information about a module.
Motion Group
Provides status information about a group of axes for the servo module.
Program
Provides status information about a program.
Redundancy
Provides status information about the redundancy system.
Routine
Provides status information about a routine.
Serial Port
Provides an interface to the serial communication port.
Task
Provides status information about a task.
WallClockTime
Provides access to the current time information of the controller’s wall clock timer.
In the S5 PLC series the system clock can be read by using FB129 (name: SST:UHR) in conjunction with Data Block 5. A function identified of 1/0 is placed in DW0 and it determines whether the date/time is set/read. To achieve this functionality with RSLogix 5000 the GSV (Read)/SSV (Write) instruction is used to access the Coordinated System Time (CST) object or the WallClockTime object. RSLogix 5000 software allows for time intervals of microseconds to be read/set while S5 the smallest time interval is a second. The WallClockTime Object allows the user to specify the time zone and whether to apply daylight savings time. An GSV instruction on the WallClockTime object can then be used to read the Coordinated Universal Time (UTC) or the local time.
102
Publication LOGIX-AP010B-EN-P - May 2010
Page 103
Conversion of System Functions
Chapter 5
Example: Reading the Time The following ladder diagram shows how the GSV function is used to set the system clock.
The following window shows the result of the above GSV instruction with the date and time stored in the elements of the array GetDateTime[7]. GetDateTime[0] - year GetDateTime[1] - month GetDateTime[2] - day GetDateTime[3] - hour GetDateTime[4] – min GetDateTime[5] – sec GetDateTime[6] - microsecond
Publication LOGIX-AP010B-EN-P - May 2010
103
Page 104
Chapter 5
Conversion of System Functions
Example: Setting the Time The following ladder diagram shows a SSV instruction on the WallClock object being used to set the date and time with the values stored in the elements of the array SetDateTime[7]. SetDateTime[0] - year SetDateTime[1] - month SetDateTime[2] - day SetDateTime[3] - hour SetDateTime[4] – min SetDateTime[5] – sec SetDateTime[6] – microsecond
Save/Load Scratchpad Area The S5 standard function blocks and user-generated function blocks may use bytes FW200-FW254 to generate and store intermediate results.
FB 38 is used to save this data area if the cyclic program is interrupted by a time/interrupt driven process. FB 39 is called at the end of the time/event driven process and is used to reload the values to these memory locations. The reason for these save/load functions is that the time/event driven process could overwrite this temporary storage area and that could result in incorrect intermediate results being present in this area when the normal cyclic process is resumed after a time/interrupt process has been completed. RSLogix 5000 software does not use a shared temporary shared memory location. Add-On Instructions can have temporary data tags but these will be exclusive to the Add-On Instruction to which they are assigned.
104
Publication LOGIX-AP010B-EN-P - May 2010