The text of a manual · part 51 of 70
SLC 500 Instruction Set Reference Manual, pages 501 to 510
Pages 501 to 510 of 694
The original document is the PDF (7.2 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 Allen-Bradley 1747-L514
Page 501
SLC 5/03 (OS30x), SLC 5/04 (OS40x) and SLC 5/05 (OS50x) Firmware History
OS400, Series A, FRN 1 released: August 1994
Original Release
OS301, Series A, FRN 6 OS400, Series A, FRN 2 released: November 1994
Enhancements
OS301, Series A, FRN 7 0S400, Series A, FRN 3 released: March 1995
Enhancements
A-3
None
• Selection of number of data bits and stop bits with generic ASCII communications added The Generic ASCII protocol has been expanded to allow 7 or 8 data bits and 1, 1.5, or 2 stop bits. Generic ASCII communications is selected when Channel 0 is placed into User Mode. • Poll Time-out with DF1 Half-duplex Slave Communication The Poll Time-out feature associated with DF1 Half-duplex Slave communications on Channel 0 has been changed so that reply data packets queued to be transmitted when a Poll Time-out occurs will no longer be purged from the queue. The only event which will now purge the reply packets is reception of a NAK from the DF1 Master. This ensures that no matter how much time elapses between when a DF1 Master sends a command packet to the 5/03 and when the master polls that same 5/03, the reply to that command will be returned by that 5/03. Command data packets generated by MSG Instructions and which are queued and waiting for transmission will still be purged with their associated MSG Instruction being errored with the type 0005 code. • Read of Initialized Data Files during download The 5/03 processor uses hardware to CRC data files. As a data byte is written, a CRC is generated in the next byte. When the data is read back from the processor, the CRC is automatically checked. If it fails, then a hardware error occurs and the processor resets. Therefore, by the way the CRC works, data cannot be read from the processor until it has been written. In one application, the user was continuously polling all of the processors for information by reading various data files. Since this polling could happen anytime, they were often colliding with a download procedure and causing processors to reset. A change was made in the firmware to not make use of the automatic CRC checking of data files during a download, thereby preventing this from happening.
Publication 1747-RM001G-EN-P - November 2008
Page 502
A-4
SLC 5/03 (OS30x), SLC 5/04 (OS40x) and SLC 5/05 (OS50x) Firmware History
OS301, Series A, FRN 8 OS400, Series A, FRN 4 released: April 1995
Enhancements
OS302, Series A, FRN 9 OS401, Series A, FRN 5 released: December 1995
Enhancements
None
• Indirect Addressing Allows for simplified programming. • Trigonometric and Exponential Math Functions Includes SIN, COS, TAN, ASN, ACS, ATN, LN, LOG, ABS, DEG, RAD, and XPY. • Compute (CPT) Instruction Allows for complex math computations. • Swap (SWP) Instruction Allows for the exchange of the high and low bytes of a 16-bit word, providing easier manipulation of ASCII data within the SLC processors. • Scale with Parameters (SCP) Instruction Simplifies scaling of analog parameters. • DF1 Half-duplex Master Protocol Allows the processor to support SCADA master RTU applications. • Multi-Point List Allows for monitoring of any 32 bits from one screen. • Global Status Flags on DH+ (OS401 only) Provides for high-speed broadcast to all processors. • DF1 to DH+ Passthru (OS401 only) Allows user to connect to the SLC 5/04 processor’s serial port with a computer and then access any node on the DH+ network, regardless of the baud rate of the DH+ network.
Publication 1747-RM001G-EN-P - November 2008
Page 503
SLC 5/03 (OS30x), SLC 5/04 (OS40x) and SLC 5/05 (OS50x) Firmware History
A-5
• Remote I/O (RIO) Passthru via a 1747-SN Scanner Module (OS401 only) Allows an SLC 5/04 processor to act as a bridge between DH+ and RIO. Remote I/O passthru also supports uploads/downloads of applications to RIO devices. • Program Memory of 12K, 28K, or 60K words and 4K of additional data words (OS401 only) Offers a variety of modular processors that fit a variety of memory requirements. Catalog # Memory Previous: 1747-L542 20k words + 4k New: 1747-L541 1747-L542 1747-L543 12k words + 4k 28k words + 4k 60k words + 4k
OS401, Series A, FRN 6 released: May 1996
Enhancements
OS302, Series B, FRN 10 OS401, Series B, FRN 7 released: July 1997
Enhancements
None
• Day of the Week System Status File word S:53 = 0 for Sunday, 1 for Monday, up to 6 for Saturday. It will contain a random value until a legal date is entered into the System Status File. A download of a user program with a valid date or manual entry of a valid date will work. Once a value is entered, it will be non-volatile.
Special Note This is the first firmware release for the 8k SLC 5/03.
Publication 1747-RM001G-EN-P - November 2008
Page 504
A-6
SLC 5/03 (OS30x), SLC 5/04 (OS40x) and SLC 5/05 (OS50x) Firmware History
OS500, Series A, FRN 1 released: October 1997
Original Release
OS302, Series B, FRN 11 OS401, Series B, FRN 8 OS500, Series A, FRN 2 released: November 1997
Enhancements
OS302, Series B, FRN 12 released: November 1998 OS401, Series B, FRN 9 released: July, 1999 OS501, Series A, FRN 3 released: July 1998
Enhancements (OS501 only)
OS302, Series B, FRN 12 released: November 1998 OS401, Series B, FRN 9 released: July 1999 OS501, Series A, FRN 4 released: February 1999
Enhancements
OS302, Series B, FRN 14 OS401, Series B, FRN 9 released: July 1999 OS501, Series A, FRN 4 released: February, 1999
Enhancements
19200 DF1 FD Default Baud Rate (OS302 and OS401 only) The default baud rate of channel 0 has been modified from 1200 to 19200.
• Channel 0 (DF1 FD & DH-485) to Channel 1 (Ethernet) Passthru • Channel 1 (Ethernet) Remote Messaging
None
• Daughtercard Fault Signal (OS302 and OS401 only) When the daughtercard sends a fault signal to the motherboard, the motherboard will stop the communication of the processor and set error code 0xA1. Communications will be restored after power is cycled to the processor. • Improve Interrupt Performance
Publication 1747-RM001G-EN-P - November 2008
Page 505
SLC 5/03 (OS30x), SLC 5/04 (OS40x) and SLC 5/05 (OS50x) Firmware History
A-7
In the previous release, it took 60 μsec when saving interrupt information at the end of scan. This has been improved to 40 μsec. • Improve Accuracy of Last Scan Time • Autoload Memory Module Program In the previous release, when the bit S2:1/10 (Load Memory Module on Memory Error bit) is set, if the processor has a hardware error of 0x01 at power up, the program in a memory module can be automatically transferred from memory to the processor. In the current release, when the bit S2:1/10 (Load Memory Module on Memory Error bit) is set, if the processor has a hardware error of 0x01 to 0x0F at power up, the program in a memory module can be automatically transferred from memory to the processor.
OS501, Series A, FRN 5 released: April 1999
Enhancements Multi-hop Messaging Support was added for sending messages to and receiving messages from ControlLogix Ethernet cards.
OS302, Series C, FRN 3 OS401, Series C, FRN 3 OS501, Series C, FRN 3 released: September 2000
Enhancements • Added Block Transfer Instructions (BTR and BTW) With block-transfer instructions, you can transfer up to 64 words to or from a remote device over an Allen-Bradley RIO link. A Block Transfer Read (BTR) is used when a remote device transfers data to the SLC. A Block Transfer Write (BTW) is used when an SLC processor writes data to a remote device. The RIO scanners (1747-SN and 1747-BSN) perform block transfer through M0 and M1 files buffers. A BTR or BTW instruction writes information into its control structure address (a three-word control file) when the instruction is entered. The processor uses these values to execute the transfer. • Read High Speed Clock Instruction (RHC) The SLC processor maintains a 10μS long integer free running clock/counter. This 20-bit value increments every 10uS. It is accessed using the RHC instruction. When the RHC is evaluated with a false rung state, during prescan, or inside of a false MCR zone, no operation is performed. When the RHC is evaluated with a true rungstate, the Publication 1747-RM001G-EN-P - November 2008
Page 506
A-8
SLC 5/03 (OS30x), SLC 5/04 (OS40x) and SLC 5/05 (OS50x) Firmware History instruction moves the current value of the 10uS free running clock into the destination address. If it is an integer address, it only moves the least 16 bits into the address. If it is a float address, it converts the long integer value into a float and moves it to the relative address. After the free running clock reaches 0xfffff value (10.4857 sec), it will wrap around to 0 and continues incrementing. The RESET signal or Power Cycle will set this free running clock to 0. • Compute Time Difference Instruction (TDF) The compute Time Difference Instruction (TDF) is used to calculate the elapsed time between any 2 timestamps captured using the RHC instruction. This allows the user program to time any event using a 10uS timebase. When the TDF is evaluated with a false rungstate, during pre-scan, or inside a false MCR zone, no operation is performed. When the TDF is evaluated with a true rungstate, the instruction calculates the number of 10uS “ticks” that have elapsed from the Start value to the Stop value and places the result into the Destination. The TDF instruction with float address will accurately compute the time difference between any 2 timestamps captured within 10.48575 seconds of each other (1048575 10uS ticks). The TDF with float address will calculate an invalid result if more than 10.48575 seconds have elapsed between the start and stop timestamps. Meanwhile, the TDF instruction with integer address will compute the positive time difference between the START and END timestamps. The TDF with integer address will calculate an invalid result if more than 327.67ms have elapsed between the start and stop timestamps. • Encode 1 of 16 to 4 Instruction (ENC) The ENC instruction provides the ability to give the first set bit position in an integer value. When the rung is true, this output instruction searches the source from the lowest to the highest bit, and looks for the first set bit. The corresponding bit position is written to the destination integer. • Ramp Instruction (RMP) The Ramp (RMP) instruction provides the ability to create linear, acceleration, deceleration, and “S” curve ramp output data wave forms. The instruction provides a means to ramp analog outputs when using them to control devices such as valves. When the Ramp function is triggered, parameters are validated to be in range. If the parameters are valid, the ramp function places the Beginning Output Value in the Destination register. The format of the control block will be defined as part of the development process. It is Publication 1747-RM001G-EN-P - November 2008
Page 507
SLC 5/03 (OS30x), SLC 5/04 (OS40x) and SLC 5/05 (OS50x) Firmware History
A-9 permissible for the control block to take up User Ladder Program space as well as use additional user memory for storing runtime ramp information that is not user accessible. • File Bit Comparison Instruction (FBC) and Diagnostic Detect Instruction (DDT) The FBC and DDT diagnostic instructions are output instructions that you can use to monitor machine or process operations to detect malfunctions. If you want to detect malfunction by comparing bits in a file of real-time inputs with a reference bit file that represents correct operation, use FBC instruction. If you want to change the reference file to match the input file, use DDT. Both the FBC and DDT instructions compare bits in a file of real-time machine or process values (input file) with bits in a reference file, detect deviations, and record mismatched bit numbers. They record the position of each mismatch found and place this information in the result file. If no mismatches are found, the DN bit is set but the result file remains unchanged. The difference between the FBC and DDT instructions is that each time the DDT instruction finds a mismatch, the processor changes the reference bit to match the source bit. The FBC instruction does not change the reference bit. Use the DDT instruction to update your reference file to reflect changing machine or process conditions. • Messaging Interrupt Message Reply Change ‘Message Reply’ disable/enable interrupt scheme to enhance system performance during STI execution. • RIO Passthru Function for BSN The passthru function is now enabled for both the 1747-SN and the 1747-BSN. • Error Code Trapping ‘Operating System’ The error code trapping is used to get the latest 8 error structures for hard faults. Error structures are retentive after power cycle, assuming the battery is connected and charged. Error code trapping only works for hard faults (0x00 - 0x0F). • Updated Operating System Flash programming Algorithm to include 5V ‘JEDEC’ This change is required to allow memory module hardware upgrades to 5V flash technology.
Publication 1747-RM001G-EN-P - November 2008
Page 508
A-10
SLC 5/03 (OS30x), SLC 5/04 (OS40x) and SLC 5/05 (OS50x) Firmware History
• Message Error Code (OS501 only) After a Unix Server has defined the unsolicited “Client” IP address in SLC 5/05, the Server is removed from the network. The SLC 5/05 “Client” messages continue to be initiated since the user program re-triggers them on a message error. The “Client” messages normally error out with a 0x10 error code (invalid command parameters), probably since the Server’s IP address has been removed from the “Client” IP table. However, the messages stop re-triggering after several seconds indicating that the message was “done” with an error code 0x10. The mother board firmware will add one feature to give more error information for the MSG instruction. Two more bits (word 12 bit 0 and word 12 bit 1) in control block are used to give the error information. When daughtercard returns error code, .ER is set, bit 1 (word 12 bit 0) in control block is set, error code, which is a non-zero value, will be put into the control block. When daughtercard returns no error code, and motherboard got an error code in the PCCC command reply, .ER is set, bit 2 (word 12 bit 1) is set, error code, which is a non-zero value, will be put into the control block. When daughtercard has no error return, and motherboard get the right PCCC reply without error,. DN is set, bit 1 and bit 2 are reset error code in control block will be 0. Bits.ER, bit 1 and bit 2 will be reset once the MSG is enabled. • Daughtercard Firmware Revision/Series Check (OS501 only) A new feature will be added in the current release to check the daughter card firmware revision/series. This feature will be implemented in the power up. When the daughter card series is not same to a specific number, or daughter card revision is not same to a specific number, a non-user fault (0x3B) will occur. If series is 9999, no fault occurs. • Expanded Channel 1 Diagnostic File (OS501 only) The processor can support channel 1 diagnostic file. This diagnostic file can be any user defined integer file, which file number is in the range of 9 to 255. The existing diagnostic information structure size in firmware is 44 words. However, the new daughtercard supports 50 words information. The 45th word contains the number of network storms since the last power cycle. The 46th word to 48th word contains the Ethernet hardware address. The 49th word and 50th word contains IP address. In the new firmware release, the diagnostic information structure in firmware will be expanded to 50 words to get all the channel 1 information from daughtercard to match daughtercard requirement. • Update NETBSD TCP/IP Stack (OS501 only) The Berkley NETBSD TCP/IP stack was recently ported over to the 1756-ENET module to replace the Berkley Software Distribution Publication 1747-RM001G-EN-P - November 2008
Page 509
SLC 5/03 (OS30x), SLC 5/04 (OS40x) and SLC 5/05 (OS50x) Firmware History
A-11
(BSD) that has been in use since the development of the PLC-5 Ethernet over eight years ago. This stack was also ported over to the legacy Ethernet products to let us take advantage of any bug fixes we did not pickup over the years, enhanced UDP message support and the ability to do super-netting. • Addition of Connection Count Added to Diagnostics (OS501 only) The diagnostic sub-segment in the dualport was modified to contain a count of the total ethernet connections, the inbound connections and the outbound connections. This data is transferred to the ethernet channel diagnostic file (if of sufficient length) during the motherboard housekeeping. The counts are available at word 50 (total), 51 (inbound) and 52 (outbound) in the diagnostic file for the ethernet channel. • Addition of IBD (I Be Dead) Data Added to Diagnostics (OS501 only) The diagnostic sub-segment in the dualport was modified to contain IBD data upon crash of the daughtercard. If the crash occurs after communication with the motherboard is established, this data is transferred to the ethernet channel diagnostic file (if of sufficient length) during the motherboard housekeeping. The data contains register, stack, address, traceback and error information about the crash. The data starts at word offset 5 of the diagnostic file. This will allow the IBD data to be maintained in the diagnostic file over subsequent power-cycles, allowing for support analysis. • Memory Module Bootp problem (OS501 only) Currently, there is a bug for the memory module. If S2:1/10 bit (Load Memory Module on Memory Error Bit) is set, when processor has hardware fault, program in memory module will be loaded into the processor, the IP address in memory module will be applied with bootp is disabled in the memory module. However, current processor applies the IP address set by bootp under above situation.
OS302, Series C, FRN 4 OS401, Series C, FRN 4 OS501, Series C, FRN 4 released: February 2001
Enhancements None
Publication 1747-RM001G-EN-P - November 2008
Page 510
A-12
SLC 5/03 (OS30x), SLC 5/04 (OS40x) and SLC 5/05 (OS50x) Firmware History
OS302, Series C, FRN 5 OS401, Series C, FRN 5 OS501, Series C, FRN 5 released: October 2001
Enhancements • Additional Ethernet connections for 32k and 64k processors (OS501 only) The total number of available Ethernet connections has increased by eight from 16 to 24 in the 32k (L552) and 64k (L553) SLC 5/05 processors. Four connections are reserved for incoming (client) messages, four connections are reserved for outgoing (peer) messages and 16 connections can be used for either incoming or outgoing messages. Therefore, the maximum number of connections in either direction is 20. For the 16k (L551) SLC 5/05 processor, the total number of available Ethernet connections remains at 16, and the maximum number of connections in either direction remains at 12. • Embedded web server capability for module information, TCP/IP configuration and diagnostic information (OS501 only) The SLC 5/05 processor now includes an embedded web server which allows viewing of module information, TCP/IP configuration and diagnostic information via Ethernet using a standard web browser. In order to view the web server main menu, type in “http://www.xxx.yyy.zzz” for the web address in the web browser, where www.xxx.yyy.zzz is the IP address of the SLC 5/05 processor. • Domain Name System (DNS) support in the Ethernet message instruction (OS501 only) The SLC 5/05 Ethernet MSG instruction now includes DNS support, which allows entering in a device name of up to 41 characters in place of an IP addresses. Before making a connection to that device, the SLC 5/05 will query a Domain Name Server on the Ethernet network for the IP address of the device with that name. In order to successfully use the DNS capability, a “Primary Name Server” must be defined in the Channel 1 Ethernet Configuration. A “Secondary Name Server” and “Default Domain Name” may also be configured. If a “Default Domain Name” is configured, then it gets appended to every device name that is entered into an Ethernet MSG instruction.
TIP
Publication 1747-RM001G-EN-P - November 2008
RSLogix 500 version 5.20 or higher must be used to take advantage of this DNS capability.