Supplement for Industrial PCs with
standard motherboard
Technical hardware description
Version 1.0
Version 1.0
Table of Contents
1.
Overview4
2. Pin Assignment for the Connections5
AT bus5
System bus; front panel; UPS6
3. The C2000BAT UPS Control Board7
4. Programming8
The 8255 Parallel Input/Output Chip8
The Special Keys8
The LEDs9
The C2000BAT UPS Control Board10
Controlling the LCD Background Illumination10
Uninterruptible Power Supply11
The Charging System11
The ISA bus C1230S PC interface card provides an extension to industr y
PCs with standard motherboar ds for the drive of vario us IPC components
that are not present in standard PCs.
The C1230S allows up to 10 special k eys to be interrogate d, and up to 10
LEDs to be driven. T he card, in combination with the C2000 BAT control
board, allows a 24V UPS (uninterru ptible power supply) to be driven. The
industry PC can also be given an NC bac kplane, driven by means of the
C1230S interface card. The NC backplane makes 32 digital inputs, 32
digital outputs, 4 analogue inputs, 4 analogue outputs and 4 incremental
encoder inputs available centrally at the PC. The function and
programming of the NC backplane are described in a separate NC
backplane documentation.
The C1230S interfac e c ard is a partially pop ulated v ar ia nt of the C12 30 Al lin-One motherboard.
6\VWHP%XV
67
)URQWWDEOHDX
67
67
869
67
Connections for:
• C2000BAT control board for uninterruptible power supply
Not all connections are
used in the applicat ion with
the C1230S.
An industry PC with a 24 V power supply can optionally be f itted with an
uninterruptible power supply, which maintains correct operation of the
device for about 15 minutes by means of a NiCad battery after failure of the
main power supply. The control is performed by the C2000BAT UPS
control board.
Battery/Pwr. sup.
Fuse
Mains power
supply board
1A
LCdisplay
C1230S
1
not
not
used
11
used
Battery reverse connection
protection
Switch for the LCD
background illumination
Switch for
LCD illumination
The UPS control board is fitted with a simple form of protection against
reverse battery connection. If the batter y is acciden tally conn ected with th e
wrong polarity, high c urr ent f lo ws f or a sh or t period, and this blo ws th e f use
(1A) on the C2000BAT board. The locatio n of the f use on t he board c an b e
seen in the figure.
The UPS control board allows the LCD background illumination to be
switched on and off by means of a switch on the side of the hous ing, or b y
software through the PIO chips on the C1230S. Switching the LCD
background illum ination off can save cur rent u nder batter y operatio n. If the
software has switched the bac kground illumination off when under battery
power, it can be switched on again for operation using the switch.
There are three 8255 parallel input/output chips, PIOs for short, on the
C1230S ISA bus car d. One of these components int errogates the special
keys on the front pan el and controls the LEDs. If your PC does not have
special keys, the chip ca n be used for other purposes. T he connections to
the chip are brought to the C1230S card’s front panel interface in TTL
compatible form . The s econd PIO contro ls an uninter rupt ible po wer s uppl y.
You need the C2000B AT UPS control boar d in order to connect the UPS.
The third chip is not used on the C1230S card.
Each component has t hree 8-bit ports that can be configured as inputs or
outputs. The configuratio n is made through the contro l register. Each port
and each control register is located at a memory address.
The addresses of the three
PIO chips on the C1230S
Configuration:
After power-up, write 91H
into address 223H and 93 H
into address 233H.
Each of the 10 special k eys
contains an LED
Front panel AddressUPS
control
Port A
Port B
Port C
Control
register
220H
221H
222H
223H
Port A
Port B
Port C
Control
register
Addressnot usedAddress
230H
231H
232H
233H
Port A
Port B
Port C
Control
register
240H
241H
242H
243H
In the control register of an 8255 parallel input/output component you
specify which port will function as input or output.
After a reset, or after the com puter has been switched o n, all the p orts are
configured as inputs. In order to configure the chip appropriately for its
tasks in the industry PC, write the value 91H into the control register at
address 223H, and 93H into address 233H. The configurati on is retained
until these addresses are over-written, or until the computer is re-booted.
The Special Keys
The industry PC has up to 10 special keys on the front panel, each of
which contains an LED.
C1230S
The special keys on the front panel are not connected via the keyboard
interface, but are interr oga ted by means of port A and th e lo wer par t of por t
C of the parallel input/output c hip , wh ose a ddr es s r ange l ies b et ween 220H
and 223H.
Port CPort A
222H220H
1076543210
0000000000
1111111111
Since, after a reset , all the com ponent’s ports are config ured for input, the
keys can be interrogated without altering the control register.
Example:
- Press keys S5 and S9, and interrogate addr esses 220H and 222H at the
same time.
- From address 220H you obtain 11101111B, while 222H returns
XXXXXX10B. The X stands here for an undefine d value that need not be
considered.
The LEDs
The 10 special keys each contain a lig ht emitting diode t hat can be driven
through the software. They are addressed through port B and the upper
half of port C of the same input/output component as the sp ec ia l keys. This
is located in the address range from 220H to 223H.
Inverted drive
The component must b e reconfigured for output in the
control register.
Note that drive of the LEDs is inver ted, so that if the bit is set, the LED is
out.
Since after a reset all the component’s ports are configured as inputs, the
value 10010001B (= 91H) must be written into the control register at
address 223H before the LEDs are first used, s o that port B and the upper
half of port C function as outputs. The configur ation is retained unti l this is
over-written.
Example:
- Write 10010001B (91H) into address 223H.
- In order to switch on LED 6 and to s witch all the others off, write DFH to
address 221H and set bits 4 and 5 of address 222H, by writing a va lue in
which bits 4 and 5 are 1, for instance 30H or FFH.
LEDs10987654321
Port
Address
Bit
LED on=
LED off=
Port CPort B
222H221H
5476543210
0000000000
1111111111
An industry PC with a 24 V power supply can optionally be f itted with an
uninterruptible power supply, which maintains correct operation of the
device for about 15 minutes by means of a NiCad battery after failure of the
main power supply.
Control is exercis ed by the C2000BAT UPS contro l board. It is accessed
through the parallel input/output chip located in the address range from
230H to 233H. The value 93H must be writte n into the control register at
address 233H in order to configure the component.
230Hnot used
231HRead the charge state
232H bit 0-3Various inputs
232H bit 4-7Various outputs
233HFor this configuration: 10010011B = 93H
not
used
not
usedLCdisplay
illumination
0= off
1= on
external
supply
voltage
0= failed
1= OK
Battery
voltage
0=U<16 V
1=U>16 V
not
used
Interrogation of
LCD
switch
0= on
1= off
Switch for the LCD
background illumination
Controlling the LCD Background
Illumination
In devices with a uninterruptible power supply built in, the side of the
computer’s housing has a switch for the LC display’s background
illumination.
The background illuminat ion c an a lso b e controlled by the softwar e thr o ugh
bit 4 of port C. Setting the bit switches the illumination on.
If the software clears bit 4, so switching the background illumination off,
you can switch it on again with this s witch. The position of the switch can
be interrogated through bit 0 of port C in the input/output component
belonging to the multi-function board at address 232H.
Monitoring of the external 24 V p ower supply can be activated by setti ng
bit 7 of port C in the input/output component be longing to the m ulti-function
board at address 232H.
If the external voltage supply falls below 16 volts when active, the multifunction board switc hes o ver to b atter y operat ion, an d inf orm s the sof tware
of this by clearing bit 3 of port C.
The NiCad battery (18 V / 0.65 Ah) supplies the device for up to 15
minutes, depending on how fully charged the battery is and on the
hardware installed in the IPC, givin g the software tim e to save all its data .
When all the data has been saved the software can switch the device off
by clearing bit 7 of port C at address 232H.
If, during operation under em er genc y power, the b atter y voltag e f alls be low
16 V, a signal is sent t o the software b y clearing bit 2 of port C at address
232H.
The signal from the charge
controller provides information about the state of
charge.
Fast charging
The Charging System
An integrated charger ensures that the batt er y is a lwa ys kept f ull y charged.
The charging current is 1/3 of the full capacity, i.e. about 230 mA. The
charging procedure therefore takes up to 3 hours, depending on the charge
already in the battery. Overcharging, and consequent damage to the
battery, is prevented through the use of an integrated charging controller.
Port B of the input/output chip carries a signal that provides information
about the state of charge.
The battery charger on t he multi-function board ca n take up the following
states:
When the operating v oltage has been switched o n, the charger goes into
the fast charging state if a batter y is conn ec ted . The battery is charg ed with
a constant current of about 230 mA. Bit 7 of port B at address 231H is 0.
not used not used not used not used not used not used not used
Battery not connected
Fast charging completed
The charger recognis es whether or not the bat tery is connec ted. If ther e is
no battery connection, bit 7 of port B at address 231H is set.
If the charging has been ended by the charging control ler, bit 7 of port B at
address 231H alternates between 0 and 1 with a period of 250 ms.
In this state the char ging con troller waits f or the presenc e of a v alid batt ery
voltage. Only then does the quick charging continue. Bit 7 of port B at
address 231H alternates between 0 and 1 with a peri od of 1.5 s econds and
a mark-space ratio of 1:11.