Fig. 4-1:
HC8XINIT.EXE after the Call-Up without Additional Parameters
[w95] C:\WIN95>HC8Xinit
HC8XINIT utility by MMKrajka '99-'02, v. 1.40
Sets parameters of HC8X module via serial optical link in Prog mode.
Usage: HC8XINIT {/|-<options>}
Options:
C<c> - COM port used, c=1..4, must be defined
I<i> - IRQ number, i=0..15, default is 4 for COM1&3, 3 for COM2&4
B<b> - Baud rate to be programmed, b=600,1200,..38400, default is 9600
A<a> - base Address of HC8X, a=0..63 (dec) or a=$0..$3F (hex), default 48
G<g> - common analog Gain, g=0..2.0, default 1.0
O<o> - common analog Offset, o=-4096..4095 LSB, default 0
R<r> - common analog coRrection, r=0..1, 0/1: correction off/on
N<n> - channel Numbers (relative addresses) to be affected,
0..7 in any combination allowed, default 01234567
E<n> - channel numbers (relative addresses) to be Enabled,
0..7 in any combination allowed, default 01234567
F<n> - numbers of disabled channels to be set as Following channels,
0..7 in any combination allowed, default: none
T<t> - control Temperature, t=-50..359.5degC, default 40.0degC
U<t> - Upper limit, t=0..409.5K, default 12.0K
L<t> - Lower limit, t=0..409.5K, default 12.0K
H<t> - Hystheresis, t=0..409.5K, default 5.0K
M<m> - Mode of channel, m=H, T or B (for H1, T1 and B1 version), default H
P<p> - Programmability of HC tempeatures, p=1: yes, p=0: no (default)
S - Save variable HC8XINIT (max 96 chars) as remark in the HC8X
Option C must be defined, the rest uses defaults if not specified.
The communication with HC8X in Prog mode runs always with 9600 Bd.
Example: HC8XINIT /c3 /b1200 -t120.3 -a49 /n6305 /e123
uses the HC8X on COM3 at 9600 Bd, IRQ4, 8 data bits, 1 stop bit,
no parity, sets HC8X address to 49 dec, control temperature to 120.3degC on
channels 0,3,5 and 6, enables channels 1..3 only, sets 1200 Bd for normal
(OptoBox) mode
Technical Information
Chapter
4
HC8X Heat Control
Configuration and Addressing
8010043
©
SICK AG · All rights reserved
4-27
4.3.2
Configuration Query of HC8X with HC8XINIT.EXE
Note
The serial interface COM1 was enabled with IRQ4 in the following examples.
The following occurs after the start of the program with
hc8xinit /c1
:
General parameters and data are queried
The plausibility of the parameters is checked
Implausible parameters are overwritten with default values
In case of plausibility, the parameters of the data sets "
Found
" and "
Written
" are identical.
The "
Found
" data set indicates the configuration found, the "
Written
" data set the new pa-
rameter configuration (see Fig. 4-2).
When the communication is acknowledged with the message "
HC8X doesn’t respond
",
check possible error sources:
Check the connection of the optical fibers to the measuring system PC and HC8X
Operating mode of HC8X (desired status = "Prog")
COM interface and associated interrupt (COM1 = 0x3F8h, IRQ 4, COM2 = 0x2F8h, IRQ
3)