Setting s-registers – ZyXEL Communications ACCESSING INTERNET & INTRANET omni series User Manual

Page 138

Advertising
background image

126 Status Registers and Result Codes

n=1-4

- View settings for user profile number (n-1).

n=5

- View the factory default settings.

n=6

- View the analog adapter’s setting, Phone 1 (non-data).

n=7 - View the analog adapter’s setting, Phone 2 (omni.net).

The S-register values may be displayed in either Decimal or
Hexadecimal format when using the preceding commands. Bit 3 of
S-register 84 sets which numbering system is used for display.

ATS84.3=0 - for decimal format.

ATS84.3=0 - for Hex format.

To display the value of bit b of S-register r, type:

ATSr.b?

Setting S-registers

In order to change the value in S-register ‘r’ to value ‘n’ use:

ATSr=n (range 0-255)

In order to change the value in a specific bit (b) of S-register r, use:

ATSr.b=n (range 0-1)

In both commands, n is a decimal number in the given range. While
the first command modifies all bits in the S-register simultaneously,
the second command lets you change bit b without affecting other
bits in this S-register. When using ATSr=n, you need to do a
conversion to or from the binary number to find out which bits you
manipulate.

For example, if you want to set S38 bit 3 to 1 for a specific
application, you may either use ATS38.3=1 (simple) or use the
following (difficult):

O note: The values used in the example below differ from the actual

values in the S-register and are used for demonstration

purposes only.

Advertising