Pacific Research Solutions PET-820 User Manual

Page 21

Advertising
background image

Pacific Research

PET-820 User Manual

Page 20

4.3.1

DATA TYPES USED

Some data values have maximum values and if you exceed these values the command will be aborted. As an example, if a
given command data values range form 00 to 15 and you enter a single digit value or a value larger than 15 the command
will abort and data will not be updated.

EXAMPLE:

0 through 9
00 through 99 (or 00 through XX)
000 through 255
Zero (0) or non-zero (1 through 9) for ON/OFF or Enable/Disable functions

4.4

EXAMPLE OF PROGRAMMING

As an example of programming we will review changing the systems password. After you establish communication with the
PET-820, you must first execute the current password and program authorization code. Now you are ready to change the
password by sending [14 28774 #], the first "14" is the change password command code, next "28774" is the new password
data. This can be any value from 0 through 9 and any number of digits from 1 to 6 and the last item, "#", is the end of a
string or enter key. If the command was correctly entered and data correctly updated the PET-820 will read back the new
password data. Now, if you only send [14 #], command code and enter, the PET-820 will respond with the current password
data.

4.5

PROGRAM COMMANDS

The following sections will detail each of the program command codes to show syntax, examples and the default data values.
The programming commands for the Analog option have been separated and will follow at the end of this section for better
clarification.

4.5.1

SET LOOP RESPONSE TIME

The loop response time is used to denounce each of the loop circuit inputs. A large response can be used to eliminate some
noise and interference. Each of the loop circuits can be programmed for either one of two loop response times. Each of the
response times are programmed in 40 millisecond increments. The fastest response time of 40 milliseconds with a data value
of 001 and up to 10.2 seconds with a data value of 255. A data value larger than 255 will abort the command.

COMMAND CODE:

10 = Loop response timer 1
11 = Loop response timer 2

PROGRAM SYNTAX:

[Command Code] [Data] #

READ BACK SYNTAX:

[Command Code] #

WHERE:

Command Code = 10 or 11
Data = 001 through 255, in 40 milliseconds increments

EXAMPLE:

10 131 # = Sets loop response timer 1 for 5.24 seconds
11 025 # = Sets loop response timer 2 for 1.0 seconds

DEFAULT:

Loop Response timer 1 = 001 (40 milliseconds)
Loop Response timer 2 = 025 (1 sec.)

Advertising