Reference – Rockwell Automation 1761-HHP-B30 MicroLogix 1000 with Hand-Held Programmer (HHP) User Manual

Page 402

Advertising
background image

Appendix B
Programming Reference

B–7

Address

Bit

Classification

Description

S3H

Watchdog Scan
Time

Dynamic
Configuration

This byte value contains the number of 10 ms ticks allowed to
occur during a program cycle. The default value is 10 (100
ms), but you can increase this to 255 (2.55 seconds) or
decrease it to 1, as your application requires. If the program
scan S:3L value equals the watchdog value, a watchdog major
error is declared (code 0022).

S4

Timebase

Status

All 16 bits of this word are assessed by the controller. The
value of this word is zeroed upon power up in the REM Run
mode or entry into the REM Run or REM Test mode. It is
incremented every 10 ms thereafter.
Application note: You can write any value to S:4. It will begin
incrementing from this value.
You can use any individual bit of this word in your user
program as a 50% duty cycle clock bit. Clock rates for S:4/0 to
S:4/15 are:
20, 40, 80, 160, 320, 640, 1280, 2560, 5120, 10240, 20480,
40960, 81920, 163840, 327680, and 655360 ms.
The application using the bit must be evaluated at a rate more
than two times faster than the clock rate of the bit. In the
example below, bit S:4/3 toggles every 80 ms, producing a 160 ms
clock rate. To maintain accuracy of this bit in your application,
the instruction using bit S:4/3 (O:1/0 in this case) must be
evaluated at least once every 79.999 ms

160 ms

S:4/3 cycles in 160 ms

Both S:4/3 and
Output O:1/0 toggle
every 80 ms. O:1/0
must be evaluated
at least once every
79.999 ms.

] [

S:4

3

( )

O:1

0

S5

Minor Error Bits

The bits of this word are set by the controller to indicate that a
minor error has occurred in your ladder program. Minor errors,
bits 0 to 7, revert to major error 0020H if any bit is detected as
being set at the end of the scan. These bits are automatically
cleared on a power cycle.

S5/0

Overflow Trap

Dynamic
Configuration

When this bit is set by the controller, it indicates that a
mathematical overflow has occurred in the ladder program.
See S:0/1 for more information.

If this bit is ever set upon execution of the END or TND
instruction, major error (0020) is declared. To avoid this type of
major error from occurring, examine the state of this bit
following a math instruction (ADD, SUB, MUL, DIV, DDV, NEG,
SCL, TOD, or FRD), take appropriate action, and then clear bit
S:5/0 using an OTU instruction with S:5/0.

S5/1

Reserved

NA

NA

S5/2

Control Register
Error

Dynamic
Configuration

The LFU, LFL, FFU, FFL, BSL, BSR, SQO, SQC, and SQL
instructions are capable of generating this error. When bit
S:5/2 is set, it indicates that the error bit of a control word used
by the instruction has been set.

Address is not shown in HHP data monitor.

Reference

Advertising