S 27 Man
S 27 Man
Parameter Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Mechanical Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
H:\S27\Man\S27MAN.WPD/2005-11-25/TC
S27 64 DI / DO Module page 3 S27 64 DI / DO Module page 4
1. Disconnect power. comparator with a common reference voltage level that permits presetting the
2. Remove all address jumpers except for A0 and A1 but rotate these two threshold voltage to anywhere between 0,25 V and 35 V above ground. Pulling
jumpers 90* from their normal position. Please refer to the figure below. the input pin to above the threshold voltage activates the software bit that
represents the input. Each input may, however, be independently inverted in
the software by setting a bit in the parameters 0/C - 0/F.
Power Supply
The power supply voltage range is 18 V to 35 V DC. The power leads must be
designed to carry the load current (theoretically up to 10 A). Recommended
minimum area is 1 mm2 (AWG 18).
3. Apply power. The module will now communicate at 4800 bits/s using
address 63 with the PLC and any options disabled. The module can be supplied with power either through the 2-terminal power
4. Check and reconfigure the module for proper operation. plug, terminals 3 (Ground) and 4 (+24 V DC) or through the 10-pin flat cable
5. Restore a correct jumper address. header to the left of the I/O connector, although the latter is mainly intended as
power connection for the loads.
Indicator LEDs Since S27 is an extremely compact module, the temperature rise in the module
must be considered. As stated, each output can source up to 130 mA. At this
Two LEDs in the top left of the module indicate SIOX bus status: current, activating 64 outputs generate 5 W of internal heating which is close
to the maximum permissible at 55 *C ambient temperature. Fewer output
The GREEN LED is lit when a bus voltage is applied and flickers a little as channels or proportionally lower current per channel will increase the margin.
communications are sent on the bus. If this LED is dark, the SIOX central and
wiring must be checked.
I/O Connection Options
The RED LED is lit each time the module answers to a call to the preset
address as described above. If the green LED is on but not the red, check the The 10-pin and the 64-pin I/O connectors are intended for either flat cables or
supply of the module and then the central communications. an add-on board, S27-1, equipped with screw terminals.
Note that a typical flat cable lead can carry max 0,5 A, so the eight parallel
Inputs / Outputs Hardware Ground pins in the 10-pole header should carry max 4 A return current from
outputs. A direct connection from the loads to the power supply is
Each of the 64 I/O channels includes the following hardware: recommended.
An active output transistor pulls the output pin up to the (+24 V) supply. The
load is connected between the respective output pin and ground. Each output 8/16 Lead Flat cables
is guaranteed to source minimum 130 mA. The outputs are short-circuit
protected. An output is enabled in parameters 0/4 - 0/7 and activated in parame- The I/O pins may be split into groups of 8 or 16 pins by dividing the flat cable
ters 0/8 - 0/B, see page 15. in 8 or 4 parts. By using the 8th or 16th lead in each group as an active high
output, it may serve as the common +24V connection for the other 7/15 input
pins.
This optional board replaces the aluminium panel and provides screw terminals S27-1 Terminal Blocks
and indicator LEDs for each of the 64 channels as well as 8 terminals for +24
V and Ground, forming an extremely compact unit. Note that +24 V at above 2
A should be supplied to terminal 4 of the module, not the panel card since only
two +24 V pins connect the panel to the main board's output transistors.
Note! Before installing the S27-1 Terminal Card together with an S27 module,
remove the small steel spring mounted on a short pin located on the circuit
board just inside the SIOX bus connection. Normally, this spring will provide an
electric connection between the panel and the unit’s ground plane. However,
if used together with the S27-1, it might cause short-circuit to ground for some
I/O-signals.
Master Mode Communications be recognized from the single data answer above.
The S27 may act as a bus master for other SIOX modules. This mode is 4. String Setup Mode. One Address.
initiated by setting the module address to 0/0/ both in EEPROM and on the
address jumpers. Alternatively, the internal PLC program can set the Master This message type is used to read or change one configuration parameter in
flag in parameter 0/1. From a specified list in parameters 40/ - 7F com- RAM or EEPROM. All internal parameters can be read or written, e.g. 0/8 - 0/B,
munications will be run and results stored and handled by the programmable each writing/reading 16 I/O pins. Refer to particulars for each parameter on
PLC functions. This mode is described in detail in the separate SIOX PLC page 14.
manual.
5. String Text Mode message. One Address.
Spy Mode Communications This message type can be used by the PLC to receive and transmit multiple
parameters, special settings, etc. A flag in parameter 0/0/ inhibits this text
When the S27 acts as a slave on the SIOX bus, it automatically listens to handler, making it identical to String Setup, matching some older programs.
communications between the central and other slave modules as well. Which
messages that are to be reported are defined in the same EEPROM par-
ameters as in Master Mode. Since the resulting information can be put to use I/O Soft Functions
only by the PLC, Spy Mode is detailed in the SIOX PLC manual.
The module includes a microprocessor that controls communication and pre
processes information. This CPU checks and controls all inputs and outputs
Slave Communications regularly according to control parameters in various registers. Results, such as
detection of overloaded outputs and inactive to active transitions on inputs, are
The S27 module communicates as a slave using various message types stored in other parameters accessible by the central computer.
defined in the manual "SIOX System Description". All message types may be
used in any order as long as these types are allowed by the setup. For high Inversion of Inputs
integrity networks, however, Data Mode should only be permitted together with
the Double Comm Mode settable in parameter 0/1. (See page 14). Each input can be set individually to invert input data. Because of this, the
terms inactive and active are used instead of high and low, 1 and 0, etc. In the
1. Data Mode Message. One Address, Single Data. normal non-inverted mode an active input corresponds to voltages above the
threshold voltage and vice versa for inverted mode. Parameters 0/C - 0/F control
In receiving this message type, S27 behaves as a basic I/O module with only input inversion.
the 14 lowest input numbers and 7 lowest outputs. The data transmitted to the
module controls the outputs (if any are enabled), while the answer contains a Debounce on Inputs
mix of the current state of inputs and enabled outputs.
Inputs are checked every millisecond and the results made available in RAM
2. Data Mode Message. Two - Eight Addresses, Single Data. parameters to the internal PLC and the communication. By combining several
readings, however, noisy or bouncing inputs can be delayed until the level has
The module responds to the 1 - 7 addresses immediately above the basic stabilized. The debounce time can be set in 4 ms increments in the lower half
jumper/EEPROM address. Addresses thus specified above the 63rd cannot be of parameter 3. Maximum debounce time is 1020 ms (hex FF) and minimum
accessed. Data to the second - eighth addresses each set seven possible time (0/0/) is below 1 ms. This setting is common to all inputs I1 - I64 but not to
outputs in a separate group of 8 I/O’s as described above. (Outputs 9-15, 17- overload sense of outputs.
23, 25-31, 33-39, 41-47, 49-55, 57-63). The 14-bit answer is identical in two
addresses, reporting I/O pins 1-14, 17-30, 33-46, 49-62. Edge Triggered Inputs
3. Data Mode Message. One - Four Address(es), Double Data. Each input can be set individually to register an inactive to active transition.
This event is stored in the memory and is transmitted to the central computer
For this message type the module receives two data bytes in each communica- at the next communication even though the particular input already has become
tion. They can therefore control 14 outputs if such are enabled, the same I/O inactive again. If that communication is successful, the event is cleared in the
pins as are included in the answer. The numbers 1-14, 17-30, 33-46, 49-62 can module and a new edge-trig may be signalled. To avoid interaction, the PLC
S27 64 DI / DO Module page 11 S27 64 DI / DO Module page 12
has separate registers for the edge detection, which can be cleared via a flag Communication Watchdog
in the PLC. It is therefore possible to identify an old edge in the central
computer, although that same event already is ancient history in the local PLC. This feature consists of a timer located in the high half of parameter 0/3. The
timer can be preset in 0,25 s increments and is restarted each time a
The edge-trig feature is controlled by parameters 18 - 1B. Note that the same successful communication with the module is carried out.
registers also report any enabled outputs that are currently active but short- Should communication cease for longer than the preset time (max 65 s),
circuited. Which is which is determined by the output enable parameters 0/4 - outputs controlled by the communication will be deactivated until the next
0/7. successful communication. When the timer is cleared, the watchdog has no
effect on the outputs. PLC controlled bits are not affected by this watchdog.
Please note: If this feature is used with the automatically communicating SIOX
protocol the AUTO OFF feature is recommended. Thereby communication with Communication Options
the S27 register stops until data has been fetched by the application. When
edges have been fetched, the ready flag is cleared again and new communica- These bits control communication modes. They are located in parameters 0/0/
tions start. and 0/1 in the module.
Two subsequent communications with the same register in S27 are regarded Restart of the module is accomplished by writing hex FFFF to parameter 0/0/.
by the S27 as a retransmission after an error. Therefore the edges stored in the For example, to change the bit rate of a remote S27, first write the
S27 are not cleared until S27 identifies a different type of communication, with corresponding code into EEPROM parameter 0/0/, then write hex FFFF to the
another register or another address. same parameter (in EEPROM or RAM). The module will now restart and
commence communication on the new bit rate.
Overload Detection
Disable Data Mode Output disables the possibility to control outputs in Data
These four parameters 18 - 1B show which activated outputs that are currently Mode. This mode relies only on parity checking to eliminate inadvertent
overloaded. The same parameters are used to enable edge-triggered inputs, changes on outputs as a result of communication errors.
but the overload bits are always read-only and not affected by writing into the
parameters. Double Communication is an alternate method to increase output data
integrity in Data Mode. If this option is active, the data controlling the outputs
Input - Output Registers must be the same for two consecutive communications to change the outputs.
The four parameters 0/8 - 0/B control the outputs. In the RAM parameters only RTC, Real Time Clock
those bits that are currently allowed as outputs (see parameters 0/4 - 0/7) may
be set, the others being read-only input data. Combining input and output bits Parameter 17 contains a 16-bit seconds counter and the second half of
in this way permits easy read/write access through a single communication. parameter 16 a prescaler with 10 ms resolution, counting from xx0/0/ to xx63.
Should you want to separate inputs and outputs, this can be done by setting full This may be used by the PLC, e.g. as a long period timer or as an alarm time
16 bit parameters as input or outputs. marker. In order to fine tune the counting speed which depends on the CPU
clock, the first half of the parameter 16 may be preset, preferably in EEPROM.
PLC Controlled Outputs A value between E0/xx and 1Fxx decreases/increases the speed up to -0,5%
compared with the default 0/0/xx. Note that the xtal still varies a little with
Any output can be controlled either by the internal PLC program execution or temperature etc. The exact time should be preset from a central from time to
by a communication from the central computer. To avoid confusion the PLC is time to maintain accuracy.
given precedence and four parameters, 1C - 1F, indicate which outputs are
reserved for the PLC. Communication checks these registers before changing
an output. These lockout parameters can of course be modified from the central
and are by default cleared to 0/0/0/0/. When a PLC program is designed, the
proper bits in these registers should be set in EEPROM.
Note that the last eight bits in parameter 1F are set automatically when the PLC
runs an instruction that modifies Q8 - Q1, the least significant output bits.
S27 64 DI / DO Module page 13 S27 64 DI / DO Module page 14
The S27 contains two types of memory: RAM for temporary storage for as long 0/0/ 8xxx Enable write to all parameters.
as the module is connected to a power supply, and EEPROM for long-term
storage of working modes, parameters and initialization values after a power 4xxx Inhibit String Text Mode, where the PLC can submit text
disconnect. At power-up, the EEPROM variables are automatically copied to answers, making it equal to String Setup Mode.
the RAM, and the information is used to control the module. All EEPROM setup
values may be copied again if data = FFFF is written to the first parameter 2xxx Inhibit Data Mode to prevent output changes due to com-
(number 0/0/). This initiates a full soft reset, using previous EEPROM value for munication noise.
this parameter.
1xxx Enable Double Data Mode, 2 data characters expected
By using String Mode commands, any variable may be read or modified at any in Data Mode, permitting 1025 different analogue output
time, either temporarily in RAM or permanently in EEPROM. In the latter case, levels instead of just 128 in single Data Mode.
the corresponding RAM cell is modified as well. Information in controlling
parameters immediately affect the function of the module. xNxx Bit rate, must be set in EEPROM and followed by a reset
to have effect.
As a general rule, features are typically active when a parameter is set to a
non-zero value. When in doubt about a function, the parameter can therefore N=3= 300 bits/s
safely be set to 0/0/0/0/. N=4= 600 bits/s
N=5= 1200 bits/s
Parameter Description Summary N=6= 2400 bits/s
N=7= 4800 bits/s
Parameter Factory Function N=8= 9600 bits/s
Address Default N=9= 19200 bits/s
0/0/ 0/70/1 Control bits and bit rate xxxN Number of permitted addresses in DataMode. In this
0/1 0/10/0/ Address and control bits module N may be 1 to 8 in Single Byte DataMode and 1
0/2 0/0/0/0/ Customer options to 4 in Double Byte DataMode.
0/3 0/0/0/0/ Time-out and debounce time
0/4-0/7 0/0/0/0/ Output Enable bits xx0/1-xx0/8 Number of Addresses accepted in Data Mode.
0/8-0/B 0/0/0/0/ Output Control / Input Status bits
0/C-0/F 0/0/0/0/ Input Inversion Enable bits FFFF The module is restarted by writing hex FFFF.
10/ 0/0/0/0/ Output Current Limit/Inputs' Threshold Level
11 0/0/0/0/ PLC program counter 0/1 NNxx 0/1 - 3F = first address of module. The seven highest
12 0/0/0/0/ PLC time-base and run flags addresses limit the maximum number of Data Mode
13 0/0/0/0/ PLC status flags addresses.
14 0/0/0/0/ PLC 16 bit V accumulator
15 0/0/0/0/ PLC 16 bit T timer 8xxx Master Flag. Set by the PLC program when the S27 is to
16 0/0/0/0/ RealTimeClock adjustment and 10 ms count start communications on its own.
17 0/0/0/0/ RealTimeClock seconds counter
18-1B 0/0/0/0/ Inputs' Edge-trig Enable / Short-c Outputs xx8x Spy Inhibit Flag. Spy area will be free for general use.
1C-1F 0/0/0/0/ PLC Controlled Outputs mask
20/-3F 0/0/0/0/ Free for PLC data (byte addresses 40/ - 7F). xxx2 Double Communications. When set, two identical
40/-7F 0/0/0/0/ Spy/Master Mode communication configuration or for communications are required to control outputs in Data
PLC use (byte addresses 80/ - FF). Mode.
80/-3FF 0/0/0/0/ PLC program/Logging area (byte addresses 10/0/ -
7FF), refer to PLC manual.
Detailed Parameter Description
S27 64 DI / DO Module page 15 S27 64 DI / DO Module page 16
0/2 XXXX Options for customer specific functions. 10/ xLxx Digital Outputs Current Limit (factory set).
xxTH Threshold Level for all inputs:
0/3 TTxx Time-out before clearing outputs if communication stops: 0/0/ = half supply voltage (default).
TT = 0/0/ = no time-out. 0/1-7F = 1/128 - 127/128 of supply voltage.
TT = 0/1 to FF = time-out (250ms - 65s) in 250 ms steps. 80/ = TTL level (1,4 V).
81-FF = 0,25 - 32 V fixed voltage.
xxDD Inputs debounce time: Note: this parameter is write-protected thru the 8xxx bit
DD = 0/0/ = no debounce, i.e. 1 ms. in parameter 0/. The Digital Outputs Current Limit value
DD = 0/1 to FF = debounce in 4 ms steps. must be preserved, otherwise the outputs drive capability
can be lost.
0/4 XXXX Enable Output bits for I/O pins 64-49. When a bit is 0, the
output transistor cannot be turned ON and the input 11 xxPC 0/0/ - FF = PLC program counter.
status is shown in the corresponding bit in parameter 0/8.
When a bit is 1, setting the corresponding bit in 12 TTxx 0/0/ - FF = PLC timer tick size
parameter 0/8 activates the output transistor and shows 0/0/ = 1/16 s (default)
any short-circuit condition in parameter 18. 0/1 - FF = TT/1024 s
40/ gives the same time as 0/0/
0/5 XXXX Enable Output bits for I/O pins 48-33. xx2x Single Stepping of an instruction has been performed.
xx1x Single Step a PLC instruction.
0/6 XXXX Enable Output bits for I/O pins 32-17. 0 = continuous run.
1 = perform single step, cleared automatically.
xxx1-xxx8 PLC Task 1-8 running.
0/7 XXXX Enable Output bits for I/O pins 16-1.
0 = PLC stopped.
0/8 XXXX Output Activation / Input Status for I/O 64-49. 13 x8xx When set, it clears the PLC edge inputs register without
affecting the edges communicated to the central. The flag
0/9 XXXX Output Activation / Input Status for I/O 48-33. is cleared automatically.
x4xx Outputs Watchdog flag.
0/A XXXX Output Activation / Input Status for I/O 32-17. 0 = watchdog not triggered.
1 = watchdog triggered.
0/B XXXX Output Activation / Input Status for I/O 16-1. x1xx Valid communication with module occurred.
xx2x PLC overflow flag L.
0/C IIII Input Inversion Enable bits for Inputs 64-49: xx1x PLC carry flag C.
0 = no input data inversion. xxx1 PLC bit accumulator A.
1 = invert input data.
0/D IIII Input Inversion Enable bits for Inputs 48-33.
14 VVVV 80/0/0/ - 7FFF = -32768 - +32767
16 bit PLC integer accumulator V.
0/E IIII Input Inversion Enable bits for Inputs 32-17.
15 TTTT 0/0/0/0/ - FFFF = PLC timer T. Tick rate is defined in
0/F IIII Input Inversion Enable bits for Inputs 16-1.
parameter 12.
S27 64 DI / DO Module page 17 S27 64 DI / DO Module page 18
17 XXXX RTC seconds counter, 16 bits, max 65535 s. Power Supply Current
(Outputs on, no load) 60 80 100 mA
1D XXXX PLC Controlled Outputs; DO pins 48-33. Operating Temperature Range 0 +55 *C
For further information about the PLC, Spy and Master Modes, please refer to
the "SIOX PROGRAMMABLE CONTROLLER" manual.
*
Electrical Specifications (Tamb = 20 C)
Min Typ Max Unit