Prm-8 programming – Oxmoor PRM-8 User Manual
Page 10
Page 8
PRM-8 PROGRAMMING
1.0 PRM-8 PROGRAMMING OVERVIEW
This document is a PA-422 communications reference
for those interested in designing their own custom
software to control the OXMOOR PRM-8 system.
Intended as a supplement to the PA-422 standard
documentation (which describes in detail the operation
of PA-422), this text describes those commands which
are used with the PRM-8 . These commands are described
in a manner consistent with the PA-422 standards draft:
each command is introduced and its exact usage given in
a procedural, step-by-step fashion. Also included are
the data formats associated with each command.
2.0 DEVICE CONTROL LANGUAGE STRUCTURES
2.1 Transmit All Data - 81 hex
This command sends the data necessary to specify the
operational mode and channel configurations of the
PRM-8. The data transmitted includes the status of link
switches, device mode of operation, channel selection
for page function and enable/disable page function. To
send this command the controller must:
1.
Transmit the address of the desired device.
2.
Wait until DSR is set or 250 msec timeout period
has elapsed.
3.
Set DTR.
4.
Get DT (device-type code; 31 hex).
5.
Get ID (mfg.’s identification code; 29 hex).
6.
Transmit 81 hex (command code).
7.
Transmit the data as shown in the data structure
description (see section 3).
8.
Get COMSTAT (should be 00 hex if successfully
executed).
9.
Verify DSR is reset by addressed device.
10.
Reset DTR.
2.2 Update Parameter of Device Channel - 96 hex
This command allows the controlling device to adjust
program source fade levels and fade in/out times of the
PRM-8.
1.
Transmit the address of the desired device.
2.
Wait until DSR is set or 250 msec timeout period
has elapsed.
3.
Set DTR.
4.
Get DT (device-type code; 31 hex).
5.
Get ID (mfg.’s identification code; 29 hex).
6.
Transmit 96 hex (command code).
7.
Transmit the data as shown in the data structure
description (see section 3).
8.
Get COMSTAT (should be 00 hex if successfully
executed).
9.
Verify DSR is reset by addressed device.
10. Reset DTR.
3.0 DEVICE CONTROL LANGUAGE (DCL) DATA
STRUCTURES
This section details the exact data streams that should be
sent with each PA-422 command to correctly
communicate with the desired device. Each data structure
is presented in the following format:
Data Transmitted:
(the data that should be sent with the command)
Byte# =
Data stream position
Valid Data Range =
Valid values for byte
Description =
Information byte contains
Data Received:
(the data returned from the desired device).
Byte# =
Data stream position
Valid Data Range =
Valid values for byte
Description =
Information byte contains
NOTE:
All numbers in the data fields are decimal unless
noted otherwise.