TelePACE Ladder Logic Reference
TelePACE Ladder Logic Reference
TelePACE Ladder Logic Reference
+ + + + =
2 1 1 1
2
n n n n
i
n n n n
p p p
T
R
e
T
T
e e K m m
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
303
Setpoint
The setpoint is a floating-point value representing the desired value of the process value. The error
value is the difference between the process value and the setpoint.
error = process value setpoint (+/- deadband).
Process Value
The process value is a value that represents the actual state of the process being controlled. See the
Function Variables section above for the registers to use for the process value input to the PIDD.
Gain
The proportional (P) part of the PID algorithm is the gain. A positive value of gain configures a
forward-acting PID controller and a negative value of gain configures a reverse acting controller.
Reset Time
The integral (I) part of the PID algorithm is the reset time. This value, in seconds, controls the reset
gain (or magnitude of integral action) in a PI or PID controller. This is typically referred to as
Seconds Per Repeat. From the equation above it is seen that the integral action of the PI or PID
controller is a function of the reset time and the execution period (cycle time). A smaller reset time
provides more integral action and a larger reset time provides less integral action. Valid range is any
value greater than 0. A value of 0 disables the reset action.
Rate Gain
The derivative (D) part of the PID algorithm is the rate time. This value, in seconds, controls the
rate gain (or magnitude of derivative action) in a PD or PID controller. From the equation above it is
seen that the derivative action of the PD or PID controller is a function of the rate gain and the
execution period (cycle time). A larger rate gain provides more derivative action and a smaller rate
gain provides less derivative action. Valid range is any value greater than 0. A value of 0 disables the
rate action.
Deadband
The deadband parameter is used by the PID algorithm to determine if the process requires the
control outputs to be changed. If the absolute value of the error is less than the deadband, then the
function block skips execution of the control algorithm. This prevents changes to the output when
the process value is near the setpoint and can reduce wear on the control elements. Valid range is any
value greater than 0.The setpoint is a floating-point value representing the desired value of the
process value.
Full
The full setting is used in limiting the maximum output value of the PIDA function. If the PID
algorithm calculates an output quantity that is greater than the value stored in full, the output
quantity is set equal to the value stored in full. The full setting should always be greater than the
zero setting.
Zero
The zero setting is used in limiting the minimum output value of the PIDA function. If the PID
algorithm calculates an output quantity that is less than the value stored in zero, the output quantity
is set equal to the value stored in zero. The zero setting should always be less than the full setting.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
304
Cycle Time
The cycle time is the floating-point value of the PID algorithm execution period measured in
seconds. Any value greater than or equal to 0.001 seconds (1 ms) may be specified. If the cycle time
specified is less than the scan time of the TelePACE program, the program scan time becomes the
PID cycle time.
Manual Mode
The manual mode output is the value that the output is set to when the PIDA function is in manual
mode.
Related Functions
PIDD Digital Output PID
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
305
5.53 PIDD Digital Output PID
Description
The PIDD function performs a PID velocity algorithm (see description below) and operates two
discrete outputs to maintain PID control.
The output of the PIDD is the output percent value output%. The output% is a duty cycle of the
cycle time as defined by the zero% and full% parameters.
The increase output is cycled when the output% is greater than zero. The decrease output is cycled
when the output% is less than zero.
When the enable PIDD input is ON, the function executes the PID algorithm. Execution of the PID
algorithm is stopped when the enable PIDD is OFF.
When the auto/manual mode input is ON, the PID is placed in automatic mode. In automatic mode
the output is calculated using the PID algorithm. A new calculation is done at the rate specified by
cycle time.
When the auto/manual mode input is OFF, the PID is placed in manual mode. In manual mode the
output% is set to the value specified by manual output%. The output is limited to the range set by
full% and zero%.
Function Variables
Variable Valid Types Description
settings holding register (4xxxx)
Address of the first register in the settings
control block. There are 21 registers in the
block at addresses settings+0 to settings+20.
+0,1 = process value (float)
+2,3 = setpoint (float)
+4,5 = gain (float)
+6,7 = reset time in seconds (float)
+8,9 = rate time in seconds (float)
+10,11 = deadband (float)
+12,13 = full% (float)
+14,15 = zero% (float)
+16,17 = cycle time in seconds (float)
+18,19 = manual mode output% (float)
+20 = motor output enabled
output% holding register (4xxxx) +0,1 = PID output % (float)
+2,3 = internal: process value N-1
st
(float)
settings
PIDD
output%
ON = enable PIDD
ON = decrease; output% < 0
ON = increase; output% > 0
ON = auto mode
OFF = manual mode
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
306
Variable Valid Types Description
+4,5 = internal: process value N-2
nd
(float)
+6,7 = internal: error N-1
st
(float)
+8,9 = internal: time of last scan (UINT32)
+10,11 = internal: on time for controller
(UINT32)
The process value is a value that represents the actual state of the process being controlled. This
value is typically input to the controller as an analog input signal or as a signal from a MVT. The
process value is a floating-point number. If the process value is an analog input signal to the
controller it must be converted to a floating-point number using the STOF function. If the analog
input requires scaling use the SCAL function to scale the input and provide a floating-point number
for the process value.
The remaining settings and output% registers are described in the Element Configuration section
below.
Element Configuration
This element is configured using the PIDD Element Configuration dialog. Highlight the
element by moving the cursor over the element and then use the Element Configuration
command on the Edit menu to modify the configuration block.
PID Velocity Algorithm
The PIDD function uses the velocity form of the PID algorithm. The velocity form calculates the
change in the output and adds it to the previous output.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
307
Where: e = error
s = setpoint
p = process value
K = gain
T = execution period
T
i
= integral or reset time
R = rate gain
m = output
The Element Configuration dialog is used to input each parameter into the calculation. These
parameters are described below.
Setpoint
The setpoint is a floating-point value representing the desired value of the process value. The error
value is the difference between the process value and the setpoint.
error = process value setpoint (+/- deadband).
Process Value
The process value is a value that represents the actual state of the process being controlled. See the
Function Variables section above for the registers to use for the process value input to the PIDD.
Gain
The proportional (P) part of the PID algorithm is the gain. A positive value of gain configures a
forward-acting PID controller and a negative value of gain configures a reverse acting controller.
Reset Time
The integral (I) part of the PID algorithm is the reset time. This value, in seconds, controls the reset
gain (or magnitude of integral action) in a PI or PID controller. This is typically referred to as
Seconds Per Repeat. From the equation above it is seen that the integral action of the PI or PID
controller is a function of the reset time and the execution period (cycle time). A smaller reset time
provides more integral action and a larger reset time provides less integral action. Valid range is any
value greater than 0. A value of 0 disables the reset action.
Rate Gain
The derivative (D) part of the PID algorithm is the rate time. This value, in seconds, controls the
rate gain (or magnitude of derivative action) in a PD or PID controller. From the equation above it is
seen that the derivative action of the PD or PID controller is a function of the rate gain and the
execution period (cycle time). A larger rate gain provides more derivative action and a smaller rate
gain provides less derivative action. Valid range is any value greater than 0. A value of 0 disables the
rate action.
n n n
p s e =
( )
(
+ + + + =
2 1 1 1
2
n n n n
i
n n n n
p p p
T
R
e
T
T
e e K m m
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
308
Deadband
The deadband parameter is used by the PID algorithm to determine if the process requires the
control outputs to be changed. If the absolute value of the error is less than the deadband, then the
function block skips execution of the control algorithm. This prevents changes to the output when
the process value is near the setpoint and can reduce wear on the control elements. Valid range is any
value greater than 0.
Full Scale Output
The full% setting is the full-scale output limit in percent of cycle time. For example if the cycle time
is 10 seconds and the full% value is 100 then the maximum duty cycle of the output% is 100 percent
or 10 seconds.
When the zero% value is 0 or greater then the increase output is turned on for the duty cycle of the
output%. When the zero% value is less than zero the decrease output is turned on for the duty cycle
of the output% when the output% is negative.
Zero Scale Output
The zero% setting is the zero scale output limit in percent of cycle time. When the zero% value is 0
or greater then the increase output is turned on for the duty cycle of the output%. When the zero%
value is less than zero the decrease output is turned on for the duty cycle of the output% when the
output% is negative.
Cycle Time
The cycle time is the floating-point value of the PID algorithm execution period measured in
seconds. Any value greater than or equal to 0.001 seconds (1 ms) may be specified. If the cycle time
specified is less than the scan time of the TelePACE program, the program scan time becomes the
PID cycle time.
Manual Mode Output
The manual mode output% is the value that the output% is set to when the PIDD function is in
manual mode.
Motor Output
When the motor output is set to enabled the increase and decrease outputs are de-energized when
error is within the deadband. When the motor output is set to disabled the increase and decrease
outputs operate continuously based on the output%.
Related Functions
PIDA Analog Output PID
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
309
5.54 POWR Floating-Point Raised to Power
Description
The POWR function calculates the result of a value raised to an exponent and stores the result in a
floating-point holding register.
When the enable input is ON, value is raised to the exponent and stored in the result floating-point
register.
The top output is ON when the input is.
The out-of-range output is ON if the value is zero and exponent is less than zero; and if value is
negative. The result is not calculated in these cases.
Function Variables
Variable Valid Types Description
Value Floating Point Constant
2 input registers (3xxxx)
2 holding register (4xxxx)
Floating Point value to be raised.
The high order word is stored in the
first register.
Exponent Floating Point Constant
2 input registers (3xxxx)
2 holding register (4xxxx)
Floating Point value to raise value
to.
The high order word is stored in the
first register.
Result 2 holding register (4xxxx) result = value
exponent
The high order word is stored in the
first register.
Notes
Floating-point values are stored in two consecutive I/O database registers. The lower numbered
register contains the upper 16 bits of the number. The higher numbered register contains the lower 16
bits of the number.
The calculation is performed using a single-precision floating-point number.
Floating point numbers can represent positive or negative values in the range 3.402 10
38
to 3.402
10
38
.
Related Functions
ABSF - Floating-Point Absolute Value
value
POWR
result
exponent
ON = enable copies status of input 1
ON = out of range
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
310
ADDF - Add Floating-Point Values
DIVF - Divide Floating-Point Values
MULF - Multiply Floating-Point Values
SQRF - Square Root of Floating-Point Value
SUBF Subtract Floating-Point Values
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
311
5.55 PULM - Pulse Minutes
Description
The PULM function controls a square wave digital signal.
While the enable is ON, the output signal will be active ON or OFF based on the period. The output
is powered only when the enable input is ON.
For example when the enable input is on and a period of 10 minutes is used the result will be an
output square wave that is ON for 5 minutes and then OFF for 5 minutes.
Function Variables
Variable Valid Types Description
Period Constant (1..65535)
input register (3xxxx)
holding register (4xxxx)
The period of the waveform, in
minutes.
Counter 2 holding registers (4xxxx) Contains the accumulated time of
the period in seconds.
Notes
The Period is from 1 to 65535 minutes.
Related Functions
PULS - Pulse Seconds
Example
In this example the PULM function has a period value of 10 minutes. Coil 01057 will be on for 5
minutes and then off for 5 minutes. When the program is first run coil 01057 will start in on state for
5 minutes then go off for 5 minutes, repeating this cycle as long as the enable input is true. Registers
46770 and 46771 contain the accumulated time for the period in seconds.
period
PULM
counter
ON = enable Output signal
network 1:
+10
PULM
46770
0
01057
) (
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
312
5.56 PULS - Pulse Seconds
Description
The PULS function controls a square wave digital signal.
While the enable is ON, the output signal will be active ON or OFF based on the period. The output
is powered only when the enable input is ON.
For example when the enable input is on and a period of 10 seconds is used the result will be an
output square wave that is ON for 5 seconds and then OFF for 5 seconds.
Function Variables
Variable Valid Types Description
Period Constant (1..65535)
input register (3xxxx)
holding register (4xxxx)
The period of the waveform, in
seconds.
Counter 2 holding registers (4xxxx) Contains the accumulated time of
the period in tenths of seconds.
Notes
The Period is from 1 to 65535 seconds. The smallest actual period will depend on the ladder scan
time. Smaller ladder programs will be able to handle smaller periods.
Related Functions
Timers
Example
In this example the PULM function has a period value of 10 seconds. Coil 01057 will be on for 5
seconds and then off for 5 seconds. When the program is first run coil 01057 will start in on state for
5 seconds then go off for 5 minutes, repeating this cycle as long as the enable input is true. Registers
46770 and 46771 contain the accumulated time for the period in seconds.
period
PULS
counter
ON = enable Output signal
network 1:
+10
PULS
45660
0
01057
) (
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
313
5.57 PUTB Put Bit into Block
Description
The PUTB function block writes the status of a bit, at the bit index, into the destination block of
registers.
The enable PUTB input must be energized for a PUTB function to execute.
The bit to put into block input is the bit value that will be written into the destination register at the
location of the bit index when enable PUTB is energized.
The increment bit index input increments the index, once each scan, when enable PUTB is
energized.
Function Variables
Variable Valid Types Description
bit index Constant (0..65535)
Holding register (4xxxx)
The index of the bit within the
destination block. A bit index of 0 is
the most significant bit of the first
register of the destination block.
Destination coil block (0xxxx)
holding register (4xxxx)
The address of the destination
register block.
The address for a coil register block
is the first register in a group of 16
registers.
Size Constant (1..100) number of 16 bit words in the block.
Notes
Put bit into block accesses 16 bit words. Coil blocks are groups of 16 registers that start with the
register specified as the block address. Coil blocks must begin at the start of a 16 bit word within the
controller memory. Suitable addresses are 00001, 00017, 00033, etc.
Related Functions
GETB Get Bit from Block
ROTB Rotate Bits in Block
CMPB Compare Bit
bit index
PUTB
size
destination
ON = enable PUTB
ON = increment bit index
copies state of input 2 bit to put into block
copies state of input 1
ON if index > size
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
314
Example
In network 1 the PUTB function is being used to set the manual control bit in the PID Block 0
Control Register, bit 13 of register 40234. The bit index of the manual control bit is 2, with 0 being
the most significant bit.
Closing contacts 01056 allows power to be supplied to the enable PUTB input of the PUTB function
block. With the function block enabled, closing contacts 01057 allows power to the put bit into
block input of the function block. The bit at the index is then set in the destination register, the PID
Block 0 Control Register. Output coil 03841 is energized.
01056
+2
40234
PUTB
+1
03841
) (
01057
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
315
5.58 PUT Put Signed Value into Registers
Description
The PUT function transfers, in one scan, the source holding register or signed constant into the
destination holding registers. The number of destination registers is determined by size. The same
value is stored in each destination register.
The source register, or signed constant, is transferred to the destination holding register when enable
transfer is ON.
If the source is a register, this function is identical to the PUTU function.
Function Variables
Variable Valid Types Description
source Constant
(-32768..32767)
input register (3xxxx)
holding register (4xxxx)
The signed value or address of the
register containing the value to be
stored.
destination Holding register (4xxxx) The address of the first destination
register.
Size Constant
(1..9999)
The number of destination registers.
Related Functions
PUTU Put Unsigned Value into Registers
PUTF - Put Floating-Point Value
source
PUT
size
destination
ON = enable transfer copies state of input1
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
316
Example
In this example there are three PUT functions in network 1. On power up One Shot coil 01025 is
energized for one scan. This will cause NO contacts 01025 to close, applying power to the enable
transfer input on PUT functions 1,2 and 3.
In PUT 1 the constant value -18 is transferred to holding register 44513.
In PUT 2 the value of holding register 42526 (1000) is transferred to holding registers 49483 through
49485.
In PUT 3 the constant value 0 is transferred to holding registers 44260 through 44267.
01025
) (
network 1:
-18
44513
PUT
+1
42526
49483
PUT
+3
0
44260
PUT
+8
01025
1 2
3
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
317
5.59 PUTF - Put Floating-Point Value
Description
The PUTF element transfers, in one scan, the source floating-point holding register or constant into
the destination floating-point holding registers. The number of floating-point destination registers is
determined by size. The same value is stored in each floating-point register pair.
When the enable input is ON, the source register or constant is transferred to the destination
registers. The element output is ON when the input is.
Function Variables
The element has three parameters.
Variable Valid Types Description
source FP constant
2 input registers (3xxxx)
2 holding registers (4xxxx)
Floating-point register or
constant to be stored
Destination Holding register (4xxxx) Address of the first pair of
destination registers
Size Constant (14999) the number of floating-point
destination registers pairs to
store
Notes
Floating-point values are stored in two consecutive I/O database registers. The lower numbered
register contains the upper 16 bits of the number. The higher numbered register contains the lower 16
bits of the number. Floating point numbers can represent positive and negative values in the range
3.402 10
38
to 3.402 10
38
.
The size parameter determines the number of floating-point register pairs affected. The number of
registers affected is twice the value of size, since each floating-point value uses two registers.
Related Functions
PUT Put Signed Value into Registers
PUTU Put Unsigned Value into Registers
source
PUTF
size
destination
ON = enable copies status of input
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
318
Example
The PUTF function in network 1 puts the floating-point constant +44.10 value into floating-point
register 40100 (registers 40100 and 40101).
network 1:
+44.10
40100
PUTF
+1
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
319
5.60 PUTU Put Unsigned Value into Registers
Description
The PUTU function transfers, in one scan, the source holding register or unsigned constant into the
destination holding registers. The number of destination registers is determined by size. The same
value is stored in each destination register.
The source register, or unsigned constant, is transferred to the destination holding register when
enable transfer is ON.
If the source is a register, this function is identical to the PUT function.
Function Variables
Variable Valid Types Description
source Constant (0..65535)
input register (3xxxx)
holding register (4xxxx)
The unsigned value or address of
the register containing the value to
be stored.
Destination Holding register (4xxxx) The address of the first destination
register.
Size Constant (1..9999) The number of destination registers.
Related Functions
PUT Put Signed Value into Registers
PUTF - Put Floating-Point Value
source
PUTU
size
destination
ON = enable transfer copies state of input1
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
320
Example
This example uses two PUTU functions to write the correct time to the Real Time Clock. The time
for this example is 14:30:00.
The holding registers used to in this example must be assigned to the CNFG Real Time Clock and
Alarm I/O Module in the Register Assignment. Holding registers 40210 through 40220 are assigned
to this I/O module.
On power up One Shot coil 01057 is energized for one scan. This will cause NO contacts 01057 to
close, applying power to the enable transfer inputs on the two PUTU functions.
The real time clock continues to run with the new time setting immediately after these PUTU
functions are enabled. Note that all seven clock registers must be set to valid values for the clock to
operate correctly.
Another method for setting the clock, is to use the Edit/Force Register dialog to write the current
time to the appropriate module registers. Leave the force box in the dialog unchecked so that the data
is only written, not forced.
01057
) (
network 1:
01057
14
40210
PUTU
+1
30
40211
3
PUTU
+1
0
40212
3
PUTU
+1
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
321
5.61 R>L Register to List Transfer
Description
The R->L function transfers the contents of the source register into a register in the destination list of
registers indicated by the index.
When the enable transfer input is ON and the index equals size output is OFF, the source register is
transferred to the destination list register at the position of the index.
The freeze/increment index input allows control of the index. If this input is ON the index is not
incremented. If the input is OFF the index is incremented by one after each transfer.
When the reset index input is ON the index is reset to zero.
The index is incremented by one on each transfer until the index equals size. When the index equals
size output is ON no further increments of the index value occur until the index is reset.
Function Variables
Variable Valid Types Description
source coil block (0xxxx)
status block (1xxxx)
input register (3xxxx)
holding register (4xxxx)
The address of the source register.
The address for a coil or status
register block is the first register in a
group of 16 registers that will be
read.
index and
destination
Holding register (4xxxx)
The address of the index register
and the data registers. The index is
stored in register [4xxxx]. The data
is stored in register [4xxxx+1] to
register [4xxxx+size]
Size Constant (1..9999) The number of registers in the list.
Related Functions
L>L List to List Transfer
L>R List to Register Transfer
MOVE Move Block
source
R->L
size
list
ON = enable transfer
ON = reset index to 0
ON if index = size
and enable transfer = ON
ON = freeze index
OFF = increment index
copies state of input 1
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
322
Example
The Register to List function transfers the contents of the source register 42010 into a register in the
destination list of registers, 42012 to 42015, indicated by the index register 42011.
Destination Register List
List Index--> 42011
Source Register-> 42010 list register 0--> 42012
list register 1--> 42013
list register 2--> 42014
list register 3--> 42015
An example of the registers used in a Register to List (R->L) transfer is shown in the above diagram.
The source register is a general purpose analog output register. The index is a general purpose analog
output register that will have a value of 0, 1, 2 or 3. The destination register list starts at the next
sequential register after the index register. The destination list contains four general purpose analog
output registers and has a size of 4.
When list index register 42011 has a value of 0 and the R->L function is enabled the contents of
source register 42010 is transferred to destination list register 40012.
When list index register 42011 has a value of 1 and the R->L function is enabled the contents of
source register 42010 is transferred to destination list register 42013.
When list index register 42011 has a value of 2 and the R->L function is enabled the contents of
source register 42010 is transferred to destination list register 42014.
When list index register 42011 has a value of 3 and the R->L function is enabled the contents of
source register 42010 is transferred to destination register 42015.
42010
42011
R->L
+4
01386
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
323
5.62 ROTB Rotate Bits in Block
Description
The ROTB function block rotates the bits in the source block by one bit and stores the result in the
destination block. The block can be rotated towards either the most significant bit (MSB) or
towards the least significant bit (LSB).
Function Variables
Variable Valid Types Description
Source coil block (0xxxx)
status block (1xxxx)
input register (3xxxx)
holding register (4xxxx)
The address of the first source
register.
The address for a coil or status
register block is the first register in a
group of 16 registers that will be
rotated.
Destination coil block (0xxxx)
holding register (4xxxx)
The address of the first destination
register.
The address for a coil or status
register block is the first register in a
group of 16 registers that will be
rotated.
Size Constant (1..100) The number of 16 bit words in the
block.
Related Functions
PUTB Put Bit into Block
GETB Get Bit from Block
CMPB Compare Bit
source
ROTB
size
destination
ON = rotate bits
ON = rotate last bit into start
state of the last bit shifted
out
ON = rotate toward MSB
OFF = rotate towards LSB
copies status of input 1
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
324
Example
The ROTB function in network 1 is configured to demonstrate the operation of the function block.
Register 40221, the source register, has a value of 6985. Register 40222 is the destination register.
The first example is a rotate towards LSB. Closing the rotate bits input, contacts 10010, will cause
the bits in the source register to rotate right by one bit and the result to be stored in the destination
register.
The next example is a rotate towards MSB. Closing the rotate towards MSB input, contacts 10009
and then closing the rotate bits input, contacts 10010, will cause the bits in the source register to
rotate once to the left. The result is stored in the destination register.
In the last example the rotate bits input is enabled by closing contact 10010. Closing contacts 10011
will enable the rotate last bit to start input. The LSB of the source register is rotated to the MSB
and the remaining bits are rotated right.
network 1:
10010
40221
42222
ROTB
B
+1
00017
) (
10009
10011
1 0 0 0 1 1 0 1 0 0 1 0 1 0 0 1 source register
0 0 0 0 1 0 1 1 0 1 0 1 0 0 1 0 destination register
Rotate towards LSB
1 0 0 0 1 1 0 1 0 0 1 0 1 0 0 1 source register
1 1 0 0 0 1 1 0 1 0 0 1 0 1 0 0 destination register
Rotate towards MSB
1 0 0 0 1 1 0 1 0 0 1 0 1 0 0 1
source register
0 0 0 1 1 0 1 1 0 1 0 1 0 0 1 0 destination register
Rotate last bit into start
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
325
5.63 SCAL Scale Analog Value
Description
The SCAL function scales an integer into a floating-point value and detects changes in the floating-
point value.
When the Enable input is ON the SCAL function calculates the scaled value.
When the Enable input is ON the scaled value is compared to the previous scaled value. If the
difference is greater than the deadband the scaled value changed output is turned ON and the scaled
value is copied to the previous scaled value. The previous scaled value does not change if scaled
value is within the deadband.
When the Enable input changes from OFF to ON, the scaled value is copied to previous scaled
value.
Function Variables
Variable Valid Types Description
config holding register (4xxxx)
Address of the first register in the configuration
block. There are 9 registers in the block at
addresses message+0 to message+8.
+0 = input register
+1 = zero scale raw input
+2 = full scale raw input
+3-4 = zero scale output (floating point)
+5-6 = full scale output (floating point)
+7-8 = deadband (floating point)
scaled
value
4 holding registers (4xxxx) Address of the first register in the output block.
There are 4 registers in the block at addresses
output+0 to output+3
+0-1: scaled value (floating point)
+2-3: previous scaled value (floating point)
Element Configuration
This element is configured using the SCAL Element Configuration dialog. Highlight the element by
moving the cursor over the element and then use the Element Configuration command on the Edit
menu to modify the configuration block.
WARNING: If the controller is initialized, using the Initialize command in the Controller menu,
all I/O database registers used for Element Configuration are set to zero. The
application program must be re-loaded to the controller.
config
SCAL
scaled value
ON = enable
ON = scaled value changed
copies status of input
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
326
The Input Register specifies the register from which the input is read. Valid values are any input
(3xxxx) or holding (4xxxx) register. The range depends upon the registers supported in the selected
controller type.
The Zero Scale Raw Input specifies the minimum raw input value. Valid values are -32768 to
32767. This value must be less than the full-scale raw input.
The Full Scale Raw Input specifies the maximum raw input value. Valid values are -32768 to
32767. This value must be greater than the zero scale raw input.
The Zero Scale Output is the floating-point value calculated when the input is equal to the zero
scale raw input. This value must be less than the full-scale output. Valid values are any floating-point
number.
The Full Scale Output is the floating-point value calculated when the input is equal to the full-scale
raw input. This value must be greater than the zero scale output. Valid values are any floating-point
number.
The Output Deadband is the amount by which the output must change for the scaled value
changed output to be energized. Valid values are any floating-point number greater than or equal to
0.0.
Notes
The input is scaled using this formula.
The previous scaled value changes only when difference between the current and previous values is
greater than the deadband. The scaled value changed output is energized when this occurs.
The input register may contain values less than the zero scale raw input or greater than the full-scale
raw input. The scaling calculation is still performed.
( ) output zero output zero output full
raw zero raw full
raw zero input
scaled _ _ _
_ _
_
+
=
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
327
Example
In this example a SCAL block is used to convert an analog input into engineering units and close a
contact each time a change of 10 units occurs.
The element configuration for the SCAL block is as follows
Parameter Value Notes
Input Register 30001 assign to analog input module in register
assignment
Zero Scale Raw Input 0 minimum value for unipolar analog input
Full Scale Raw Input 32767 maximum value for analog input
Zero Scale Output 0 corresponds to the minimum value of analog input
Full Scale Output 1000 corresponds to the maximum value of analog
input
Output Deadband 10 change in output to turn on change output
40020
SCAL
40030
00012
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
328
5.64 Shunts
Horizontal
The horizontal shunt conducts power from left to right.
Vertical
The vertical shunt conducts power between rows. If any of the rows connected by vertical shunts are
powered, all output rows will be powered, as shown in the example below.
input = ON output = ON
input = OFF output = ON
input output = input
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
329
5.65 SLP Put Controller into Sleep Mode
Description
The SLP function places the controller into sleep mode. Sleep mode reduces power consumption to a
minimum by halting the microprocessor clock and shutting down the power supply. All programs
halt until the controller resumes execution. All output points turn off while the controller is in sleep
mode.
This function is not supported in the SCADAPack 32, SCADAPack 100 or SCADASense Series
controllers.
Function Variables
Variable Valid Types Description
clock alarm
settings
holding register (4xxxx) Address of the first register in the clock alarm
settings block. There are 4 registers in the
block at addresses settings+0 to settings + 3
+0 = type
+1 = hour
+2 = minute
+3 = second
Valid values for type are
0 = no alarm
1 = absolute time alarm
2 = elapsed time alarm
wake src holding register (4xxxx) address of the wake up source register. This
register indicates the reason the controller left
sleep mode. Valid values are:
1 = real time clock alarm
2 = interrupt input
4 = led power switch
8 = counter 0 overflow
16 = counter 1 overflow
32 = counter 2 overflow
256 = Assertion of:
- digital input 0 for SCADAPack 350
- Any digital input on SCADAPack LP
- INT/Cntr digital Input on SCADAPack
with 5203/5204 controller board
Notes
The SCADAPack 32 and SCADAPack 100 controllers do not support the SLP function.
clock alarm
settings
SLP
wake src
ON = enter sleep mode copy of input 1
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
330
Note that this function block triggers the same interrupt as the CNFG Real Time Clock and Alarm
register assignment. Using both alarm settings, therefore, in the same program is not recommended.
The SCADAPack 330, SCADAPack 334 and SCADAPack 350 controllers will not go to sleep if the
USB peripheral port is connected to a host device such as a PC.
Element Configuration
This element is configured using the SLP Element Configuration dialog. Highlight the element by
moving the cursor over the element and then use the Element Configuration command on the Edit
menu to modify the configuration block.
WARNING: If the controller is initialized, using the Initialize command in the Controller menu,
all I/O database registers used for Element Configuration are set to zero. The
application program must be re-loaded to the controller.
Valid values for the time parameters are listed in the table below.
Alarm Type Parameter Range
Absolute Hours
Minutes
Seconds
0 to 23
0 to 59
0 to 59
Elapsed Hours
Minutes
Seconds
0 to 23
0 to 1439
0 to 65535
Total of all time must be less than 23 hours, 59 minutes, 59
seconds
The controller will wake up under the following conditions.
Condition Wake Up Effects
Hardware Reset Application programs execute from
start of program.
External Interrupt Program execution continues from
point sleep function was executed.
Real Time Clock
Alarm
Program execution continues from
point sleep function was executed.
LED Power Button Program execution continues from
point sleep function was executed.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
331
Condition Wake Up Effects
Hardware Counter
Rollover
Software portion of counter is
incremented.
Program execution continues from
point sleep function was executed.
Example
The following network will put the controller into sleep mode. The clock alarm is set to wake the
controller in 60 seconds. Other conditions may wake up the controller before the 60 seconds expires.
The Element Configuration dialog may be used to edit the configuration of the SLP block, instead
of PUTU functions. This reduces the memory used by the program. However, the alarm settings are
written to the controller only when the program is loaded. The network using the PUTU elements
configures the alarm settings on every execution of the SLP element.
network 1:
10001
42001
SLP
42100
network 1:
42001
PUTU
+2
+1
42002
PUTU
0
+1
42003
PUTU
0
+1
42004
PUTU
60
+1
42001
10001
SLP
42100
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
332
5.66 SQRF - Square Root of Floating-Point Value
Description
The SQRF element stores the square root of a floating-point register or constant in a floating-point
holding register.
When the enable input is ON the square root of the source is stored in the result floating-point
holding register. The top output is ON when the input is. The bottom output is ON if the source is
negative, and the input is ON.
Function Variables
The element has two parameters.
Variable Valid Types Description
source FP constant
2 input registers
(3xxxx)
2 holding registers (4xxxx)
a floating-point register or constant
result 2 holding registers (4xxxx) Floating-point square root of source
Notes
Floating-point values are stored in two consecutive I/O database registers. The lower numbered
register contains the upper 16 bits of the number. The higher numbered register contains the lower 16
bits of the number. Floating point numbers can represent positive or negative values in the range
3.402 10
38
to 3.402 10
38
.
The square root of a negative number cannot be calculated. The source must be positive or zero to
calculate a result..
Related Functions
DIV Divide Signed Values
DIVU Divide Unsigned Values
source
SQRF
result
ON = enable copies status of input
ON if source < 0
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
333
Example
The SQRF function in network 1 takes the square root of the floating-point constant +155.23 and
puts the result in floating-point register 40001 (registers 40001 and 40002). The value in 40001 is
=12.459.
network 1:
+155.230
SQRF
40001
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
334
5.67 STOF - Signed Integer to Floating-Point
Description
The STOF element converts a signed register or constant into a floating-point number and stores the
result in a floating-point holding register.
When the enable input is ON, value is converted into a floating-point number and stored in the
result floating-point register. The element output is ON when the input is.
Function Variables
The element has two parameters.
Variable Valid Types Description
Value Constant
(3276832767)
input register (3xxxx)
holding register (4xxxx)
Signed value to convert
Result 2 holding registers (4xxxx) Converted floating-point value
Notes
Floating-point values are stored in two consecutive I/O database registers. The lower numbered
register contains the upper 16 bits of the number. The higher numbered register contains the lower 16
bits of the number.
Floating point numbers can represent positive or negative values in the range 3.402 10
38
to 3.402
10
38
.
Related Functions
UTOF - Unsigned Integer to Floating-Point
FTOS - Floating-Point to Signed Integer
FTOU - Floating-Point to Unsigned Integer
value
STOF
result
ON = enable copies status of input
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
335
Example
The STOF function in network 1 converts signed integer constant -2445 to a floating-point value and
puts the value into floating point-register 40001 (registers 40001 and 40002). In this example the
content of floating-point register 40001 is the floating-point value 2445.00.
network 1:
-2445
STOF
40001
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
336
5.68 SUB Subtract Signed Values
Description
The SUB function block subtracts a signed register or constant, value 2, from a signed register or
constant, value 1, and stores the result in a holding register, result. Signed subtraction is used. The
result out of range output is enabled if the result is greater than 32767 or less than -32768.
Function Variables
Variable Valid Types Description
value 1 Constant
(-32768..32767)
input register (3xxxx)
holding register (4xxxx)
Signed value to subtract from
value 2 Constant
(-32768..32767)
input register (3xxxx)
holding register (4xxxx)
Signed value to subtract
Difference holding register (4xxxx) Difference = value 1 - value 2
Related Functions
SUBF Subtract Floating-Point Values
SUBU Subtract Unsigned Values
value 1
SUB
difference
value 2
ON = enable SUB
ON = result out of range
copies status of input1
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
337
Example
The SUB function in network 1 subtracts the contents of register 41824, value 2, from the contents
of register 41822, value 1. The difference is stored in register 41886. Some examples of different
values for registers 41822 and 41824 are shown in the table below.
Register
41822
Register
41824
Register
41886
Coil
02561
value 1 value 2 difference out of range
Example 1 -27765 -18755 -9010 OFF
Example 2 3276 -12269 15545 OFF
Example 3 -30000 27881 7655 ON
network 1:
41822
41886
SUB
41824 02561
) (
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
338
5.69 SUBF Subtract Floating-Point Values
Description
The SUBF element subtracts one floating-point register or constant from another and stores the result
in a floating-point holding register.
When the enable input is ON the difference value 1 value 2 is stored in the difference holding
register. The element output is ON when the input is.
Function Variables
The element has three parameters.
Variable Valid Types Description
value1 FP constant
2 input registers (3xxxx)
2 holding registers (4xxxx)
Floating-point register or constant to subtract
from
Value2 FP constant
2 input registers (3xxxx)
2 holding registers (4xxxx)
floating-point register or constant to subtract
Difference 2 holding registers (4xxxx) floating-point difference = value1 value2
Notes
Floating-point values are stored in two consecutive I/O database registers. The lower numbered
register contains the upper 16 bits of the number. The higher numbered register contains the lower 16
bits of the number.
Floating point numbers can represent positive or negative values in the range 3.402 10
38
to 3.402
10
38
.
Related Functions
SUB Subtract Signed Values
SUBU Subtract Unsigned Values
value1
SUBF
difference
value2
ON = enable copies status of input
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
339
Example
The SUBF function in network 1 subtracts floating-point constant +101.3 from floating-point
register 40001 (registers 40001 and 40002). Assuming floating-point register 40001 contains a value
of 1000.00 the result is +898.7. The result is stored in floating-point register 40100 (registers 40100
and 40101).
network 1:
+101.3
40001
SUBF
40100
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
340
5.70 SUBR - Start of Subroutine
Description
The SUBR element defines the start of a subroutine.
A subroutine is a group of logic networks that can be executed conditionally. The subroutine begins
with the network containing the SUBR element. A subroutine ends when another subroutine element
is encountered, or when the end of the ladder logic program is reached.
The element is a single cell element. Visually it covers the entire width of the first row of the
network.
Function Variables
The SUBR element has one parameter:
Variable Valid Types Description
number Constant The number of the subroutine. Any number in the range 1 to
500 is valid.
Notes
The SUBR element must be located in row 1, column 1 of a network.
No other element can be located to the right of the SUBR element.
Outputs of a subroutine remain in their last state when a subroutine is not called. For example, a coil
that is turned on by a subroutine remains on when the subroutine is not called. The output will only
turn off when the subroutine is called and it turns the output off.
The subroutine number is a constant. Constant tag names are used with this value.
The subroutine number must be unique. No other subroutine can use the same number.
Subroutines do not have to be programmed in any particular numerical order. For example,
subroutine 1 can follow subroutine 2, subroutine 200 can follow subroutine 400.
Related Functions
CALL - Execute Subroutine
Example
See the example for the CALL function.
number
SUBR
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
341
5.71 SUBU Subtract Unsigned Values
Description
The SUBU function block subtracts an unsigned register or constant, value 2, from an unsigned
register or constant, value 1, and stores the result in a holding register, difference. Unsigned
subtraction is used. The result out of range output is enabled if the result is greater than 65535 or
less than 0.
Variable Valid Types Description
value 1 Constant (0..65535)
input register (3xxxx)
holding register (4xxxx)
Unsigned value to subtract from
Value 2 Constant (0..65535)
input register (3xxxx)
holding register (4xxxx)
Unsigned value to subtract
Difference holding register (4xxxx) Difference = value 1 - value 2
Related Functions
SUB Subtract Signed Values
SUBF Subtract Floating-Point Values
value 1
SUBU
difference
value 2
ON = enable SUBU
ON = result out of range
copies status of input1
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
342
Example
The SUBU function in network 1 subtracts the contents of register 42992, value 2, from the contents
of register 49920, value 1. The difference is stored in register 44996. Some examples of different
values for registers 49920 and 42992 are shown in the table below.
Register
49920
Register
42992
Register
44996
Coil
02011
value 1 value 2 Difference out of range
Example 1 22675 1988 20687 OFF
Example 2 61223 2399 58824 OFF
Example 3 3877 54440 14973 ON
network 1:
49920
44996
SUBU
42992 02011
) (
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
343
5.72 Timers
Description
The three timer functions measure elapsed time and save it in a holding register, accumulator. The
T1 timer measures time in 1.0 second intervals. The T.1 timer measures time in 0.1 second intervals.
The T.01 timer measures time in 0.01 second intervals.
When the enable timer input is ON and the accumulate time is ON the accumulator increments by
the Timer interval to the value of the limit. When the enable timer is off the accumulator is reset to
zero.
When the enable timer is ON and the accumulator equals the limit then the accumulator = limit
output is On.
When the enable timer is ON and the accumulator is less than the limit then the accumulator <
limit output is On.
Variable Valid Types Description
Limit Constant (1..65535)
input register (3xxxx)
holding register (4xxxx)
Upper limit for accumulator
Accumulator Holding register (4xxxx) Register holds time during which
accumulate time input has been ON
Note
Timer functions are affected by the ladder logic scan time in that the Accumulator value is updated
only when the Timer function is scanned.
For the T1 timer the Accumulator value is updated when the function encounters a new second when
it is scanned, and not necessarily after exactly 1.000 seconds has elapsed. As a result when N
seconds have been set for the Accumulator Limit value the limit will be reached anywhere between
(N-1) and (N+ scan time) seconds.
For the T.1 timer the Accumulator value is updated when the function encounters a new second
when it is scanned, and not necessarily after exactly 0.1 seconds has elapsed. As a result when N
tenths of seconds have been set for the Accumulator Limit value the limit will be reached anywhere
between (N-1) and (N+ scan time) tenths of seconds.
For the T.01 timer the Accumulator value is updated when the function encounters a new second
when it is scanned, and not necessarily after exactly 0.01 seconds has elapsed. As a result when N
hundredths of seconds have been set for the Accumulator Limit value the limit will be reached
anywhere between (N-1) and (N+ scan time) hundredths of seconds.
limit
T1
accumulator
ON = accumulate time
ON = accumulator < limit ON = enable timer
OFF = reset timer to 0
ON = accumulator = limit
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
344
Example
In network 1 two Timer functions are configured such that output coil 00017 is ON for 1.0 second
(10 * 0.1) and OFF for 0.5 second (5 * 0.1).
When power is applied to the circuit by closing contacts 10009, output coil 00017 is OFF and Timer
41050 starts to accumulate time. When the accumulator reaches the limit of 5, output coil 00017
turns ON. Timer 41051 is enabled by the NO contacts of output coil 00017 and starts to accumulate
time. When the accumulator reaches the limit of 10, output coil 01257 turns ON and resets Timer
41050 by the NC contacts of 01257. Output coil 00017 turns OFF. The process is then repeated until
contacts 10009 are opened.
network 1:
10009
00017
) (
01257
) (
+10
T.1
41051
+5
T.1
41050
01257
00017
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
345
5.73 TOTL Analog Totalizer
Description
The TOTL function reads a rate input and accumulates (integrates) a total. It is used to measure a
flow rate and accumulate a volume, or a similar calculation.
When the Accumulate input is ON and it has been longer than the sample interval since the last
accumulation, the function reads the value of the input, scales it by time difference from the previous
accumulation, and adds it into the total.
When the Log Data input goes from OFF to ON, the accumulated total, accumulation time, and the
time at the end of the period is saved in the history registers. Older history is pushed down and the
oldest record is discarded.
When the Enable Accumulation input is ON, accumulation is enabled. When the input is OFF, all
accumulators and outputs are set to zero.
The Error output is ON if there is an error in the configuration registers.
Function Variables
Variable Valid Types Description
Config holding register (4xxxx)
Address of the first register in the configuration
block. There are 3 registers in the block at
addresses message+0 to message+2.
+0 = rate input register
+1 = input rate (see table below)
+2 = sample interval (tenths of seconds)
config
TOTL
records
outputs
ON = accumulate
ON = enable accumulation
OFF = clear outputs
ON = error OFF to ON = log data
copies state of input 1
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
346
Variable Valid Types Description
Outputs holding register (4xxxx) Address of the first register of the output block.
There are 10 to 214 registers in the block at
outputs+0 to outputs+213. The number of registers
used depends on the records variable.
+0 = number of records to follow
+1 = status
+2,3 = internal: time at last sample
+4,5 = period 1: total (float)
+6,7 = period 1: end time
+8,9 = period 1: accumulation time
+10,11= period 2: total (float)
+12,13 = period 2: end time
+14,15 = period 2: accumulation time
+16,17= period 3: total (float)
+18,19 = period 3: end time
+20,21 = period 3: accumulation time
+208,209 = period 35: total (float)
+210,211 = period 35: end time
+212,213 = period 35: accumulation time
Records Constant The number of measurement records stored in the
output array. The valid values are 1 to 35. This
value determines the number of output registers
used by the function.
Element Configuration
This element is configured using the TOTL Element Configuration dialog. Highlight the element by
moving the cursor over the element and then use the Element Configuration command on the Edit
menu to modify the configuration block.
WARNING: If the controller is initialized, using the Initialize command in the Controller menu,
all I/O database registers used for Element Configuration are set to zero. The
application program must be re-loaded to the controller.
The Input Register specifies the register address from which the rate input is read. Valid value for
this register is any floating point register. The function will use the specified register, and the next
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
347
sequential register, as a floating point rate value. The address range depends upon the registers
supported in the selected controller type.
The Rate Units specifies the units of time for the rate input. It may be one of the following.
per second (holding register = 0)
per minute (holding register = 1)
per hour (holding register = 2)
per day (holding register = 3)
The Sample Interval specifies the interval at which the rate input will be sampled. A sample is
taken and a calculation performed if the time since the last sample is greater than or equal to the
sample interval. The exact time depends on the scan time of the logic program. The valid values are
0.1 to 6553.5 seconds (1 to 65535 tenths of a second). The dialog shows the value in seconds; the
register contains an integer value in tenths of seconds.
Note: The period over which readings are taken will vary, but will stay in the range 1 *
(Expected Interval + Configured Sample Interval + Maximum time between ladder
logic scans) <= Actual Sampling Interval <= +1 * (Expected Interval + Configured
Sample Interval + Maximum time between ladder logic scans). As a result the total
for individual periods may fluctuate despite a constant input.
Output Registers
The output registers store the results of the accumulation and act as internal workspace for the
accumulation.
The Number of Records register indicates how many sets of total and time registers follow. This
value is equal to the Records variable. There are six registers in each record.
The status register indicates the status of the accumulation. It can have the following values. If the
status register is non-zero, the error output is turned ON.
Status Description
0 no error
1 invalid rate units configuration
2 invalid sample interval
The function block uses the two internal registers. The registers are not intended for use in a ladder
logic program.
The Period n: Total is stored as a floating-point number in two consecutive registers.
The Period n: End Time is stored as a 32-bit integer in two consecutive registers. The registers hold
the number of seconds since January 1, 1970. This is an unsigned number.
The Period n: Accumulation is stored as a 32-bit integer in two consecutive registers. The register
holds the number of seconds accumulation occurred in the period. This measures the time the
Accumulate input is ON, including times when the rate was zero.
Notes
The accumulated value is a floating-point number. All floating-point numbers are approximations. If
the accumulated value grows large, then low rate inputs will have little or no effect on the
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
348
accumulated value and the accumulated value will not be accurate. Use the Log Data input to save
the accumulated value and start a new accumulation when the accumulated value grows large.
The Log Data input must be triggered at a suitable rate or the accumulator will overflow, and the
accumulated value will not be accurate.
Related Functions
FLOW Flow Accumulator
Example
In this example a TOTL function is used to read a flow rate from an analog input and accumulate 14
days of data. The analog input measures a flow rate in gallons per minute.
The TOTL function in network 1 has the Accumulate and Enable Accumulation inputs connected
to the left power rail. When these inputs are continuously powered the TOTL function accumulates
totals.
The Records variable is set to 14. This means 14 sets of history registers (total, flow time and end of
period time) will be logged. In this example the accumulation input is never turned off meaning that
once 14 sets of history registers are saved the next time contact 10009 is closed the 14
th
record is
removed and the newest record is added to the history.
Each time contact 10009 is closed it powers the log data input. The accumulated total, accumulation
time and the time at the end of the period is saved in the history registers. The contact should be
closed by another network once per day for this example.
The element configuration for the TOTL block is as follows
Parameter Value Notes
Input Register 42000 The register that contains the rate input. This is a floating
point value contained in register 42000 and 42001.
Rate Units per
minute
The value in floating point register 42000 represents the
flow rate in units/minute
Sample Interval 10 sample, calculate, and accumulate approximately every
10.0 seconds
40001
TOTL
14
40100
10009
network 1
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
349
5.74 UCTR Up Counter
Description
The UCTR function block increments (adds one to) the value in the counter register when the
increment count input changes from OFF to ON. The counter stops counting when the limit register
or constant is reached.
When the counting enabled input is ON and the increment count changes from OFF to ON the
counter value increments by one. When the counting enabled input is OFF the counter is reset to
zero.
When the counting enabled input is ON and the counter equals the limit then the counter = limit
output is ON.
When the counting enabled input is ON and the counter is less than the limit then the counter <
limit output is ON.
Variable Valid Types Description
Limit constant (1..65535)
input register (3xxxx)
holding register (4xxxx)
Upper limit for counter
Counter holding register (4xxxx) Register holds current counter value
Related Functions
DCTR Down Counter
limit
UCTR
counter
OFF to ON = increment count
ON = counter < limit ON = counting enabled
OFF = reset counter to 0
ON = counter = limit
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
350
Example
The UCTR function in network 1 increments each time the timer output is enabled. The timer limit is
0.1 seconds and it will take 10 seconds for the UCTR to increment 100 times.
When the timer limit is reached after 0.1 seconds the output coil 01057 is energized. NC contact
01057 will open resetting the timer and NO contact 01057 will close incrementing the UCTR.
When the UCTR increments to 100 output coil 01058 is energized. NC contacts 01058 will open and
the UCTR will reset counter to zero. This will happen every 10 seconds.
network 1:
100
UCTR
45776
+1
T.1
46770
0
01057
) (
01057
01058
) (
01057
01058
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
351
5.75 UTOF - Unsigned Integer to Floating-Point
Description
The UTOF element converts an unsigned register or constant into a floating-point number and stores
the result in a floating-point holding register.
When the enable input is ON, value is converted into a floating-point number and stored in the
result floating-point register. The element output is ON when the input is.
Function Variables
The element has two parameters.
Variable Valid Types Description
value Constant (065535)
input register (3xxxx)
holding register (4xxxx)
Unsigned value to convert
result 2 holding registers (4xxxx) Converted floating-point value
Notes
Floating-point values are stored in two consecutive I/O database registers. The lower numbered
register contains the upper 16 bits of the number. The higher numbered register contains the lower 16
bits of the number.
Floating point numbers can represent positive or negative values in the range 3.402 10
38
to 3.402
10
38
.
Related Functions
STOF - Signed Integer to Floating-Point
FTOS - Floating-Point to Signed Integer
FTOU - Floating-Point to Unsigned Integer
value
UTOF
result
ON = enable copies status of input
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
352
Example
The UTOF function in network 1 converts unsigned constant +2233 to a floating-point number and
puts the value into register 40100. In this example the content of floating point-register 40100
(registers 40100 and 40101) is 2233.00.
network 1:
+2233
UTOF
40100
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
353
5.76 XOR Exclusive Or Block
Description
The XOR function block logically EXCLUSIVE-ORs the source block of registers with the
destination block of registers and stores the result in the destination block of registers.
Variable Valid Types Description
Source coil block (0xxxx)
status block (1xxxx)
input register (3xxxx)
holding register (4xxxx)
The first register in the first source block.
The address for a coil or status register block is
the first register in a group of 16 registers that
will be EXCLUSIVE-ORed.
Destination coil block (0xxxx)
holding register (4xxxx)
The first register in the second source block and
destination block.
The address for a coil register block is the first
register in a group of 16 registers that will be
EXCLUSIVE-ORed.
Size constant (1..100) The number of 16 bit words in the block.
Notes
Exclusive-or accesses 16 bit words. Coil and status register blocks are groups of 16 registers that
start with the register specified as the block address. A block size of 2 corresponds to 32 coils, or two
holding registers.
Coil and status register blocks must begin at the start of a 16 bit word within the controller memory.
Suitable addresses are 00001, 00017, 10001, 10033, etc.
Related Functions
AND And Block
NOT Not Block
OR Or Block
source
XOR
size
destination
ON = enable XOR copies status of input1
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
354
Example
In this example the source block has a value of 15213
10
(11101101101101). The destination register
has a value of 22379
10
(101011101101011) before the XOR function and a value of 27654
10
after the
XOR function.
network 1:
11000
01026
XOR
1
1 1 0 0 1 1 0 1 0 1 1 0 1 0 1 1
1 0 1 0 1 1 1 0 0 1 1 0 1 1 0 1
source register
destination register
before XOR
destination register
afterXOR
0 1 1 0 0 0 1 1 0 0 0 0 0 1 1 0
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
355
6 TelePACE Register Assignment Reference
A complete description of each I/O Module in the Register Assignment is presented in this reference.
The I/O modules are divided into classes that group similar modules together for ease of reference.
All I/O hardware that is used by the controller must be assigned to I/O database registers in order for
the I/O data to be used by the ladder program. Ladder logic programs may read data from, or write
data to the I/O hardware through user-assigned registers in the I/O database.
Register assignments are stored in the user configured Register Assignment and are downloaded with
the ladder logic application program.
The Register Assignment assigns I/O database registers to user-assigned registers using I/O Modules.
An I/O Module can refer to an actual I/O hardware module (e.g. 5401 Digital Input Module) or it
may refer to a set of controller parameters, such as serial port settings.
Analog Input (AIN)
These modules are used to assign data from physical analog inputs to input registers in the I/O
Database. The physical analog inputs are specific 5000 Series I/O modules, generic I/O modules, and
internal controller data such as RAM battery voltage and board temperature.
Note: To properly view analog input/output registers, the register type should be set to type signed.
Setting the register type to anything else may result in inaccurate readings being
displayed/written to these registers.
Analog Output (AOUT)
These modules are used to assign data from the I/O Database to physical analog outputs. The
physical analog outputs are specific 5000 Series I/O modules or generic I/O modules.
Note: To properly view analog input/output registers, the register type should be set to type signed.
Setting the register type to anything else may result in inaccurate readings being
displayed/written to these registers.
Digital Input (DIN)
These modules are used to assign data from physical digital inputs to input registers in the I/O
Database. The physical digital inputs are specific 5000 Series I/O modules, generic I/O modules, and
controller digital inputs.
Digital Output (DOUT)
These modules are used to assign data from the I/O Database to physical digital outputs. The
physical digital outputs are specific 5000 Series I/O modules or generic I/O modules.
Counter Input (CNTR)
These modules are used to assign data from physical counter inputs to input registers in the I/O
Database. The physical counter inputs are specific 5000 Series I/O modules and controller counter
inputs.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
356
SCADAPack (SCADAPack 5601, SCADAPack 5602, SCADAPack 5604, and
SCADAPack AOUT)
These modules are used to assign data to registers in the I/O Database, from physical SCADAPack
digital and analog I/O. The physical inputs and outputs are specific SCADAPack I/O modules.
Controller Diagnostic (DIAG)
These modules are used to assign diagnostic data from the controller to input or status registers in the
I/O Database. The diagnostic data is used to monitor internal controller data such as controller status
code, the force LED, serial port communication status and serial port protocol status.
Controller Configuration (CNFG)
These modules are used to assign data from I/O Database coil and holding registers to controller
configuration registers. The configuration data is used to configure controller settings such as
clearing protocol and serial counters, real time clock settings, HART protocol interface and PID
control blocks.
Default Register Assignment
This provides a default assignment of registers for the selected controller type.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
357
6.1 Register Assignment Specification
The Register Assignment I/O modules described in this manual are formatted as follows.
Header
The module header displays the I/O module name.
Module Description
The module description section describes the function, data origin and data destination of the I/O
module.
Register Assignment
The register assignment description is used to describe the information required in the Add Register
Assignment dialog. The information required for each section of the Add Register Assignment
dialog is explained in the table shown below.
The column at the left of the table indicates the information that is required for the I/O module in the
Add Register Assignment dialog. The requirements vary depending on the I/O module.
Module
Module Name
Address
Physical I/O modules are assigned a unique
module address between 0 and 15. No
other similar type modules may use this
module address.
Diagnostic and configuration modules and
SCADAPack 5601, 5602 and 5604 I/O
modules do not require a physical address.
Type
Register type of 0xxxx, 1xxxx, 3xxxx or
4xxxx.
Start
First register of any unused
block of consecutive registers.
3xxxx
End
Last register of block 3xxxx + 7
Registers
Number of registers for module.
Description
Description of module.
Extended Parameters
Additional parameters, if applicable.
Register Data
The register data table describes what data each assigned register will contain.
Notes Section
The notes section is used to provide any additional information that may be useful when using the
module.
6.2 Register Assignment Example
In this example, the application program requires a 5501 Analog Input module. The analog input
data from the 5000 Series 5501 module must be assigned to the I/O Database before the Ladder
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
358
Logic application program can access it. The register assignment is used to assign the input data to
the I/O database.
Run the TelePACE program.
Select File from the menu bar. From the drop down File menu, select New.
Select Controller from the menu bar. From the drop down Controller menu, select Register
Assignment.
The Register Assignment is displayed. The table is initially empty when a new file is started.
Selecting the Add button opens the Add Register Assignment dialog.
The first I/O module in the I/O module list is displayed and highlighted in the Module window.
Click the left mouse button on the down arrow at the left side of the Module window.
The entire I/O module list is displayed in the drop down window. Use the up and down arrows at the
right side of the list to scroll through the list of I/O modules.
Select the AIN 5501 module by clicking the left mouse button on the AIN 5501 module text. When
selected the AIN 5501 module is highlighted and the module list is closed.
The AIN 5501 module is described in the Register Assignment section of this manual.
The module reference for the AIN module is described in detail below. Each section of the module
reference provides information that is required to configure the register assignment. All modules in
the Register Assignment follow a similar format.
Header
The module header displays the I/O module name. For example, AIN 5501 Module is displayed.
Module Description
The module description section describes the function, data origin and data destination of the I/O
module. The description for the AIN 5501 module indicates that data is received from the 5501
Analog Input module. This data is then assigned to eight consecutive input (3xxxx) registers in the
I/O database. The I/O database registers used by the AIN 5501 module are continuously updated
with data from the 5000 Series 5501 analog input module.
Register Assignment Description
The register assignment description is used to describe the information required in the Add Register
Assignment dialog. The information required for each section of the Add Register Assignment
dialog is explained in the table. A sample is shown below.
Module AIN 5501 Module
Address This module is assigned a unique module
address between 0 and 15. No other AIN-
type module may use this module address.
Type Input Register
Start First register of any unused
block of 8 consecutive input
registers.
3xxxx
End Last register of block 3xxxx + 7
Registers 8 input registers.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
359
Description None
Extended Parameters None
The column at the left of the table indicates the information that is required for the I/O module in the
Add Register Assignment dialog. The requirements vary depending on the I/O module.
Module The I/O module highlighted in the Module window.
Address The physical address of the 5000 Series 5501 analog input module. This
address is set equal to the address of 5501 analog input module. See the
5501 Analog Input Module User Manual.
Type The I/O database register type that the I/O module will assign data to. The
I/O database register types are:
Coil Register 0xxxx
Status Register 1xxxx
Input Register 3xxxx
Holding Register 4xxxx
The AIN 5501 module will assign data to input registers (3xxxx).
Start The I/O database register address where the AIN 5501 module begins the
register assignment. For the AIN 5501 module, this is the first of eight
consecutive input registers.
End The I/O database register where the AIN 5501 module ends the register
assignment. This value is automatically set to Start + 8 by the AIN 5501
module.
Registers Number of I/O database registers that the AIN 5501 module assigns. This
is automatically set to 8 for the AIN 5501 module.
Description The register type description for I/O modules that assign multiple
types of registers. The AIN 5501 module does not have an entry for this
field.
Extended Parameters None.
Register Data
The register data table describes what data each assigned register will contain. In the case of the AIN
5501 Module, the data will be the physical analog input channels from the 5000 Series 5501 module.
Notes Section
The notes section is used to provide any additional information that may be useful when using this
module.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
360
6.3 Analog Input I/O Modules
Analog input modules are used to assign data from physical analog inputs to input registers in the I/O
Database. The physical analog inputs are specific 5000 Series I/O modules, generic I/O modules, and
internal controller data such as RAM battery voltage and board temperature.
Analog input I/O modules may assign data to any input registers in the I/O database that are not
being used by another Analog Input or Counter I/O module. There are 1024 I/O database input
registers available. These input registers are numbered 30001 - 31024. Input registers are referred to
as 3xxxx registers throughout this manual.
All I/O database input registers that are not assigned to any other I/O modules may be used as
general purpose input registers in a ladder program. The I/O modules available are described in the
following pages.
Note: To properly view analog input/output registers, the register type should be set to type signed.
Setting the register type to anything else may result in inaccurate readings being
displayed/written to these registers.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
361
6.3.1 AIN Controller RAM Battery V
Description
The module, AIN Controller RAM battery V, reads the RAM backup battery voltage of the
SCADAPack controllers. This module reads the input voltage for the SCADASense programmable
controllers.( SCADASense 4202 DR, 4202 DS, 4203 DR, and 4203 DS) The voltage value is
assigned to one input register. The input register is updated continuously with voltage data read from
the RAM battery.
Register Assignment
Module AIN Controller RAM battery V
Address No physical address is required.
Type Input Register
Start Any unused input register. 3xxxx
End Same as start register.
Registers 1 input register
Description None
Extended Parameters None
Register Data
Register Assignment Assignment to Module Hardware
1 input register RAM battery voltage (0-5000 millivolts for SCADAPack
controllers).
Input power voltage (0-32767 millivolts for SCADASense
Programmable Controllers.
Notes
One input register is always assigned to the I/O Database when this module is used.
The 3.6V lithium battery will return a typical value of 3600 or 3700. A reading less than 3000 (3.0V)
indicates that the lithium battery requires replacement. The RAM battery voltage resolution is 100
millivolts.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
362
6.3.2 AIN Controller temperature
Description
The module, AIN Controller temperature, reads the circuit board temperature of the 5203 or 5204
controller. The temperature data is assigned to two consecutive input registers. The input registers
are updated continuously with data read from the controller.
Register Assignment
Module AIN Controller temperature
Address No physical address is required.
Type Input Register
Start First register of any unused
block of 2 consecutive input
registers.
3xxxx
End Last register of block 3xxxx + 1
Registers 2 input registers.
Description None
Extended Parameters None
Register Data
Register Assignment Assignment to Module Hardware
Start Register Board temperature (degrees C)
Start Register + 1 Board temperature (degrees F)
Notes
Two input registers are always assigned to the I/O Database when this module is used.
The temperature sensor returns a value in the range -40C to 75C or -40F to 167F. Temperatures
outside this range cannot be measured.
Refer to the System Manual for further information on the circuit board temperature.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
363
6.3.3 AIN 5501 Module
Description
The AIN 5501 module provides eight analog inputs, from the 5501 analog input module, for each
module address. Data from each module is assigned to eight consecutive input registers. The input
registers are updated continuously with data read from the analog inputs.
Register Assignment
Module AIN 5501 module
Address This module is assigned a unique module
address between 0 and 15. No other AIN-
type module may use this module address.
Type Input Register
Start First register of any unused
block of 8 consecutive input
registers.
3xxxx
End Last register of block 3xxxx + 7
Registers 8 input registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Analog input 0
Start Register + 1 Analog input 1
Start Register + 2 Analog input 2
Start Register + 3 Analog input 3
Start Register + 4 Analog input 4
Start Register + 5 Analog input 5
Start Register + 6 Analog input 6
Start Register + 7 Analog input 7
Notes
Eight input registers are always assigned to the I/O Database when this module is used.
Refer to the 5501 Analog Input Module User Manual for further information.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
364
6.3.4 AIN 5502 Module
Description
The AIN 5502 module provides eight analog inputs, from the 5502 analog input module, for each
module address. Data from each module is assigned to eight consecutive input registers. The input
registers are updated continuously with data read from the analog inputs.
Register Assignment
Module AIN 5502 module
Address This module is assigned a unique module
address between 0 and 15. No other AIN-
type module may use this module address.
Type Input Register
Start First register of any unused
block of 8 consecutive input
registers.
3xxxx
End Last register of block 3xxxx + 7
Registers 8 input registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Analog input 0
Start Register + 1 Analog input 1
Start Register + 2 Analog input 2
Start Register + 3 Analog input 3
Start Register + 4 Analog input 4
Start Register + 5 Analog input 5
Start Register + 6 Analog input 6
Start Register + 7 Analog input 7
Notes
Eight input registers are always assigned to the I/O Database when this module is used.
Refer to the 5502 Analog Input Module User Manual for further information.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
365
6.3.5 AIN 5503 Module
Description
The AIN 5503 module provides four analog inputs, from the 5503 RTD analog input module, for
each module address. Data is assigned to four consecutive input registers. The input registers are
updated continuously with data read from the analog inputs.
Register Assignment
Module AIN 5503 module
Address This module is assigned a unique module
address between 0 and 15. No other AIN-
type module may use this module address.
Type Input Register
Start First register of any unused
block of 4 consecutive input
registers.
3xxxx
End Last register of block 3xxxx + 3
Registers 4 input registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Analog input 0
Start Register + 1 Analog input 1
Start Register + 2 Analog input 2
Start Register + 3 Analog input 3
Notes
Four input registers are always assigned to the I/O Database when this module is used.
Refer to the 5503 RTD Analog Input Module User Manual for further information.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
366
6.3.6 AIN 5504 Module
Description
The AIN 5504 module provides eight analog inputs, from the Thermocouple analog input module,
for each module address. Data is assigned to eight consecutive input registers. The input registers are
updated continuously with data read from the analog inputs.
Register Assignment
Module AIN 5504 module
Address This module is assigned a unique module
address between 0 and 15. No other AIN-
type module may use this module address.
Type Input Register
Start First register of any unused
block of 8 consecutive input
registers.
3xxxx
End Last register of block 3xxxx + 7
Registers 8 input registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Analog input 0
Start Register + 1 Analog input 1
Start Register + 2 Analog input 2
Start Register + 3 Analog input 3
Start Register + 4 Analog input 4
Start Register + 5 Analog input 5
Start Register + 6 Analog input 6
Start Register + 7 Analog input 7
Notes
Eight input registers are always assigned to the I/O Database when this module is used.
Refer to the 5504 Thermocouple Analog Input Module User Manual for further information.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
367
6.3.7 AIN 5505 Module
Description
The AIN 5505 module provides four RTD analog input points from a 5505 RTD module. A
maximum of sixteen 5505 RTD modules may be installed on the I/O bus. The 5505 RTD module can
operate in Native mode or in 5503 Emulation Mode. The operating mode is determined via a DIP
switch on the 5505 RTD module. Refer to the Control Microsystems Hardware Manual for details
on the DIP switch settings for the module.
When using the 5505 RTD module in 5503 Emulation mode the AIN 5503 module is used in the
register assignment. See the
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
368
AI N 5503 Module section if the module is to be used in 5503 Emulation mode.
The 5505 RTD module native mode provides enhanced capability over the 5503 emulation mode.
The module operates in native mode if the 5503 Emulation DIP switch is open. This mode is
recommended for all new installations.
- Each input is individually configurable for resistance measurement or RTD temperature
measurement
- Each RTD input is configurable to return the measured temperature in degrees Celsius,
Kelvin, or Fahrenheit.
- All inputs have a common configurable filter rate that can be used to dampen process
variations or noise.
- The module returns diagnostic and status information for each input, such as RTD type
(3 or 4 wire), open RTD annunciation, and RTD out of range annunciation.
- Data is returned as an IEEE 32 bit, single precision floating point number that requires no
additional scaling.
RTD data is assigned to eight consecutive input (3xxxx) registers, two for each floating point RTD
value. The input registers are updated continuously with data read from the analog inputs.
The 5505 RTD module provides 16 internal digital input (1xxxx) registers that return status and
diagnostic information about the RTDs. The digital input registers are updated continuously with
data read from the digital inputs.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
369
Register Assignment
The register assignment for the AIN 5505 module is used to configure the registers used for the
module data and the Extended Parameters available for the module. To open the register assignment
dialog for the AIN 5505 module:
- Select Register Assignment from the Controller menu in TelePACE.
- In the Register Assignment window select the Add button.
- In the Add Register Assignment dialog select the AIN 5505 module from the list presented in
the Module window.
The register assignment dialog for the AIN 5505 module is shown below.
The Module selection displays the name of the 5505 RTD module used for the register assignment.
The Address selection displays the module address of the physical 5505 RTD module. The address
on the module is selected via dip switches on the module. A maximum of sixteen AIN type modules
may be added to a system.
The register type 1xxxx defines the register range for the digital input status data. Sixteen sequential
registers are needed for the AIN 5505 module status data. Any unused block of sixteen registers may
be used. See the Status Register Data section below for an explanation of the digital input status
data.
The register type 3xxxx defines the register range for the analog input data. Eight sequential registers
are needed for the AIN 5505 module analog data. Any unused block of eight registers may be used.
See the Input Register Data section below for an explanation of the analog input.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
370
The Extended Parameters grouping defines the type of data returned from the 5505 RTD module,
for each RTD input, and the filtering used by all RTD inputs.
The Type selection for each input (AIN 0, 1, 2 and 3) defines the measurement type. The data in the
input registers assigned to the input is set to the type selected.
- The deg C selection sets the input point measurement type to degrees Celsius.
- The deg F selection sets the input point data measurement to degrees Fahrenheit.
- The deg K selection sets the input point data measurement to degrees Kelvin.
- The ohms selection sets the input point data measurement as resistance measurement in ohms.
The AIN Filter selection set the input filter rate for all RTD inputs. The filter rate is used to dampen
process variations or noise.
- The 0.5s selection sets the filter rate to 0.5 seconds.
- The 1s selection sets the filter rate to 1 second.
- The 2s selection sets the filter rate to 2 seconds.
- The 4s selection sets the filter rate to 4 seconds.
Status Register Data
Status register data is assigned to sixteen consecutive status (1xxxx) registers. The following
table begins at the Start address defined in the Register Assignment and continues for
sixteen registers.
Registers Assignment to Module Hardware
Start Register OFF = channel 0 RTD is good
ON = channel 0 RTD is open or PWR input is off
Start Register + 1 OFF = channel 0 data in range
ON = channel 0 data is out of range
Start Register + 2 OFF = channel 0 RTD is using 3-wire measurement
ON = channel 0 RTD is using 4-wire measurement
Start Register + 3 Reserved for future use
Start Register + 4 OFF = channel 1 RTD is good
ON = channel 1 RTD is open or PWR input is off
Start Register + 5 OFF = channel 1 data in range
ON = channel 1 data is out of range
Start Register + 6 OFF = channel 1 RTD is using 3-wire measurement
ON = channel 1 RTD is using 4-wire measurement
Start Register + 7 Reserved for future use
Start Register + 8 OFF = channel 2 RTD is good
ON = channel 2 RTD is open or PWR input is off
Start Register + 9 OFF = channel 2 data in range
ON = channel 2 data is out of range
Start Register + 10 OFF = channel 2 RTD is using 3-wire measurement
ON = channel 2 RTD is using 4-wire measurement
Start Register + 11 Reserved for future use
Start Register + 12 OFF = channel 3 RTD is good
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
371
Registers Assignment to Module Hardware
ON = channel 3 RTD is open or PWR input is off
Start Register + 13 OFF = channel 3 data in range
ON = channel 3 data is out of range
Start Register + 14 OFF = channel 3 RTD is using 3-wire measurement
ON = channel 3 RTD is using 4-wire measurement
Start Register + 15 Reserved for future use
Input Register Data
Input register data is assigned to eight consecutive input (3xxxx) registers. The following
table begins at the Start address defined in the Register Assignment and continues for eight
registers. Note that each input point uses two input registers formatted in IEEE 754 floating
point format.
Registers Assignment to Module
Hardware
Start Register and Start Register + 1
(in IEEE 754 floating point format)
Analog input 0
Start Register + 2 and Start Register + 3
(in IEEE 754 floating point format)
Analog input 1
Start Register + 4 and Start Register + 5
(in IEEE 754 floating point format)
Analog input 2
Start Register + 6 and Start Register + 7
(in IEEE 754 floating point format)
Analog input 3
Notes
Refer to the 5505 RTD Analog Input Module User Manual for further information.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
372
6.3.8 AIN 5506 Module
Description
The AIN 5506 module provides eight analog inputs from a 5506 Analog Input module. A maximum
of sixteen 5506 analog input modules may be installed on the I/O bus. The 5506 Analog Input
module can operate in Native mode or in 5501 Emulation Mode. The operating mode is determined
via a DIP switch on the 5506 Analog Input. Refer to the Control Microsystems Hardware Manual
for details on the DIP switch settings for the module.
When using the 5506 Analog Input module in 5501 Emulation mode the AIN 5501 module is used in
the register assignment. See the
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
373
AI N 5501 Module section if the module is to be used in 5501 Emulation mode.
5506 native mode provides enhanced capability over the 5501 emulation mode. The module
operates in native mode if the 5501 Emulation DIP switch is open.
- Each input is individually configurable for 0-5V, 1-5V, 0-20mA, or 4-20mA operation.
- Converted analog input data is returned as a signed 15-bit value, providing 8 times more
resolution than in 5501 mode. Negative values are possible, for example if a 4-20mA is
open loop.
- The module returns status information for each analog input indicating if the analog
input is in or out of range for the defined signal type.
- All inputs have a configurable filter rate.
- The input-scanning rate is software configurable to 50 or 60 hertz.
Analog input data is assigned to eight consecutive input (3xxxx) registers. The input registers are
updated continuously with data read from the analog inputs.
The 5506 Analog Input module provides 8 internal digital input (1xxxx) registers that return status
information about the analog inputs. The digital input registers are updated continuously with data
read from the digital inputs.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
374
Register Assignment
The register assignment for the AIN 5506 module is used to configure the registers used for the
module data and the Extended Parameters available for the module. To open the register assignment
dialog for the AIN 5505 module:
- Select Register Assignment from the Controller menu in TelePACE.
- In the Register Assignment window select the Add button.
- In the Add Register Assignment dialog select the AIN 5506 module from the list presented in
the Module window.
The register assignment dialog for the AIN 5506 module is shown below.
The Module selection displays the name of the 5506 Analog Input module used for the register
assignment.
The Address selection displays the module address of the physical 5506 Analog Input module. The
address on the module is selected via dip switches on the module. A maximum of sixteen AIN type
modules may be added to a system.
The register type 1xxxx defines the register range for the digital input status data. Eight sequential
registers are needed for the AIN 5506 module status data. Any unused block of eight registers may
be used. See the Status Register Data section below for an explanation of the digital input status
data.
The register type 3xxxx defines the register range for the analog input data. Eight sequential registers
are needed for the AIN 5506 module analog data. Any unused block of eight registers may be used.
See the Input Register Data section below for an explanation of the analog input.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
375
The Extended Parameters grouping defines the type of data returned from the 5506 AIN module,
filtering used by all inputs and the scan frequency.
The Type selection for each input (AIN 0, 1, 2, 3, 4, 5, 6, and 7) defines the input measurement type
for the analog input.
- The 0-5V selection sets the input type to measure 0 to 5V input signals.
- The 1-5V selection sets the input type to measure 1 to 5V input signals.
- The 0-20 mA selection sets the input type to measure 0 to 20mA input signals.
- The 4-20 mA selection sets the input type to measure 4 to 20mA input signals.
The AIN Filter selection set the input filter for all analog inputs. Filtering is used to dampen process
variations or noise.
- The 3 Hz filter selection sets the response time to 155ms at 60Hz and 185ms at 50Hz.
- The 6 Hz filter selection sets response time to 85ms at 60Hz and 85ms at 50Hz.
- The 11 Hz filter selection sets response time to 45ms at 60Hz and 55ms at 50Hz.
- The 30 Hz filter selection sets response time to 30ms at 60Hz and 30ms at 50Hz.
The Scan Frequency selection set the input scan rate for all analog inputs. The scan rate selection is
not critical but AC noise rejection is improved at the correct frequency. If the module is used in a DC
environment, the 60 Hz setting will yield slightly faster response time.
- The 60 Hz selection synchronies the input scanning to 60Hz.
- The 50 Hz selection synchronies the input scanning to 50Hz.
Status Register Data
Status register data is assigned to sixteen consecutive status (1xxxx) registers. The following
table begins at the Start address defined in the Register Assignment and continues for
sixteen registers.
Registers Assignment to Module Hardware
Start Register OFF = channel 0 is OK
ON = channel 0 is over or under range
Start Register + 1 OFF = channel 1 is OK
ON = channel 1 is over or under range
Start Register + 2 OFF = channel 2 is OK
ON = channel 2 is over or under range
Start Register + 3 OFF = channel 3 is OK
ON = channel 3 is over or under range
Start Register + 4 OFF = channel 4 is OK
ON = channel 4 is over or under range
Start Register + 5 OFF = channel 5 is OK
ON = channel 5 is over or under range
Start Register + 6 OFF = channel 6 is OK
ON = channel 6 is over or under range
Start Register + 7 OFF = channel 7 is OK
ON = channel 7 is over or under range
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
376
Input Register Data
Input register data is assigned to eight consecutive input (3xxxx) registers. The following
table begins at the Start address defined in the Register Assignment and continues for eight
registers.
Registers Assignment to Module Hardware
Start Register Analog input 0
Start Register + 1 Analog input 1
Start Register + 2 Analog input 2
Start Register + 3 Analog input 3
Start Register + 4 Analog input 4
Start Register + 5 Analog input 5
Start Register + 6 Analog input 6
Start Register + 7 Analog input 7
Notes
Refer to the 5506 Analog Input Module User Manual for further information.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
377
6.3.9 AIN 5521 Module
Description
The AIN 5521 module provides eight analog inputs, from the 5521 Potentiometer analog input
module, for each module used. Data is assigned to eight consecutive input registers. The input
registers are updated continuously with data read from the analog inputs.
Register Assignment
Module AIN 5521 module
Address This module is assigned a unique module
address between 0 and 7. No other AIN-
type module may use this module address.
Type Input Register
Start First register of any unused
block of 8 consecutive input
registers.
3xxxx
End Last register of block 3xxxx + 7
Registers 8 input registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Analog input 0
Start Register + 1 Analog input 1
Start Register + 2 Analog input 2
Start Register + 3 Analog input 3
Start Register + 4 Analog input 4
Start Register + 5 Analog input 5
Start Register + 6 Analog input 6
Start Register + 7 Analog input 7
Notes
Eight input registers are always assigned to the I/O Database when this module is used.
Refer to the 5521 Potentiometer Analog Input Module User Manual for further information.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
378
6.3.10 AIN Generic 8 Point Module
Description
The AIN Generic 8 point module provides eight analog inputs. Data is assigned to eight
consecutive input registers. The input registers are updated continuously with data read from the
analog inputs. The AIN Generic 8 point module may be used in place of any other 8 point AIN-
type module.
The AIN Generic 8 point module type is a useful selection early on in the system design stage
before the final selection of the specific AIN module type is known.
Register Assignment
Module AIN Generic 8 Point Module
Address This module is assigned a unique module
address between 0 and 15. No other AIN-
type module may use this module address.
Type Input Register
Start First register of any unused
block of 8 consecutive input
registers.
3xxxx
End Last register of block 3xxxx + 7
Registers 8 input registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Analog input 0
Start Register + 1 Analog input 1
Start Register + 2 Analog input 2
Start Register + 3 Analog input 3
Start Register + 4 Analog input 4
Start Register + 5 Analog input 5
Start Register + 6 Analog input 6
Start Register + 7 Analog input 7
Notes
Eight input registers are always assigned to the I/O Database when this module is used.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
379
6.4 Analog Output I/O Modules
Analog output modules are used to assign data from the I/O Database to physical analog outputs. The
physical analog outputs are specific 5000 Series I/O modules or generic I/O modules.
Analog output I/O modules may assign data to any holding registers in the I/O database that are not
being used by another Analog output I/O module. There are 9999 holding registers available. These
holding registers are numbered 40001 - 49999. Holding registers are referred to as 4xxxx registers
throughout this manual.
All holding registers that are not assigned to any other I/O modules may be used as general purpose
holding registers in a ladder program. The I/O modules available are described in the following
pages.
Note: To properly view analog input/output registers, the register type should be set to type signed.
Setting the register type to anything else may result in inaccurate readings being
displayed/written to these registers.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
380
6.4.1 AOUT 5301 Module
Description
The AOUT 5301 module provides two analog outputs, to the 5000 Series 5301 Analog output
module, for each module used. Data is assigned from two consecutive holding registers. The analog
outputs are updated continuously with data read from the holding registers.
Register Assignment
Module AOUT 5301 module
Address This module is assigned a unique module
address between 0 and 15. No other AOUT-
type module may use this module address.
Type Holding Register
Start First register of any unused
block of 2 consecutive holding
registers.
4xxxx
End Last register of block 4xxxx + 1
Registers 2 holding registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Analog output 0
Start Register + 1 Analog output 1
Notes
Two holding registers are always assigned to the I/O Database when this module is used.
Refer to the 5301 Analog Output Module User Manual for further information.
6.4.2 AOUT 5302 Module
Description
The AOUT 5302 module provides four analog outputs, to the 5000 Series 5302 Analog output
module, for each module used. Data is assigned from four consecutive holding registers. The analog
outputs are updated continuously with data read from the holding registers.
Register Assignment
Module AOUT 5302 module
Address This module is assigned a unique module
address between 0 and 15. No other AOUT-
type module may use this module address.
Type Holding Register
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
381
Start First register of any unused
block of 4 consecutive holding
registers.
4xxxx
End Last register of block 4xxxx + 3
Registers 4 holding registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Analog output 0
Start Register + 1 Analog output 1
Start Register + 2 Analog output 2
Start Register + 3 Analog output 3
Notes
Four holding registers are always assigned to the I/O Database when this module is used.
Refer to the 5302 Analog Output Module User Manual for further information.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
382
6.4.3 AOUT 5304 Module
Description
The AOUT 5304 module provides four analog outputs, to the 5000 Series 5304 Analog output
module, for each module used. Data is assigned from four consecutive holding registers. The analog
outputs are updated continuously with data read from the holding registers.
Register Assignment
Module AOUT 5304 module
Address This module is assigned a unique module
address between 0 and 15. No other AOUT-
type module may use this module address.
Type Holding Register
Start First register of any unused
block of 4 consecutive holding
registers.
4xxxx
End Last register of block 4xxxx + 3
Registers 4 holding registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Analog output 0
Start Register + 1 Analog output 1
Start Register + 2 Analog output 2
Start Register + 3 Analog output 3
Notes
Four holding registers are always assigned to the I/O Database when this module is used.
Refer to the 5304 Analog Output Module User Manual for further information.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
383
6.4.4 AOUT Generic 2 Point Module
Description
The AOUT Generic 2 point module provides two analog outputs. Data is assigned from two
consecutive holding registers. The analog outputs are updated continuously with data read from the
holding registers. The AOUT Generic 2 point module may be used in place of any other 2 point
AOUT-type module.
The AOUT Generic 2 point module type is a useful selection early on in the system design stage
before the final selection of the specific AOUT module type is known.
Register Assignment
Module AOUT Generic 2 point module
Address This module is assigned a unique module
address between 0 and 15. No other AOUT-
type module may use this module address.
Type Holding Register
Start First register of any unused
block of 2 consecutive holding
registers.
4xxxx
End Last register of block 4xxxx + 1
Registers 2 holding registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Analog output 0
Start Register + 1 Analog output 1
Notes
Two holding registers are always assigned to the I/O Database when this module is used.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
384
6.4.5 AOUT Generic 4 Point Module
Description
The AOUT Generic 4 point module provides four analog outputs. Data is assigned from four
consecutive holding registers. The analog outputs are updated continuously with data read from the
holding registers. The AOUT Generic 4 point module may be used in place of any other 4 point
AOUT-type module.
The AOUT Generic 4 point module type is a useful selection early on in the system design stage
before the final selection of the specific AOUT module type is known.
Register Assignment
Module AOUT Generic 4 point module
Address This module is assigned a unique module
address between 0 and 15. No other AOUT-
type module may use this module address.
Type Holding Register
Start First register of any unused
block of 4 consecutive holding
registers.
4xxxx
End Last register of block 4xxxx + 3
Registers 4 holding registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Analog output 0
Start Register + 1 Analog output 1
Start Register + 2 Analog output 2
Start Register + 3 Analog output 3
Notes
Four holding registers are always assigned to the I/O Database when this module is used.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
385
6.5 Configuration I/O Modules
Configuration modules are used to assign data from the I/O Database coil and holding registers to
controller configuration settings. The configuration data is used to configure controller settings such
as clearing protocol and serial counters, real time clock settings, HART protocol interface and PID
control blocks.
Configuration I/O modules assign data to I/O database coil or holding registers, depending on the
type of data. Configuration I/O modules may assign data to any coil or holding registers in the I/O
database that are not being used by another I/O module.
All I/O database coil or holding registers that are not assigned to any other I/O modules may be used
as general purpose coil or holding registers in a ladder program. The configuration modules available
are described in the following pages.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
386
6.5.1 CNFG 5904 HART Interface Module
Description
The module, CNFG 5904 HART Interface provides control of 5904 HART Interface modules.
When configured the module maintains communication with a 5904 interface. Up to four 5904
interfaces may be attached to a controller.
The interface settings are assigned from four consecutive holding registers. The registers are
initialized with the current value of the module parameters when the controller is reset, and when the
Register Assignment is downloaded to the controller. Thereafter the data from all four holding
registers are written to the module parameters, whenever any of the registers change.
Register Assignment
Module CNFG 5904 HART Interface
Address 0 to 3
Type Holding Register
Start The first register of any
unused block of 4
consecutive holding
registers.
4xxxx
End The last register of the
block
4xxxx + 3
Registers 4 holding registers
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Attempts: the number of times each HART command will be sent.
Valid values are 1 to 4.
Default : = 3
Start Register + 1 Preambles: number of preambles to send if fixed preambles selected.
Valid values are 2 to 15. This value must be set as it is used by link
initialization.
Default : = 15
Start Register + 2 Auto-preamble control:
0 = use fixed number of preambles
1 = use number of preambles requested by device except for link
initialization
Default : = 1
Start Register + 3 Device type
0 = secondary master device
1 = primary master device (recommended)
Default : = 1
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
387
Notes
This module provides the basis for communication with HART devices connected to the 5904
interface module. It does not send commands to the HART devices. Use the Ladder Logic HART
element or the C Tools HART API functions to send commands to the HART devices.
The number of preambles must be set even if the auto-preamble control is selected. The preambles
value will be used for the link initialization command which determines the number of preambles
requested by the device.
In most sensor networks, the controller is the primary master device. A hand-held programmer is
typically a secondary master device. Set the device type to primary unless another HART primary
master device is connected to the network.
The settings can be saved to EEPROM with the CNFG Save Settings to EEPROM module.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
388
6.5.2 CNFG Clear Protocol Counters
Description
The module, CNFG Clear protocol counters, provides a way of clearing the protocol event
counters for a specific serial port. The protocol event counters for the serial port are cleared when the
assigned coil register is set to 1. Once the counters are cleared, the assigned coil register is
automatically reset to zero.
Register Assignment
Module CNFG Clear protocol counters
Address com1, com2, com3, or com4.
Type Coil Register
Start Any unused coil register. 0xxxx
End Same as start register.
Registers 1 coil register.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Clear protocol event counters.
Notes
Refer to the module, DIAG Serial port protocol status, for a description of the individual counters.
For SCADAPack, SCADAPack Light and SCADAPack Plus controllers Com3 is supported only
when the SCADAPack 5601 and 5604 I/O module is installed. Com4 is supported only when the
SCADAPack 5602 I/O module is installed. To optimize performance, minimize the length of
messages on com3 and com4. Examples of recommended uses for com3 and com4 are for local
operator terminals, and for programming and diagnostics using the TelePACE program.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
389
6.5.3 CNFG Clear Serial Port Counters
Description
The module, CNFG Clear serial port counters, provides a way of clearing the communication
event counters for a specific serial port. The serial port counters are cleared when the assigned coil
register is set to 1. Once the counters are cleared the assigned coil register is automatically reset to 0.
Register Assignment
Module CNFG Clear serial port counters
Address Com1, com2, com3, or com4.
Type Coil Register
Start Any unused coil register. 0xxxx
End Same as start register.
Registers 1 coil register.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Clear communication event counters.
Notes
Refer to the module, DIAG Serial port comm. status, for a description of the individual counters.
For SCADAPack, SCADAPack Light and SCADAPack Plus controllers Com3 is supported only
when the SCADAPack 5601 and 5604 I/O module is installed. Com4 is supported only when the
SCADAPack 5602 I/O module is installed. To optimize performance, minimize the length of
messages on com3 and com4. Examples of recommended uses for com3 and com4 are for local
operator terminals, and for programming and diagnostics using the TelePACE program.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
390
6.5.4 CNFG Device Configuration
Description
The module CNFG Device Configuration provides a method for users to assign an ID number to
the applications running in a SCADAPack or SCADASense controller. This module is supported on
all SCADAPack controllers with 2.44 (or later) firmware; SCADAPack 32 controllers with 1.92 (or
later) firmware and SCADAPack 330, SCADAPack 334, SCADAPack 350 or SCADASense 4203
controllers with 1.25 (or later) firmware.
The CNFG Device Configuration register assignment sets the Company ID, Logic Application
number and logic Application version. This information is then saved in a group of reserved registers
the I/O database. Refer to the Device Configuration Read Only Registers section below for details
on the Logic Application ID. These registers may be polled by SCADA Host software or other
Modbus compatible devices.
Users must add a rung to the logic application that specifies the appropriate information for the
Logic Application ID. See the Examplesection below.
Note: For SCADAPack and SCADAPack 32 controllers it is necessary to create a logic
application consisting of at least one element. If there is no logic program present
then the logic application ID is cleared.
The number of applications and version control are the responsibility of the user.
Register Assignment
Module CNFG Device Configuration
Address Fixed
Type Coil Register
Start First register of any unused
block of 4 consecutive holding
registers.
4xxxx
End Last register of block 4xxxx + 3
Registers 1 coil register.
Description 4 output registers
Extended Parameters Device information and control
Register Data
Registers Assignment to Module Hardware
Start Register 0 = configuration registers operate as normal input registers
1 = configuration registers report device configuration
Start Register + 1 Company ID contact Control Microsystems to obtain your
company ID
Start Register + 2 Logic Application number
Start Register + 3 Logic Application version (major * 100 + minor)
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
391
Device Configuration Read Only Registers
The Device configuration is stored in Modbus input (3xxxx series) registers as shown below. The
registers are read with standard Modbus commands. These registers cannot be written to. Device
configuration registers used fixed addresses. This facilitates identifying the applications in a standard
manner.
Note: These registers must not be used for other purposes in a logic or C application. This includes
the following uses:
- MSTR block uses registers 39800 to 39999 (in element configuration) as a destination.
- OVER block uses registers 39800 to 39999 as a destination.
- Any register assignment module uses registers 39800 to 39999.
The Device configuration registers can be enabled or disabled by entering a 0 or 1 in the Start
Register. They are disabled until enabled by a logic application. This provides compatibility with
controllers that have already used these registers for other purposes.
The application IDs are cleared on every controller reset. Applications must run and set the
application ID for it to be valid.
The following information is stored in the device configuration. 2 logic application identifiers are
provided for compatibility with SCADAPack ES/ER controllers that provide 2 ISaGRAF
applications. The second logic application identifier is not used with other controllers. 32 application
identifiers are provided to accommodate C applications in SCADAPack 33x/350 controllers.
Register Description
39800 Controller ID (ASCII value), first byte.
39801 Controller ID (ASCII value), second byte.
39802 Controller ID (ASCII value), third byte.
39803 Controller ID (ASCII value), fourth byte.
39804 Controller ID (ASCII value), fifth byte.
39805 Controller ID (ASCII value), sixth byte.
39806 Controller ID (ASCII value), seventh byte.
39807 Controller ID (ASCII value), eighth byte.
39808 Firmware version (major*100 + minor)
39809 Firmware version build number (if applicable)
39810 Logic Application 1 - Company ID (see below)
39811 Logic Application 1 - Application number (0 to 65535)
39812 Logic Application 1 - Application version (major*100 + minor)
39813 Logic Application 2 - Company ID (see below)
39814 Logic Application 2 - Application number (0 to 65535)
39815 Logic Application 2 - Application version (major*100 + minor)
39816 Number of applications identifiers used (0 to 32)
Identifiers are listed sequentially starting with identifier 1. Unused
identifiers will return 0.
39817 Application identifier 1 (see format below)
39820 Application identifier 2 (see format below)
39823 Application identifier 3 (see format below)
39826 Application identifier 4 (see format below)
39829 Application identifier 5 (see format below)
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
392
Register Description
39832 Application identifier 6 (see format below)
39835 Application identifier 7 (see format below)
39838 Application identifier 8 (see format below)
39841 Application identifier 9 (see format below)
39844 Application identifier 10 (see format below)
39847 Application identifier 11 (see format below)
39850 Application identifier 12 (see format below)
39853 Application identifier 13 (see format below)
39856 Application identifier 14 (see format below)
39859 Application identifier 15 (see format below)
39862 Application identifier 16 (see format below)
39865 Application identifier 17 (see format below)
39868 Application identifier 18 (see format below)
39871 Application identifier 19 (see format below)
39874 Application identifier 20 (see format below)
39877 Application identifier 21 (see format below)
39880 Application identifier 22 (see format below)
39883 Application identifier 23 (see format below)
39886 Application identifier 24 (see format below)
39889 Application identifier 25 (see format below)
39892 Application identifier 26 (see format below)
39895 Application identifier 27 (see format below)
39898 Application identifier 28 (see format below)
39901 Application identifier 29 (see format below)
39904 Application identifier 30 (see format below)
39907 Application identifier 31 (see format below)
39910 Application identifier 32 (see format below)
39913 to
39999
Reserved for future expansion
Application Identifier
The application identifier is formatted as follows.
Register Description
Start Company ID (see below)
Start +1 Application number (0 to 65535)
Start +2 Application version (major*100 + minor)
Company Identifier
Control Microsystems maintains a list of company identifiers to ensure the company ID is unique.
Contact Control Microsystems for a Company ID. Company ID 0 indicates an identifier is unused.
Company IDs 1 to 100 are reserved for Control Microsystems use.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
393
Example
The following logic enables the Device Configuration registers and sets the Company ID,
Logic Application Number and Logic Application Version. The CNFG Device
Configuration uses registers 45000 through 45003.
The following is a view of the registers associated with the Device Configuration. Registers 39800
through 39807 contain ASCII values for the controller ID.
6.5.5 CNFG DTR Off
Description
The module, CNFG DTR Off, provides a way of controlling the DTR signal for a specific serial
port. When the assigned coil is energized DTR for the serial port is de-asserted. DTR is constantly
turned off when the coil is energized.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
394
When the assigned coil is de-energized DTR for the serial port is asserted. The DTR signal is not
constantly asserted. It is asserted on the transition from an energized coil to a de-energized coil.
Since DTR is not constantly re-asserted other programs will be able to control the DTR setting. This
way other ladder blocks and programs will be able to control the DTR settings.
Register Assignment
Module CNFG DTR Off
Address com1, com2, com3, or com4.
Type Coil Register
Start Any unused coil register. 0xxxx
End Same as start register.
Registers 1 coil register.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Controls DTR signal
0 = DTR asserted
1 = DTR not asserted
Default: 0 = DTR asserted
Notes
For SCADAPack, SCADAPack Light and SCADAPack Plus controllers Com3 is supported only
when the SCADAPack 5601 and 5604 I/O module is installed. Com4 is supported only when the
SCADAPack 5602 I/O module is installed. To optimize performance, minimize the length of
messages on com3 and com4. Examples of recommended uses for com3 and com4 are for local
operator terminals, and for programming and diagnostics using the TelePACE program.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
395
6.5.6 CNFG IP Settings
Description
The module, CNFG IP settings, provides control of the IP settings for a specific communication
interface. Settings are assigned from thirteen consecutive holding registers. The registers are
initialized with the current value of the module parameters on power-up, and when the Register
Assignment is downloaded to the controller. Thereafter the data from all thirteen holding registers is
written to the module parameters, whenever any of the registers change.
This module is used by the SCADAPack 32, SCADAPack 330/334 and SCADAPack 350 controllers
only.
Use this module only when IP settings need to be changed within a Ladders program. It is more
convenient to use the Controller TCP/IP Settings dialog to download IP settings with the Ladders
program.
Note: Any block transfer Ladder Logic function may be used to write data to the holding
registers used for this module. The data in the holding registers is written to the
module parameters only when the ladder function is energized. Users must ensure
the ladder function is only energized for one program scan. If the ladder function is
always energized problems with the TCP/IP communication will result.
Register Assignment
Module CNFG IP settings
Address Ethernet1
Type Holding Register
Start First register of any unused
block of 13 consecutive
holding registers.
4xxxx
End Last register of block 4xxxx + 12
Registers 13 holding registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Byte1 of the IP Address using format: Byte1.Byte2.Byte3.Byte4
Default: 0
Start Register + 1 Byte2 of the IP Address
Default: 0
Start Register + 2 Byte3 of the IP Address
Default: 0
Start Register + 3 Byte4 of the IP Address
Default: 0
Start Register + 4 Byte1 of the Subnet Mask using format: Byte1.Byte2.Byte3.Byte4
Default: 255
Start Register + 5 Byte2 of the Subnet Mask
Default: 255
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
396
Registers Assignment to Module Hardware
Start Register + 6 Byte3 of the Subnet Mask
Default: 255
Start Register + 7 Byte4 of the Subnet Mask
Default: 255
Start Register + 8 Byte1 of the Default Gateway using format
Byte1.Byte2.Byte3.Byte4
Default: 0
Start Register + 9 Byte2 of the Default Gateway
Default: 0
Start Register + 10 Byte3 of the Default Gateway
Default: 0
Start Register + 11 Byte4 of the Default Gateway
Default: 0
Start Register + 12 IP Configuration Mode
0 = Default gateway is on the LAN subnet
1 = Default gateway is on the com1 PPP subnet
2 = Default gateway is on the com2 PPP subnet
3 = Default gateway is on the com3 PPP subnet
4 = Default gateway is on the com4 PPP subnet
Notes
Thirteen holding registers are always assigned to the I/O Database when this module is used.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
397
6.5.7 CNFG LED Power Settings
Description
The module, CNFG LED power settings, provides control of the power settings for the controller
LEDs. The state of the assigned coil register is the default state for the LED power. The time to
return to the Default State is contained within the assigned holding register.
The registers are initialized with the current value of the module parameters on power-up, and when
the Register Assignment is downloaded to the controller. Thereafter the module parameters are
updated continuously with data read from the assigned registers.
Register Assignment
Module CNFG LED power settings
Address No physical address is required.
Type Coil Register
Start Any unused coil register. 0xxxx
End Same as start register.
Registers 1 coil register.
Description default state
Type Holding Register
Start Any unused holding register 4xxxx
End Same as start register
Registers 1 holding register
Description time to return to default state
Extended Parameters None
Coil Register Data
Registers Assignment to Module Hardware
Start
Register
Default state for power to the controller
LEDs
0 = off
1 = on
Default Value: 1 = on
Holding Register Data
Registers Assignment to Module Hardware
Start
Register
Time in minutes to return to the default
state.
1 to 65535 minutes
Default Value: 5 minutes
Notes
One holding register and one coil register are always assigned to the I/O Database when this module
is used.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
398
6.5.8 CNFG Modbus IP Interface
Description
The module, CNFG Modbus IP Interface, provides control of the protocol interface settings used
by all Modbus IP protocols on the specified communication interface. Settings are assigned from five
consecutive holding registers. The registers are initialized with the current value of the module
parameters on power-up, and when the Register Assignment is downloaded to the controller.
Thereafter the data from all five holding registers is written to the module parameters, whenever any
of the registers change.
This module is used by the SCADAPack 32, SCADAPack 330/334 and SCADAPack 350 controllers
only.
Use this module only when Modbus IP protocol interface settings need to be changed within a
Ladders program. It is more convenient to use the Controller Modbus IP Protocols dialog to
download protocol interface settings with the Ladders program.
Note: Any block transfer Ladder Logic function may be used to write data to the holding
registers used for this module. The data in the holding registers is written to the
module parameters only when the ladder function is energized. Users must ensure
the ladder function is only energized for one program scan. If the ladder function is
always energized problems with the Modbus IP communication will result.
Register Assignment
Module CNFG Modbus IP Interface
Address Ethernet1
Type Holding Register
Start First register of any unused
block of 5 consecutive holding
registers.
4xxxx
End Last register of block 4xxxx + 4
Registers 5 holding registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Modbus station number
1 to 255 in standard Modbus
1 to 65534 in extended Modbus
Default: 1
Start Register + 1 Modbus store and forward enable
0 = disabled
1 = enabled
Default: 0 = disabled
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
399
Registers Assignment to Module Hardware
Start Register + 2 Modbus addressing mode
0 = standard
1 = extended
Default: 0 = standard
Start Register + 3 Enron Modbus enable
0 = disabled
1 = enabled
Default: 0 = disabled
Start Register + 4 Enron Modbus station number
1 to 255 in standard Modbus
1 to 65534 in extended Modbus
Default: 1
Notes
Five holding registers are always assigned to the I/O Database when this module is used.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
400
6.5.9 CNFG Modbus IP Protocols
Description
The module, CNFG Modbus IP Protocols, provides control of the settings for a Modbus IP
protocol. Settings are assigned from ten consecutive holding registers. The registers are initialized
with the current value of the module parameters on power-up, and when the Register Assignment is
downloaded to the controller. Thereafter the data from all ten holding registers is written to the
module parameters, whenever any of the registers change.
This module is used by the SCADAPack 32, SCADAPack 330/334 and SCADAPack 350 controllers
only.
Use this module only when Modbus IP protocol settings need to be changed within a Ladders
program. It is more convenient to use the Controller Modbus IP Protocols dialog to download
protocol settings with the Ladders program.
Note: Any block transfer Ladder Logic function may be used to write data to the holding
registers used for this module. The data in the holding registers is written to the
module parameters only when the ladder function is energized. Users must ensure
the ladder function is only energized for one program scan. If the ladder function is
always energized problems with the Modbus IP communication will result.
Register Assignment
Module CNFG Modbus IP Protocols
Address 1 = Modbus/TCP,
2 = Modbus RTU over UDP, or
3 = Modbus ASCII over UDP
Type Holding Register
Start First register of any unused
block of 10 consecutive
holding registers.
4xxxx
End Last register of block 4xxxx + 9
Registers 10 holding registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Protocol Port Number: 1 to 65534
Modbus/TCP Default: 502
Modbus RTU over UDP Default: 49152
Modbus ASCII over UDP Default: 49153
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
401
Registers Assignment to Module Hardware
Start Register + 1 and
Start Register + 2
Master Idle Timeout: The length of time, in seconds,
that a master connection will wait for the user to send
the next command before ending the connection. This
allows the slave device to free unused connections
while the master application may retain the connection
allocation. (32 bit register)
0 = disable timeout and let application close the
connection.
Default: 10
TCP protocols only. Not used by UDP protocols.
Start Register + 3 and
Start Register + 4
Server Idle Timeout: The length of time, in seconds,
that a server connection will wait for a message
before ending the connection. (32 bit register)
0 = disable timeout and let client close connection.
Default: 250
TCP protocols only. Not used by UDP protocols.
Start Register + 5 Protocol Server Enable:
0 = disable server.
1 = enable server.
Default: 1
Start Register + 6 Reserved
Start Register + 7 Reserved
Start Register + 8 Reserved
Start Register + 9 Reserved
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
402
6.5.10 CNFG Modbus/TCP Settings
Description
The module, CNFG Modbus/TCP settings, provides control of the Modbus/TCP protocol
settings. Settings are assigned from six consecutive holding registers. The registers are
initialized with the current value of the module parameters on power-up, and when the
Register Assignment is downloaded to the controller. Thereafter the data from all six
holding registers is written to the module parameters, whenever any of the registers change.
This module is used by the SCADAPack 32, SCADAPack 330/334 and SCADAPack 350
controllers only.
Use this module only when Modbus/TCP settings need to be changed within a Ladders
program. It is more convenient to use the Controller Modbus/TCP Settings dialog to
download Modbus/TCP settings with the Ladders program.
Note: Any block transfer Ladder Logic function may be used to write data to the holding
registers used for this module. The data in the holding registers is written to the
module parameters only when the ladder function is energized. Users must ensure
the ladder function is only energized for one program scan. If the ladder function is
always energized problems with the Modbus/TCP communication will result.
Register Assignment
Module CNFG Modbus/TCP settings
Address No physical address is required.
Type Holding Register
Start First register of any unused
block of 6 consecutive holding
registers.
4xxxx
End Last register of block 4xxxx + 5
Registers 6 holding registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Port for Modbus/TCP protocol
Default: 502
Start Register + 1 and
Start Register + 2
Master Idle Timeout: The length of time, in seconds,
that a master connection will wait for the user to send
the next command before ending the connection. (32
bit register)
0 = disable timeout and let user close the connection.
Default: 10
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
403
Registers Assignment to Module Hardware
Start Register + 3 and
Start Register + 4
Server Idle Timeout: The length of time, in seconds,
that a server connection will wait for a message
before ending the connection. (32 bit register)
0 = disable timeout and let client close connection.
Default: 250
Start Register + 5 Maximum number of server connections up to the
capacity available (typical capacity is 20 connections)
Default: 20
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
404
6.5.11 CNFG PID Control Block
Description
The module, CNFG PID control block, provides control over the configuration of a PID
control block and provides access to the control block parameters. Control block parameters
are assigned to 25 consecutive holding registers. The module address refers to the PID
control block number.
The holding registers are updated continuously with data read from the module parameters.
Whenever a Ladder Logic program or C Application changes any of the registers, only data
from the changed register is written to the corresponding module parameter.
Register Assignment
Module
CNFG PID control block
Address
This module is assigned a unique module
address between 0 and 31. No other PID-
type module may use this module address.
Type
Holding Register
Start
First register of any unused
block of 25 consecutive
holding registers.
4xxxx
End
Last register of block 4xxxx +24
Registers
25 holding registers.
Description
None
Extended Parameters
None
Register Data
Registers Assignment to Module Hardware
Start Register Process Value (PV)
Start Register + 1 Error (ER)
Start Register + 2 Output Quantity (OP)
Start Register + 3 Status Register SR)
Start Register + 4 Integrated Error (IN)
Start Register + 5 Setpoint (SP)
Start Register + 6 Deadband (DB)
Start Register + 7 Gain (GA)
Start Register + 8 Reset Time (RE)
Start Register + 9 Rate Time (RA)
Start Register + 10 Full Scale Output Limit (FS)
Start Register + 11 Zero Scale Output Limit (ZE)
Start Register + 12 High Alarm Level (HI)
Start Register + 13 Low Alarm Level (LO)
Start Register + 14 Control Register (CR)
Start Register + 15 Input Source (IP)
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
405
Registers Assignment to Module Hardware
Start Register + 16 Increase Output Address (IO)
Start Register + 17 Decrease Output Address (DO)
Start Register + 18 Input Bias (IB)
Start Register + 19 Output Bias (OB)
Start Register + 20 Inhibit Execution Address (IH)
Start Register + 21 Alarm Output Address (AO)
Start Register + 22 Cascade Setpoint Source (CA)
Start Register + 23 Execution Period
Start Register + 24 Execution Period at Power Up
Notes
Twenty-five holding registers are always assigned to the I/O Database when this module is
used.
Refer to the TelePACE PID Controller Reference Manual for further information.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
406
6.5.12 CNFG Power Mode
Description
The module, CNFG Power Mode, provides control over the power consumption of the
controller. The LAN port and USB host port can be individually disabled to conserve
power. The controller can also run at a reduced speed to conserve power.
The status registers are updated continuously with the current LAN, controller, and USB
host power states. The current settings can be changed by writing to the appropriate holding
register.
Register Assignment
Module CNFG Power Mode
Address fixed
Type Holding Register
Start First register of any unused block of 3
consecutive holding registers.
4xxxx
End Last register of block 4xxxx + 2
Registers 3 holding registers
Description None
Holding Register Data
Registers Assignment to Module Hardware
Start Register LAN Operation State (0 = LAN Enabled, 1 = LAN
Disabled)
Start Register + 1 Controller Power State (0 = Normal Power Mode, 1
= Reduced Power Mode)
Start Register + 2 USB Host Port Power State (0 = USB host port
enabled, 1 = USB host port disabled)
Notes
Three holding registers are always assigned to the I/O Database when this module is used.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
407
6.5.13 CNFG Protocol Settings Method 1
Description
The module, CNFG Protocol settings method 1, provides control of the protocol settings
for a specific serial port. Settings are assigned from three consecutive holding registers. The
registers are initialized with the current value of the module parameters on power-up, and
when the Register Assignment is downloaded to the controller. Thereafter the data from all
three holding registers is written to the module parameters, whenever any of the registers
change.
Use this module only when protocol settings need to be changed within a Ladders program.
It is more convenient to use the Controller Serial Ports Settings dialog to download protocol
settings with the program. Refer to the Serial Ports section in this manual for further
information on serial port settings.
Note: Any block transfer Ladder Logic function may be used to write data to the holding
registers used for this module. The data in the holding registers is written to the
module parameters only when the ladder function is energized. Users must ensure
the ladder function is only energized for one program scan. If the ladder function is
always energized problems with the serial communication will result.
Register Assignment
Module CNFG Protocol settings
Address com1, com2, com3, or com4.
Type Holding Register
Start First register of any unused
block of 3 consecutive holding
registers.
4xxxx
End Last register of block 4xxxx + 2
Registers 3 holding registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Protocol type
0 = none
1 = Modbus RTU
2 = Modbus ASCII
3 = DF1 Full Duplex BCC
4 = DF1 Full Duplex CRC
5 = DF1 Half Duplex BCC
6 = DF1 Half Duplex CRC
7 = DNP
8 = PPP
Default : 1 = Modbus RTU
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
408
Registers Assignment to Module Hardware
Start Register + 1 Protocol station number
1 to 255 in Modbus
0 to 254 in DF1
Default : 1
Start Register + 2 Store and forward enable
0 = disabled
1 = enabled
Default : 0 = disabled
Notes
This register assignment module replaces the CNFG Protocol Settings module used in
earlier versions of TelePACE.
For SCADAPack, SCADAPack Light and SCADAPack Plus controllers Com3 is supported
only when the SCADAPack 5601 or 5604 I/O module is installed. Com4 is supported only
when the SCADAPack 5602 I/O module is installed. To optimize performance, minimize
the length of messages on com3 and com4. Examples of recommended uses for com3 and
com4 are for local operator terminals, and for programming and diagnostics using the
TelePACE program.
Refer to the TeleBUS Protocols User Manual for further information on protocols.
Three holding registers are always assigned to the I/O Database when this module is used.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
409
6.5.14 CNFG Protocol Settings Method 2
The module, CNFG Protocol settings method 2, provides control of the protocol settings
for a specific serial port. This module supports the use of extended addressing.
Settings are assigned from four consecutive holding registers. The registers are initialized
with the current value of the module parameters on power-up, and when the Register
Assignment is downloaded to the controller. Thereafter the data from all four holding
registers is written to the module parameters, whenever any of the registers change.
Use this module only when protocol settings need to be changed within a Ladders program.
It is more convenient to use the Controller Serial Ports Settings dialog to download protocol
settings with the program. Refer to the Serial Ports section in this manual for further
information on serial port settings.
Note: Any block transfer Ladder Logic function may be used to write data to the holding
registers used for this module. The data in the holding registers is written to the
module parameters only when the ladder function is energized. Users must ensure
the ladder function is only energized for one program scan. If the ladder function is
always energized problems with the serial communication will result.
Register Assignment
Module CNFG Protocol Extended Settings
Address com1, com2, com3, or com4.
Type Holding Register
Start First register of any unused
block of 4 consecutive holding
registers.
4xxxx
End Last register of block 4xxxx + 3
Registers 4 holding registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Protocol type
0 = none
1 = Modbus RTU
2 = Modbus ASCII
3 = DF1 Full Duplex BCC
4 = DF1 Full Duplex CRC
5 = DF1 Half Duplex BCC
6 = DF1 Half Duplex CRC
7 = DNP
8 = PPP
Default : 1 = Modbus RTU
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
410
Registers Assignment to Module Hardware
Start Register + 1 Protocol station number
1 to 255 in standard Modbus
1 to 65534 in extended Modbus
0 to 254 in DF1
Default : 1
Start Register + 2 Store and forward enable
0 = disabled
1 = enabled
Default : 0 = disabled
Start Register + 3 Protocol addressing mode
0 = standard
1 = extended
Default: 0 = standard
Notes
This register assignment module replaces the CNFG Protocol Extended Settings module
used in earlier versions of TelePACE.
For SCADAPack, SCADAPack Light and SCADAPack Plus controllers Com3 is supported
only when the SCADAPack 5601 and 5604 I/O module is installed. Com4 is supported
only when the SCADAPack 5602 I/O module is installed. To optimize performance,
minimize the length of messages on com3 and com4. Examples of recommended uses for
com3 and com4 are for local operator terminals, and for programming and diagnostics using
the TelePACE program.
Extended addressing is supported only by the Modbus RTU and Modbus ASCII protocols.
To optimize performance, minimize the length of messages on com3 and com4. Examples of
recommended uses for com3 and com4 are for local operator terminals, and for
programming and diagnostics using the TelePACE program.
Refer to the TeleBUS Protocols User Manual for further information on protocols.
Four holding registers are always assigned to the I/O Database when this module is used.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
411
6.5.15 CNFG Protocol Settings Method 3
Description
The module, CNFG Protocol Settings Method 3, provides control of the protocol settings
for a specific serial port. This module supports extended addressing and Enron Modbus
parameters.
Settings are assigned from six consecutive holding registers. The registers are initialized
with the current value of the module parameters on power-up, and when the Register
Assignment is downloaded to the controller. Thereafter the data from all six holding
registers is written to the module parameters, whenever any of the registers change.
Use this module only when protocol settings need to be changed within a Ladders program.
It is more convenient to use the Controller Serial Ports Settings dialog to download protocol
settings with the program. Refer to the Serial Ports section in this manual for further
information on serial port settings.
Note: Any block transfer Ladder Logic function may be used to write data to the holding
registers used for this module. The data in the holding registers is written to the
module parameters only when the ladder function is energized. Users must ensure
the ladder function is only energized for one program scan. If the ladder function is
always energized problems with the serial communication will result.
Register Assignment
Module CNFG Protocol Settings Method3
Address com1, com2, com3, or com4.
Type Holding Register
Start First register of any unused
block of 6 consecutive holding
registers.
4xxxx
End Last register of block 4xxxx + 5
Registers 6 holding registers.
Description None
Extended Parameters None
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
412
Register Data
Registers Assignment to Module Hardware
Start Register Protocol type
0 = none
1 = Modbus RTU
2 = Modbus ASCII
3 = DF1 Full Duplex BCC
4 = DF1 Full Duplex CRC
5 = DF1 Half Duplex BCC
6 = DF1 Half Duplex CRC
7 = DNP
8 = PPP
Default : 1 = Modbus RTU
Start Register + 1 Protocol station number
1 to 255 in standard Modbus
1 to 65534 in extended Modbus
0 to 254 in DF1
Default : 1
Start Register + 2 Store and forward enable
0 = disabled
1 = enabled
Default : 0 = disabled
Start Register + 3 Protocol addressing mode
0 = standard
1 = extended
Default: 0 = standard
Start Register + 4 Enron Modbus enable
0 = disabled
1 = enabled
Default : 0 = disabled
Start Register + 5 Enron Modbus station number
1 to 255 in standard Modbus
1 to 65534 in extended Modbus
Default : 1
Notes
For SCADAPack, SCADAPack Light and SCADAPack Plus controllers Com3 is supported
only when the SCADAPack 5601 and 5604 I/O module is installed. Com4 is supported
only when the SCADAPack 5602 I/O module is installed. To optimize performance,
minimize the length of messages on com3 and com4. Examples of recommended uses for
com3 and com4 are for local operator terminals, and for programming and diagnostics using
the TelePACE program. Extended addressing is supported only by the Modbus RTU and
Modbus ASCII protocols.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
413
To optimize performance, minimize the length of messages on com3 and com4. Examples of
recommended uses for com3 and com4 are for local operator terminals, and for
programming and diagnostics using the TelePACE program.
Refer to the TeleBUS Protocols User Manual for further information on protocols.
Six holding registers are always assigned to the I/O Database when this module is used.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
414
6.5.16 CNFG Real Time Clock and Alarm
Description
The module, CNFG Real time clock and alarm, provides access to the controller real time
clock data and alarm settings. Real Time Clock and Alarm settings are assigned from eleven
consecutive holding registers. The registers are initialized with the current value of the
module parameters on power-up, and when the Register Assignment is downloaded to the
controller.
The clock data from the first 7 holding registers is written to the module parameters,
whenever any of these registers are changed by a Ladders program or C Application.
Otherwise, these holding registers are updated continuously with data read from the real
time clock.
Note: Any block transfer Ladder Logic function may be used to write data to the holding
registers used for this module. The data in the holding registers is written to the
module parameters only when the ladder function is energized. Users must ensure
the ladder function is only energized for one program scan. If the ladder function is
continuously energized the controller real time clock will not change.
The alarm settings are updated continuously with data read from the last 4 holding registers.
Register Assignment
Module CNFG Real time clock and alarm
Address No physical address is required.
Type Holding Register
Start First register of any unused
block of 11 consecutive
holding registers.
4xxxx
End Last register of block 4xxxx +10
Registers 11 holding registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Real time clock hour 0 to 23
Start Register + 1 Real time clock minute 0 to 59
Start Register + 2 Real time clock second 0 to 59
Start Register + 3 Real time clock year 00 to 99
Start Register + 4 Real time clock month 1 to 12
Start Register + 5 Real time clock day 1 to 31
Start Register + 6 Real time clock day of week 1 to 7,
1=Sunday, 2=Monday7=Saturday
Start Register + 7 Alarm hour 0 to 23
Start Register + 8 Alarm minute 0 to 59
Start Register + 9 Alarm second 0 to 59
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
415
Registers Assignment to Module Hardware
Start Register + 10 Alarm control 0 = no alarm
1 = absolute time
2 = elapsed time alarm
(relative from now)
** See note below.
** The Alarm Control register (Start Register + 10) enables or disables the alarm. A value
of 0 in this register disables the alarm. A value of 1 sets an alarm to be triggered in absolute
time, based on the values in the preceding three registers. A value of 2 sets the alarm to be
triggered at a latter time, starting now.
Note that the alarm settings above and those in the Sleep (SLP) function block will trigger
the same interrupt. See the Ladder Logic Function Reference in this book for details on the
SLP function. Using both alarm settings, therefore, in the same program is not
recommended.
Additional Notes
The 5203/4 Controllers have a hardware based real-time clock that independently maintains
the time and date for the operating system. The time and date remain accurate during power-
off. The calendar automatically handles leap years.
One method for setting the clock is to use the Edit/Force Register dialog to write the current
time to the appropriate module registers. Leave the force box in the dialog unchecked so that
the data is only written, not forced.
All seven registers for the real time clock must be set to valid values for the clock to operate
properly. Refer to real time clock specifications in the Controller System Manual for further
information.
Eleven holding registers are always assigned to the I/O Database when this module is used.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
416
6.5.17 CNFG Save Settings to EEPROM
Description
The module, CNFG Save settings to EEPROM, provides a way to save controller settings
to EEPROM. Saving to EEPROM is controlled by one assigned coil register. The controller
settings are saved when the coil register is set to 1. Once saved the coil register is
automatically reset to 0.
Register Assignment
Module CNFG Save settings to EEPROM
Address No physical address is required.
Type Coil Register
Start Any unused coil register. 0xxxx
End Same as start register.
Registers 1 coil register.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Save the following controller settings:
Serial port settings
Protocol settings
Enable store and forward settings
LED power settings
Mask for wake-up sources
HART interface configuration
Execution period on power-up for each PID
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
417
6.5.18 CNFG Serial Port Settings
Description
The module, CNFG Serial port settings, controls the configuration settings for a serial
port. Settings are assigned from nine consecutive holding registers. The holding registers are
initialized with the current value of the module parameters on power-up, and when the
Register Assignment is downloaded to the controller. Thereafter the data from all 9 holding
registers is written to the module parameters, whenever any of the registers change.
Use this module only when serial port settings need to be changed within a Ladders
program. It is more convenient to use the Controller Serial Ports Settings dialog to
download settings with the program. Refer to the Serial Ports section under Controller
Menu, in this manual, for further information on serial port settings.
Note: Any block transfer Ladder Logic function may be used to write data to the holding
registers used for this module. The data in the holding registers is written to the
module parameters only when the ladder function is energized. Users must ensure
the ladder function is only energized for one program scan. If the ladder function is
always energized problems with the serial communication will result.
Register Assignment
Module CNFG Serial port settings
Address Com1, com2, com3, or com4.
Type Holding Register
Start First register of any unused
block of 9 consecutive
holding registers.
4xxxx
End Last register of block 4xxxx +8
Registers 9 holding registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Baud rate
0 = 75 baud 1 = 110 baud
2 = 150 baud 3 = 300 baud
4 = 600 baud 5 = 1200 baud
6 = 2400 baud 7 = 4800 baud
8 = 9600 baud 9 = 19200 baud
10 =38400
11 = 115200 com3, com4 only
12 = 57600 com3, com4 only
Default : 8 = 9600 baud
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
418
Start Register + 1 Duplex 0 = half duplex
1 = full duplex
com1, com2 Default : 1 = full
com3, com4 Default : 0 = half
Start Register + 2 Parity 0 = none
1 = even
2 = odd
Default : 0 = none
Start Register + 3 Data bits 0 = 7 bits
1 = 8 bits
Default : 1 = 8 bits
Start Register + 4 Stop bits 0 = 1 bit
1 = 2 bits
Default : 0 = 1 bit
Start Register + 5 Receiver flow control
0 = none
1 = Modbus RTU (default)
Start Register + 6 Transmitter flow control
Com1, Com2 0 = none (default)
1 = XON/XOFF
Com3, Com4 0 = none (default)
1 = Ignore CTS
Start Register + 7 Port type 0 = automatic
1 = RS232
3 = RS485
6 = RS232 MODEM
7 = RS232 Collision Avoidance
Default : 1 = RS232
Start Register + 8 Serial time-out delay
0 to 65535 (x 0.1 seconds)
Default : 600 = 60 seconds
Notes
For SCADAPack, SCADAPack Light and SCADAPack Plus controllers Com3 is supported
only when the SCADAPack 5601 and 5604 I/O module is installed. Com4 is supported
only when the SCADAPack 5602 I/O module is installed. To optimize performance,
minimize the length of messages on com3 and com4. Examples of recommended uses for
com3 and com4 are for local operator terminals, and for programming and diagnostics using
the TelePACE program.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
419
6.5.19 CNFG Store and Forward
Description
The module, CNFG Store and forward, controls the store and forward table. Store and
Forward table data is assigned from 512 consecutive holding registers. One coil register is
assigned to clear the translation table.
This module is used by the SCADAPack controller series only. For SCADAPack 32
controllers use the Store and Forward command in TelePACE.
The holding registers are initialized with the current value of the module parameters on
power-up, and when the Register Assignment is downloaded to the controller. Thereafter the
table is updated continuously with data read from the holding registers. The table is cleared
when the coil register is set to 1. Once cleared the coil register is automatically reset to 0.
Register Assignment
Module CNFG Store and Forward
Address No physical address is required.
Type Coil Register
Start Any unused coil register. 0xxxx
End Same as start register.
Registers 1 coil register.
Description clear Store and Forward table
Type Holding Register
Start First register of any unused
block of 512 consecutive
holding registers.
4xxxx
End Last register in block. 4xxxx +511
Registers 512 holding registers
Description Translation table
Extended Parameters None
Coil Register Data
Registers Assignment to Module Hardware
Start Register Clear Translation table
Holding Register Data
Registers Assignment to Module Hardware
Start Register Translation table entry 0
Port A
0 = com1
1 = com2
2 = com3
3 = com4
Default : 0
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
420
Start Register + 1 Translation table entry 0
Station A
0 to 255 standard addressing
0 to 65534 extended addressing
65535 = disable
Default : 65535
Start Register + 2 Translation table entry 0
Port B
0 = com1
1 = com2
2 = com3
3 = com4
Default : 0
Start Register + 3 Translation table entry 0
Station B
0 to 255 standard addressing
0 to 65534 extended addressing
65535 = disable
Default : 65535
Start Register + 4 to
Start Register + 7
Translation table entry 1
Start Register + 8 to
Start Register + 11
Translation table entry 2
Start Register + 12 to
Start Register + 511
Translation table entries 3 to 127
Notes
Refer to the TeleBUS Protocols User Manual for further information on Store and Forward
messaging.
For SCADAPack, SCADAPack Light and SCADAPack Plus controllers Com3 is supported
only when the SCADAPack 5601 and 5604 I/O module is installed. Com4 is supported
only when the SCADAPack 5602 I/O module is installed. To optimize performance,
minimize the length of messages on com3 and com4. Examples of recommended uses for
com3 and com4 are for local operator terminals, and for programming and diagnostics using
the TelePACE program.
Store and forward messaging is enabled on the required serial ports using the module CNFG
Protocol settings.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
421
6.6 Counter I/O Modules
Counter input modules are used to assign data from physical counter inputs to input registers
in the I/O Database. The physical counter inputs are specific 5000 Series I/O modules and
controller counter inputs.
Counter input modules may assign data to any input registers that are not used by another
Analog Input module or Counter input module. There are 1024 I/O database input registers
available. These input registers are numbered 30001 - 31024. Input registers are referred to
as 3xxxx registers throughout this manual.
All I/O database input registers that are not assigned to any other I/O modules may be used
as general purpose input registers in a ladder program. The I/O modules available are
described in the following pages.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
422
6.6.1 CNTR Controller Counter Inputs
Description
The module, CNTR controller counter inputs, reads the three counter inputs on the
Micro16, SCADAPack, SCADAPack Light, SCADAPack, SCADAPack Plus, SCADAPack
32 and SCADAPack 32P controllers. Data is assigned to six consecutive input registers. The
input registers are updated continuously with data read from the counters.
Each counter is a 32-bit number, stored in two 16-bit registers. The first register holds the
least significant 16 bits of the counter. The second register holds the most significant 16 bits
of the counter. To obtain the correct count, both registers must be read with the same
protocol read command. Ladder Logic programs can read the registers in any order,
provided both registers are examined on the same pass through the program.
The maximum count is 4,294,967,295. Counters roll over to 0 when the maximum count is
exceeded.
Register Assignment
Module CNTR controller counter inputs
Address No physical address is required.
Type Input Register
Start First register of any unused
block of 6 consecutive input
registers.
3xxxx
End Last register of block 3xxxx +5
Registers 6 input registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register and
Start Register + 1
Controller counter input 0
(32 bit register)
Start Register + 2 and
Start Register + 3
Controller counter input 1
(32 bit register)
Start Register + 4 and
Start Register + 5
Controller counter input 2
(32 bit register)
Notes
Refer to the Hardware User Manual for further information on controller board counter
inputs.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
423
6.6.2 CNTR Controller Interrupt Input
Description
The module, CNTR controller interrupt input, reads the interrupt input on the Micro16,
SCADAPack, SCADAPack Light, SCADAPack, SCADAPack Plus, SCADAPack 32 and
SCADAPack 32P controllers as a counter input. Data is assigned to two consecutive input
registers. The input registers are updated continuously with data read from the counter.
The counter is a 32-bit number, stored in two 16-bit registers. The first register holds the
least significant 16 bits of the counter. The second register holds the most significant 16 bits
of the counter. To obtain the correct count, both registers must be read with the same
protocol read command. Ladder Logic programs can read the registers in any order,
provided both registers are examined on the same pass through the program.
The maximum count is 4,294,967,295. The counter rolls over to 0 when the maximum count
is exceeded.
Register Assignment
Module CNTR controller interrupt input
Address No physical address is required.
Type Input Register
Start First register of any unused
block of 2 consecutive input
registers.
3xxxx
End Last register of block 3xxxx +1
Registers 2 input registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register
and
Start Register + 1
Interrupt input counter
(32 bit register)
Notes
Refer to the SCADAPack and Micro16 System Manual for further information on controller
board counter inputs.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
424
6.6.3 CNTR 5410 input module
Description
The module, CNTR 5410 input module, provides four counter inputs. Data is assigned to
eight consecutive input registers. The input registers are updated continuously with data read
from the counters.
Each counter is a 32-bit number, stored in two 16-bit registers. The first register holds the
least significant 16 bits of the counter. The second register holds the most significant 16 bits
of the counter. To obtain the correct count, both registers must be read with the same
Modbus protocol read command. Ladder Logic programs can read the registers in any order,
provided both registers are examined on the same pass through the program.
The maximum count is 4,294,967,295. Counters roll back to 0 when the maximum count is
exceeded.
Register Assignment
Module CNTR 5203/4 counter inputs
Address This module is assigned a unique module
address between 0 and 15. No other CNTR-
type module may use this module address.
Type Input Register
Start First register of any unused
block of 8 consecutive input
registers.
3xxxx
End Last register of block 3xxxx +7
Registers 8 input registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register and
Start Register + 1
Counter input 0
(32 bit register)
Start Register + 2 and
Start Register + 3
Counter input 1
(32 bit register)
Start Register + 4 and
Start Register + 5
Counter input 2
(32 bit register)
Start Register + 6 and
Start Register + 7
Counter input 3
(32 bit register)
Notes
Refer to the 5410 High Speed Counter Input Module User Manual for further information.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
425
6.7 Diagnostic I/O Modules
Diagnostic modules are used to assign diagnostic data from the controller to input or status
registers in the I/O Database. The diagnostic data is used to monitor internal controller data
such as controller status code, the force LED, serial communication status and protocol
status.
Diagnostic I/O modules assign data to I/O database input or status registers, depending on
the type of data. Diagnostic I/O modules may assign data to any input or status registers in
the I/O database that are not being used by another I/O module.
All I/O database input and status registers that are not assigned to any other I/O modules
may be used as general purpose input or status registers in a ladder program. The I/O
modules available are described in the following pages.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
426
6.7.1 DIAG Controller Status Code
Description
The module, DIAG Controller Status Code, reads the controller status code and assigns it
in one input register. The input register is updated continuously with the status code.
The Status LED blinks a binary sequence equal to the controller status code. Note that if a
Register assignment table checksum error occurs, only the Status LED will indicate this
status code. The I/O scan is disabled if this error occurs, so that the module DIAG
Controller status code is no longer updated.
Register Assignment
Module DIAG Controller Status Code
Address No physical address is required.
Type Input Register
Start Any unused input register. 3xxxx
End Same as start register.
Registers 1 input register.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Controller status code:
0 = Normal
1 = I/O module communication failure
2 = Register Assignment Checksum error
Status LED - I/O Error Indication
When the Status LED flashes the error code 1 (i.e. a short flash, once every second), there is
a communication failure with one or more I/O module. To correct the problem, do one of the
following:
1. Ensure that every module contained in the Register Assignment is connected to the
controller. Check that the module address selected for each module agrees with the
selection made in the Register Assignment.
2. If a module is currently not connected to the controller, delete it from the Register
Assignment. Download the new Register Assignment to the controller.
3. If a module is still suspect of having failed, confirm the failure by removing the module
from the Register Assignment. Download the new Register Assignment to the controller.
The Status LED should stop flashing.
4. If unused modules must be intentionally left in the Register Assignment, the I/O error
indication may be disabled from a selection box on the Register Assignment dialog.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
427
Notes
Refer to the 5203/4 System Manual or the SCADAPack System Manual for further information on the
Status LED and Status Output.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
428
6.7.2 DIAG DNP Connection Status
Description
This module determines the connection status of a remote DNP station, by repeatedly
sending a short message to the selected remote station and monitoring the response.
The connection status information is assigned to an input register, which is updated
continuously.
One holding register is assigned to specify the repeat time period for polling the remote
station. A second holding register specifies the remote station address.
This module is used by the SCADAPack 32, SCADAPack 330/334 and SCADAPack 350
controllers only.
Register Assignment
Module DIAG DNP connection status
Address No address is required
Type Input Register
Start Any unused input register 3xxxx
End Same as start register
Registers 1 input register
Description Connection status:
0 = connection OK
1 = connection failed
Type Holding Register
Start First register of any unused block of 2
consecutive holding registers.
4xxxx
End Last register of block 4xxxx +1
Registers 2 holding registers.
Description Configuration data
Extended Parameters None
Holding Register Data
Registers Assignment to Module Hardware
Start Register DNP station address
Start Register + 1 Repeat rate (in seconds) for connection request message
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
429
6.7.3 DIAG DNP Event Status Module
Description
This module provides diagnostic data about DNP change events. The number of change
events stored in the event buffers is totaled for all DNP classes, and for all DNP point types.
The status information is assigned to nine consecutive input registers. The input registers are
updated continuously with data concerning the DNP change events.
One coil register is assigned to clear the change event buffers. The data is cleared when the
coil register is set to 1. Once the data is cleared the coil register is automatically reset to 0.
Register Assignment
Module DIAG DNP event status
Address No address is required
Type Input Register
Start First register of any unused block of 9
consecutive input registers.
3xxxx
End Last register of block 3xxxx +8
Registers 12 input registers
Description diagnostic data
Type Coil Register
Start Any unused coil register 0xxxx
End Same as start register
Registers 1 coil register
Description clear event buffers
Extended Parameters None
Input Register Data
Registers Assignment to Module Hardware
Start Register DNP event count for Binary Inputs
Start Register + 1 DNP event count for 16-bit Counter Inputs
Start Register + 2 DNP event count for 32-bit Counter Inputs
Start Register + 3 DNP event count for 16-bit Analog Inputs
Start Register + 4 DNP event count for 32-bit Analog Inputs
Start Register + 5 DNP event count for Short Float Analog Inputs
Start Register + 6 DNP event count for Class 1 Data
Start Register + 7 DNP event count for Class 2 Data
Start Register + 8 DNP event count for Class 3 Data
Start Register + 9 reserved for future use
Start Register
+10
reserved for future use
Start Register
+11
reserved for future use
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
430
Coil Register Data
Registers Assignment to Module Hardware
Start Register Clear change event buffers
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
431
6.7.4 DIAG DNP Port Status Module
Description
This module provides DNP diagnostic data for a specific communication port. Diagnostic
information is totaled for all DNP connections on the selected communication port.
The status information is assigned to nine consecutive input registers. The input registers are
updated continuously with the DNP diagnostic data.
One coil register is assigned to clear the diagnostic data. The data is cleared when the coil
register is set to 1. Once the data is cleared the coil register is automatically reset to 0.
Register Assignment
Module DIAG DNP port status
Address com1, com2, com3, com4, or LAN1
Type Input Register
Start First register of any unused block of 7
consecutive input registers.
3xxxx
End Last register of block 3xxxx +6
Registers 10 input registers
Description diagnostic data
Type Coil Register
Start Any unused coil register 0xxxx
End Same as start register
Registers 1 coil register
Description clear diagnostic data
Extended Parameters None
Input Register Data
Registers Assignment to Module Hardware
Start Register DNP message successes
Number of successful DNP message transactions initiated by this
station
Start Register + 1 DNP message failures
Number of failed DNP message transactions initiated by this station
Start Register + 2 DNP fails since last success
Number of consecutive failed DNP message transactions initiated by
this station since the last success
Start Register + 3 DNP format errors
Number of received DNP message frames with formatting errors
(including checksum errors and unrecognized commands)
Start Register + 4 DNP message frames received
Number of DNP message frames received
Start Register + 5 DNP message frames sent
Number of DNP message frames sent. This includes any message
retries at application or data link layer.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
432
Registers Assignment to Module Hardware
Start Register + 6 DNP messages received
Number of complete DNP messages received
Start Register + 7 DNP messages sent
Number of complete DNP messages sent. This includes any
message retries at the application layer.
Start Register + 8 reserved for future use
Start Register + 9 reserved for future use
Coil Register Data
Registers Assignment to Module Hardware
Start Register Clear diagnostic data
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
433
6.7.5 DIAG DNP Station Status
Description
This module provides DNP diagnostic data for a specific DNP remote station address.
Diagnostic information is totaled for all DNP communication with the station.
The status information is assigned to nine consecutive input registers. The input registers are
updated continuously with data concerning the DNP status of the specific interface.
One coil register is assigned to clear the diagnostic data. The data is cleared when the coil
register is set to 1. Once the data is cleared the coil register is automatically reset to 0.
One holding register specifies the remote station address.
Register Assignment
Module DIAG DNP station status
Address No address is required
Type Input Register
Start First register of any unused block of 10
consecutive input registers.
3xxxx
End Last register of block 3xxxx +9
Registers 10 input registers
Description diagnostic data
Type Coil Register
Start Any unused coil register 0xxxx
End Same as start register
Registers 1 coil register
Description clear diagnostic data
Type Holding Register
Start Any unused holding register. 4xxxx
End Same as start register
Registers 1 holding register.
Description DNP station address
Extended Parameters None
Input Register Data
Registers Assignment to Module Hardware
Start Register DNP message successes
Number of successful DNP message transactions initiated by this
station
Start Register + 1 DNP message failures
Number of failed DNP message transactions initiated by this station
Start Register + 2 DNP fails since last success
Number of consecutive failed DNP message transactions initiated by
this station since the last success
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
434
Registers Assignment to Module Hardware
Start Register + 3 DNP format errors
Number of received DNP message frames with formatting errors
(including checksum errors and unrecognized commands)
Start Register + 4 DNP message frames received
Number of DNP message frames received
Start Register + 5 DNP message frames sent
Number of DNP message frames sent. This includes any message
retries at application or data link layer.
Start Register + 6 DNP messages received
Number of complete DNP messages received
Start Register + 7 DNP messages sent
Number of complete DNP messages sent. This includes any
message retries at the application layer.
Start Register + 8 reserved for future use
Start Register + 9 reserved for future use
Coil Register Data
Registers Assignment to Module Hardware
Start Register Clear diagnostic data
Holding Register Data
Registers Assignment to Module Hardware
Start Register DNP station address
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
435
6.7.6 DIAG Force
Description
All user accessible Modbus registers in a SCADAPack controller can be forced to a desired
state or value. The DIAG Force module is used to determine if a Modbus register in a
SCADAPack controller is forced to some state or value. This module reads the forced state
of a SCADAPack controller, and assigns it to one status register. The status register is
updated continuously with the current forced state of the controller.
Note that the Force LED on SCADAPack controllers, excluding the SCADASense
programmable controllers, also indicates if a Modbus register is forced.
Register Assignment
Module DIAG Force
Address No physical address is required.
Type Status Register
Start Any unused status register. 1xxxx
End Same as start register.
Registers 1 status register.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register 0 = Modbus register is not forced
1 = Modbus register is forced
Force LED:
0 = Force LED is OFF
1 = Force LED is ON
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
436
6.7.7 DIAG IP Connections
Description
The module, DIAG IP connections, provides a summary of the IP connections. The
connection information is assigned to three consecutive input registers. The input registers
are updated continuously with connection data.
This module is used by the SCADAPack 32, SCADAPack 330/334 and SCADAPack 350
controllers only. The connection statistics include all IP connection types.
Register Assignment
Module DIAG IP connections
Address No physical address is required.
Type Input Register
Start First register of any unused
block of 3 consecutive input
registers.
3xxxx
End Last register of block 3xxxx + 2
Registers 3 input registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Number of current slave IP connections.
Start Register + 1 Number of current master IP connections.
Start Register + 2 Number of free IP connections.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
437
6.7.8 DIAG Logic Status
Description
The module, DIAG Logic Status, reads the Ladder Logic Application status in the RAM
and FLASH memory and assigns it to two input registers. The input registers are updated
continuously with the current application status.
Register Assignment
Module DIAG Logic Status
Address No physical address is required.
Type Input Register
Start Any unused input register. 3xxxx
End Last register in block. 3xxxx+1
Registers 2 input registers
Description None
Input Register Data
Registers Assignment to Module Hardware
Start Register Ladder Logic Program Status
0 = No Program
1 = Program Stopped
2 = Program Running in Debug Mode
3 = Program Running
Start Register + 1 Type of memory where Ladder Logic program is loaded:
0 = No program in RAM or FLASH;
1 = Program loaded in RAM
2 = Program loaded in FLASH
3 = Program loaded in RAM and FLASH
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
438
6.8 DIAG Modbus Protocol Status
Description
The module, DIAG Modbus protocol status, provides diagnostic data about Modbus
protocols for a specific communication interface. Diagnostic information is totaled for all
Modbus protocols on the selected communication interface. When multiple Modbus IP
connections exist on the same interface, diagnostic information is totaled for all connections.
This module is used by the SCADAPack 32 controller series only.
The status information is assigned to nine consecutive input registers. The input registers are
updated continuously with data concerning the Modbus protocol status of the specific
interface.
One coil register is assigned to clear the diagnostic data. The data is cleared when the coil
register is set to 1. Once the data is cleared the coil register is automatically reset to 0.
Register Assignment
Module DIAG Modbus protocol status
Address com1, com2, com3, com4, or Ethernet1
Type Input Register
Start First register of any unused block of 9
consecutive input registers.
3xxxx
End Last register of block 3xxxx +8
Registers 9 input registers
Description diagnostic data
Type Coil Register
Start Any unused coil register. 0xxxx
End Same as start register.
Registers 1 coil register.
Description clear diagnostic data
Extended Parameters None
Input Register Data
Registers Assignment to Module Hardware
Start Register Modbus command errors
Start Register + 1 Modbus format errors
Start Register + 2 Modbus checksum errors
Start Register + 3 Modbus slave commands received
Start Register + 4 Modbus master commands sent
Start Register + 5 Modbus master responses received
Start Register + 6 Modbus slave responses sent
Start Register + 7 Modbus stored messages
Start Register + 8 Modbus forwarded messages
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
439
Coil Register Data
Registers Assignment to Module Hardware
Start Register Clear diagnostic data
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
440
6.8.1 DIAG Serial Port Comm. Status
Description
The module, DIAG Serial port comm. status, provides diagnostic data about a specific
serial port. The status information is assigned to five consecutive input registers. The input
registers are updated continuously with data concerning the communication status of the
serial port.
Register Assignment
Module DIAG Serial port comm. Status
Address com1, com2, com3, or com4.
Type Input Register
Start First register of any unused
block of 5 consecutive input
registers.
3xxxx
End Last register of block 3xxxx + 4
Registers 5 input registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Framing errors
Start Register + 1 Parity errors
Start Register + 2 Character overrun errors
Start Register + 3 Buffer overrun errors
Start Register + 4 Integer value indicating the status of
Port I/O lines CTS and DCD:
The LSB = state of the CTS line.
Second to LSB = state of DCD input
Example:
Value of 3 implies CTS and DCD is
ON.
Value of 1 implies CTS is ON and DCD
is OFF.
Notes
For SCADAPack, SCADAPack Light and SCADAPack Plus controllers Com3 is supported
only when the SCADAPack 5601 and 5604 I/O module is installed. Com4 is supported
only when the SCADAPack 5602 I/O module is installed. To optimize performance,
minimize the length of messages on com3 and com4. Examples of recommended uses for
com3 and com4 are for local operator terminals, and for programming and diagnostics using
the TelePACE program.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
441
6.8.2 DIAG Serial Port Protocol Status
Description
The module, DIAG Serial port protocol status, provides diagnostic data about a specific
serial port. The status information is assigned to ten consecutive input registers. The input
registers are updated continuously with data concerning the protocol status of the serial port.
Register Assignment
Module DIAG Serial port comm. Status
Address com1, com2, com3, or com4.
Type Input Register
Start First register of any unused
block of 10 consecutive input
registers.
3xxxx
End Last register of block 3xxxx + 9
Registers 10 input registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Protocol command errors
Start Register + 1 Protocol format errors
Start Register + 2 Protocol checksum errors
Start Register + 3 Protocol slave commands received
Start Register + 4 Protocol master commands sent
Start Register + 5 Protocol master responses received
Start Register + 6 Protocol slave responses sent
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
442
Registers Assignment to Module Hardware
Start Register + 7 Protocol master command status
0 = message sent, waiting for response
1 = response received, no error occurred
2 = not used
3 = bad value in function code register
4 = bad value in slave controller address register
5 = bad value in slave register address
6 = bad value in length register
7 = serial port or protocol is invalid
8 = not used
9 = specified protocol is not supported by this controller
11 = an unexpected length response was received
This means corrupt messages for regular Modbus. Check the
format and checksum counters. For Enron Modbus, this is
normal.
12 = response timeout
24 = exception response: invalid function code
25 = exception response: invalid address
26 = exception response: invalid value
27 = protocol is invalid or serial port queue is full
28 = slave and master stations are equal; they must be different
29 = exception response: slave device failure
30 = exception response: slave device busy
Start Register + 8 Protocol stored messages
Start Register + 9 Protocol forwarded messages
Notes
For SCADAPack, SCADAPack Light and SCADAPack Plus controllers Com3 is supported
only when the SCADAPack 5601 and 5604 I/O module is installed. Com4 is supported
only when the SCADAPack 5602 I/O module is installed. To optimize performance,
minimize the length of messages on com3 and com4. Examples of recommended uses for
com3 and com4 are for local operator terminals, and for programming and diagnostics using
the TelePACE program.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
443
6.9 Digital Input I/O Modules
Digital input modules are used to assign data from physical digital inputs to status registers
in the I/O Database. The physical digital inputs are specific 5000 Series I/O modules,
generic I/O modules, and controller digital inputs.
Digital input modules may assign data to any status registers in the I/O database that are not
being used by another Digital input module. There are 4096 I/O database status registers
available. These status registers are numbered 10001 - 14096. Status registers are referred to
as 1xxxx registers throughout this manual.
All I/O database status registers that are not assigned to any other I/O modules may be used
as general-purpose status registers in a ladder program. The I/O modules available are
described in the following pages.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
444
6.9.1 DIN Controller Digital Inputs
Description
The module, DIN controller digital inputs, reads the three digital inputs on the Micro16,
SCADAPack, SCADAPack Light, SCADAPack, SCADAPack Plus, SCADAPack 32 and
SCADAPack 32P controllers. Data is assigned to three consecutive status registers. The
status registers are updated continuously with data read from the digital inputs.
Register Assignment
Module DIN controller digital inputs
Address No physical address is required.
Type Status Register
Start First register of any unused
block of 3 consecutive status
registers.
1xxxx
End Last register of block 1xxxx + 2
Registers 3 status registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Controller board digital input 0
Start Register + 1 Controller board digital input 1
Start Register + 2 Controller board digital input 2
Notes
Refer to the Hardware User Manual for further information.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
445
6.9.2 DIN Controller Interrupt Input
Description
The module, DIN controller interrupt input, reads the state of the interrupt input on the
Micro16, SCADAPack, SCADAPack Light, SCADAPack, SCADAPack Plus, SCADAPack
32 and SCADAPack 32P controllers. Data is assigned to one status register. The status
register is updated continuously with the state of the interrupt input.
Register Assignment
Module DIN controller interrupt input
Address No physical address is required.
Type Status Register
Start Any unused status register. 1xxxx
End Same as start register.
Registers 1 status registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Controller board Interrupt Input
Notes
Refer to the Hardware User Manual for further information on the Controller interrupt input.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
446
6.9.3 DIN Controller Option Switches
Description
The module, DIN Controller option switches, reads the state of the three option switches
on the Micro16, SCADAPack, SCADAPack Light, SCADAPack, SCADAPack Plus,
SCADAPack 32 and SCADAPack 32P controllers. Data is assigned to three status registers.
The status registers are updated continuously with data read from the option switches.
Register Assignment
Module
DIN 5203/4 option switches
Address
No physical address is required.
Type
Status Register
Start
First register of any unused
block of 3 consecutive status
registers.
1xxxx
End
Last register of block 1xxxx + 2
Registers
3 status registers.
Description
None
Extended Parameters
None
Register Data
Registers Assignment to Module Hardware
Start Register Controller board option switch 1
Start Register + 1 Controller board option switch 2
Start Register + 2 Controller board option switch 3
Notes
The option switches are also used as configuration switches for the SCADAPack I/O
modules. Refer to these I/O modules for details.
Refer to the 5203/4 System Manual or the SCADAPack System Manual for further
information on the controller option switches.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
447
6.9.4 DIN SCADAPack 32 Option Switches
Description
The module, DIN SCADAPack 32 option switches, reads the state of the four option
switches on the SCADAPack 32 controller board. Data is assigned to four status registers.
The status registers are updated continuously with data read from the option switches.
Register Assignment
Module DIN SCADAPack 32 option switches
Address No physical address is required.
Type Status Register
Start First register of any unused
block of 4 consecutive status
registers.
1xxxx
End Last register of block 1xxxx + 3
Registers 4 status registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Controller board option switch 1
Start Register + 1 Controller board option switch 2
Start Register + 2 Controller board option switch 3
Start Register + 3 Controller board option switch 4
Notes
The option switches are also used as configuration switches for the SCADAPack I/O
modules. Refer to these I/O modules for details.
Refer to the SCADAPack 32 System Manual for further information on the controller option
switches.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
448
6.9.5 DIN 5401 Module
Description
The DIN 5401 module provides eight digital inputs. Data is assigned to eight consecutive
status registers. The status registers are updated continuously with data read from the digital
inputs.
When there are digital outputs being used in combination with digital inputs on the 5401, a
full 8 status registers must still be assigned to the DIN 5401 module. When this is the case,
a DOUT 5401 module must also be added to the Register Assignment with the same
module address.
Register Assignment
Module DIN 5401 module
Address This module is assigned a unique module
address between 0 and 7. No other DIN-
type module may use this module address.
Type Status Register
Start First register of any unused
block of 8 consecutive status
registers.
1xxxx
End Last register of block 1xxxx + 7
Registers 8 status registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Digital input 0
Start Register + 1 Digital input 1
Start Register + 2 Digital input 2
Start Register + 3 Digital input 3
Start Register + 4 Digital input 4
Start Register + 5 Digital input 5
Start Register + 6 Digital input 6
Start Register + 7 Digital input 7
Notes
Refer to the 5401 Digital I/O Module User Manual for further information.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
449
6.9.6 DIN 5402 Module
Description
The DIN 5402 module provides sixteen digital inputs. Data is assigned to sixteen
consecutive status registers. The status registers are updated continuously with data read
from the digital inputs.
Register Assignment
Module DIN 5402 module
Address This module is assigned a unique module
address between 0 and 15. No other DIN-
type module may use this module address.
Type Status Register
Start First register of any unused
block of 16 consecutive
status registers.
1xxxx
End Last register of block 1xxxx + 15
Registers 16 status registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Digital input 0
Start Register + 1 Digital input 1
Start Register + 2 Digital input 2
Start Register + 3 Digital input 3
Start Register + 4 Digital input 4
Start Register + 5 Digital input 5
Start Register + 6 Digital input 6
Start Register + 7 Digital input 7
Start Register + 8 Digital input 8
Start Register + 9 Digital input 9
Start Register + 10 Digital input 10
Start Register + 11 Digital input 11
Start Register + 12 Digital input 12
Start Register + 13 Digital input 13
Start Register + 14 Digital input 14
Start Register + 15 Digital input 15
Notes
Refer to the 5402 Digital I/O Module User Manual for further information.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
450
6.9.7 DIN 5403 Module
Description
The DIN 5403 module provides eight digital inputs. Data is assigned to eight consecutive
status registers. The status registers are updated continuously with data read from the digital
inputs.
Register Assignment
Module DIN 5403 module
Address This module is assigned a unique module
address between 0 and 7. No other DIN-
type module may use this module address.
Type Status Register
Start First register of any unused
block of 8 consecutive status
registers.
1xxxx
End Last register of block 1xxxx + 7
Registers 8 status registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Digital input 0
Start Register + 1 Digital input 1
Start Register + 2 Digital input 2
Start Register + 3 Digital input 3
Start Register + 4 Digital input 4
Start Register + 5 Digital input 5
Start Register + 6 Digital input 6
Start Register + 7 Digital input 7
Notes
Refer to the 5403 Digital Input Module User Manual for further information.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
451
6.9.8 DIN 5404 Module
Description
The DIN 5404 module provides sixteen digital inputs. Data is assigned to sixteen
consecutive status registers. The status registers are updated continuously with data read
from the digital inputs.
Register Assignment
Module DIN 5404 module
Address This module is assigned a unique module
address between 0 and 15. No other DIN-
type module may use this module address.
Type Status Register
Start First register of any unused
block of 16 consecutive
status registers.
1xxxx
End Last register of block 1xxxx + 15
Registers 16 status registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Digital input 0
Start Register + 1 Digital input 1
Start Register + 2 Digital input 2
Start Register + 3 Digital input 3
Start Register + 4 Digital input 4
Start Register + 5 Digital input 5
Start Register + 6 Digital input 6
Start Register + 7 Digital input 7
Start Register + 8 Digital input 8
Start Register + 9 Digital input 9
Start Register + 10 Digital input 10
Start Register + 11 Digital input 11
Start Register + 12 Digital input 12
Start Register + 13 Digital input 13
Start Register + 14 Digital input 14
Start Register + 15 Digital input 15
Notes
Refer to the 5404 Digital Input Module User Manual for further information.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
452
6.9.9 DIN 5405 Module
Description
The DIN 5405 module provides thirty-two digital inputs. Data is assigned to thirty-two
consecutive status registers. The status registers are updated continuously with data read
from the digital inputs.
Register Assignment
Module DIN 5404 module
Address This module is assigned a unique module
address between 0 and 15. No other DIN-
type module may use this module address.
Type Status Register
Start First register of any unused
block of 32 consecutive
status registers.
1xxxx
End Last register of block 1xxxx + 31
Registers 32 status registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Digital input 0
Start Register + 1 Digital input 1
Start Register + 2 Digital input 2
Start Register + 3 Digital input 3
Start Register + 4 Digital input 4
Start Register + 5 Digital input 5
Start Register + 6 Digital input 6
Start Register + 7 Digital input 7
Start Register + 8 Digital input 8
Start Register + 9 Digital input 9
Start Register + 10 Digital input 10
Start Register + 11 Digital input 11
Start Register + 12 Digital input 12
Start Register + 13 Digital input 13
Start Register + 14 Digital input 14
Start Register + 15 Digital input 15
Start Register + 16 Digital input 16
Start Register + 17 Digital input 17
Start Register + 18 Digital input 18
Start Register + 19 Digital input 19
Start Register + 20 Digital input 20
Start Register + 21 Digital input 21
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
453
Registers Assignment to Module Hardware
Start Register + 22 Digital input 22
Start Register + 23 Digital input 23
Start Register + 24 Digital input 24
Start Register + 25 Digital input 25
Start Register + 26 Digital input 26
Start Register + 27 Digital input 27
Start Register + 28 Digital input 28
Start Register + 29 Digital input 29
Start Register + 30 Digital input 30
Start Register + 31 Digital input 31
Notes
Refer to the 5405 Digital Input Module User Manual for further information.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
454
6.9.10 DIN 5414 Module
Description
The DIN 5414 module provides sixteen digital inputs from a 5414 Digital Input module. A
maximum of sixteen 5414 digital input modules may be installed on the I/O bus.
Register Assignment
The register assignment for the DIN 5414 module is used to configure the registers used for
the module data and the Extended Parameters available for the module. To open the register
assignment dialog for the DIN 5414 module:
Select Register Assignment from the Controller menu in TelePACE.
In the Register Assignment window select the Add button.
In the Add Register Assignment dialog select the DIN 5414 module from the list presented
in the Module window.
The register assignment dialog for the DIN 5414 module is shown below.
The Module selection displays the name of the 5414 Digital Analog Input module used for
the register assignment.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
455
The Address selection displays the module address of the physical 5414 Digital Input
module. The address on the module is selected via dip switches on the module. A maximum
of sixteen DIN type modules may be added to a system.
The register type 1xxxx defines the register range for the digital input status data. Sixteen
sequential registers are needed for the DIN 5414 module. Any unused block of sixteen
registers may be used.
The Extended Parameters grouping defines the type of data returned from the DIN 5414
module, filtering used by all inputs and the scan frequency. The AC/DC selection for all
inputs defines the input measurement type for the digital inputs.
- The DC selection sets the input to measure DC input signals.
- The AC selection sets the input to measure AC input signals.
The Scan Frequency selection set the scan rate for all digital inputs. . The scan rate
selection is not critical but AC noise rejection is improved at the correct frequency. If the
module is used in a DC environment, the 60 Hz setting will yield slightly faster response
time.
- The 60 Hz selection synchronizes the input scanning to 60 Hz.
- The 50 Hz selection synchronizes the input scanning to 50 Hz.
Register Data
Registers Assignment to Module Hardware
Start Register Digital input 0
Start Register + 1 Digital input 1
Start Register + 2 Digital input 2
Start Register + 3 Digital input 3
Start Register + 4 Digital input 4
Start Register + 5 Digital input 5
Start Register + 6 Digital input 6
Start Register + 7 Digital input 7
Start Register + 8 Digital input 8
Start Register + 9 Digital input 9
Start Register + 10 Digital input 10
Start Register + 11 Digital input 11
Start Register + 12 Digital input 12
Start Register + 13 Digital input 13
Start Register + 14 Digital input 14
Start Register + 15 Digital input 15
Notes
Refer to the 5414 Digital Input Module User Manual for further information.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
456
6.9.11 DIN 5421 Module
Description
The DIN 5421 module provides eight digital inputs. Data is assigned to eight consecutive
status registers. The status registers are updated continuously with data read from the digital
inputs.
Register Assignment
Module DIN 5421 module
Address This module is assigned a unique module
address between 0 and 7. No other DIN-
type module may use this module address.
Type Status Register
Start First register of any unused
block of 8 consecutive status
registers.
1xxxx
End Last register of block 1xxxx + 7
Registers 8 status registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Digital input 0
Start Register + 1 Digital input 1
Start Register + 2 Digital input 2
Start Register + 3 Digital input 3
Start Register + 4 Digital input 4
Start Register + 5 Digital input 5
Start Register + 6 Digital input 6
Start Register + 7 Digital input 7
Notes
Refer to the 5421 Switch Input Module Manual for further information.
6.9.12 DIN Generic 16 Point Module
Description
The DIN Generic 16 point module provides sixteen digital inputs. Data is assigned to
sixteen consecutive status registers. The status registers are updated continuously with data
read from the digital inputs. The DIN Generic 16 point module may be used in place of
any other 16 point DIN-type module.
The DIN Generic 16 point module type is a useful selection early on in the system design
stage before the final selection of the specific DIN module type is known.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
457
Register Assignment
Module DIN Generic 16 point module
Address This module is assigned a unique module
address between 0 and 15. No other DIN-
type module may use this module address.
Type Status Register
Start First register of any unused
block of 16 consecutive
status registers.
1xxxx
End Last register of block 1xxxx + 15
Registers 16 status registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Digital input 0
Start Register + 1 Digital input 1
Start Register + 2 Digital input 2
Start Register + 3 Digital input 3
Start Register + 4 Digital input 4
Start Register + 5 Digital input 5
Start Register + 6 Digital input 6
Start Register + 7 Digital input 7
Start Register + 8 Digital input 8
Start Register + 9 Digital input 9
Start Register + 10 Digital input 10
Start Register + 11 Digital input 11
Start Register + 12 Digital input 12
Start Register + 13 Digital input 13
Start Register + 14 Digital input 14
Start Register + 15 Digital input 15
Notes
For further information, refer to the User Manual for the specific 16 point DIN module used.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
458
6.9.13 DIN Generic 8 Point Module
Description
The DIN Generic 8 point module provides eight digital inputs. Data is stored in eight
consecutive status registers. The status registers are updated continuously with data read
from the digital inputs. The DIN Generic 8 point module may be used in place of any other
8 point DIN-type module.
The DIN Generic 8 point module type is a useful selection early on in the system design stage
before the final selection of the specific DIN module type is known.
Register Assignment
Module DIN Generic 8 point module
Address This module is assigned a unique module
address between 0 and 7. No other DIN-
type module may use this module address.
Type Status Register
Start First register of any unused
block of 8 consecutive status
registers.
1xxxx
End Last register of block 1xxxx + 7
Registers 8 status registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Digital input 0
Start Register + 1 Digital input 1
Start Register + 2 Digital input 2
Start Register + 3 Digital input 3
Start Register + 4 Digital input 4
Start Register + 5 Digital input 5
Start Register + 6 Digital input 6
Start Register + 7 Digital input 7
Notes
For further information, refer to the User Manual for the specific 8 point DIN module used.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
459
6.10 Digital Output I/O Modules
Digital output modules are used to assign data from the I/O Database to physical digital
outputs. The physical digital outputs are specific 5000 Series I/O modules or generic I/O
modules.
Digital output modules may assign data to any coil registers in the I/O database that are not
being used by another Digital output module. There are 4096 I/O database coil registers
available. These coil registers are numbered 00001 - 04096. Coil registers are referred to as
0xxxx registers throughout this manual.
All I/O database coil registers that are not assigned to any other I/O modules may be used as
general-purpose coil registers in a ladder program. The I/O modules available are described
in the following pages.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
460
6.10.1 DOUT 5401 Module
Description
The DOUT 5401 module provides eight digital outputs. Data is assigned from eight
consecutive coil registers. The digital outputs are updated continuously with data read from
the coil registers.
When there are digital inputs being used in combination with digital outputs on the 5401, a
full 8 coil registers must still be assigned to the DOUT 5401 module. When this is the case,
a DIN 5401 module must also be added to the Register Assignment with the same module
address.
Register Assignment
Module DOUT 5401 module
Address This module is assigned a unique module
address between 0 and 7. No other DOUT-
type module may use this module address.
Type Coil Register
Start First register of any unused
block of 8 consecutive coil
registers.
0xxxx
End Last register of block 0xxxx + 7
Registers 8 coil registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Digital output 0
Start Register + 1 Digital output 1
Start Register + 2 Digital output 2
Start Register + 3 Digital output 3
Start Register + 4 Digital output 4
Start Register + 5 Digital output 5
Start Register + 6 Digital output 6
Start Register + 7 Digital output 7
Notes
Refer to the 5401 Digital I/O Module User Manual for further information.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
461
6.10.2 DOUT 5402 Module
Description
The DOUT 5402 module provides sixteen digital outputs. Data is assigned from sixteen
consecutive coil registers. The digital outputs are updated continuously with data read from
the coil registers.
Register Assignment
Module DOUT 5402 module
Address This module is assigned a unique module
address between 0 and 15. No other
DOUT-type module may use this module
address.
Type Coil Register
Start First register of any unused
block of 16 consecutive coil
registers.
0xxxx
End Last register of block 0xxxx + 15
Registers 16 coil registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Digital output 0
Start Register + 1 Digital output 1
Start Register + 2 Digital output 2
Start Register + 3 Digital output 3
Start Register + 4 Digital output 4
Start Register + 5 Digital output 5
Start Register + 6 Digital output 6
Start Register + 7 Digital output 7
Start Register + 8 Digital output 8
Start Register + 9 Digital output 9
Start Register + 10 Digital output 10
Start Register + 11 Digital output 11
Start Register + 12 Digital output 12
Start Register + 13 Digital output 13
Start Register + 14 Digital output 14
Start Register + 15 Digital output 15
Notes
Refer to the 5402 Digital I/O Module User Manual for further information.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
462
6.10.3 DOUT 5406 Module
Description
The DOUT 5406 module provides sixteen digital outputs. Data is assigned from sixteen
consecutive coil registers. The digital outputs are updated continuously with data read from
the coil registers.
Register Assignment
Module DOUT 5406 module
Address This module is assigned a unique module
address between 0 and 15. No other
DOUT-type module may use this module
address.
Type Coil Register
Start First register of any unused
block of 16 consecutive coil
registers.
0xxxx
End Last register of block 0xxxx + 15
Registers 16 coil registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Digital output 0
Start Register + 1 Digital output 1
Start Register + 2 Digital output 2
Start Register + 3 Digital output 3
Start Register + 4 Digital output 4
Start Register + 5 Digital output 5
Start Register + 6 Digital output 6
Start Register + 7 Digital output 7
Start Register + 8 Digital output 8
Start Register + 9 Digital output 9
Start Register + 10 Digital output 10
Start Register + 11 Digital output 11
Start Register + 12 Digital output 12
Start Register + 13 Digital output 13
Start Register + 14 Digital output 14
Start Register + 15 Digital output 15
Notes
Refer to the 5406 Digital Output Module User Manual for further information.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
463
6.10.4 DOUT 5407 Module
Description
The DOUT 5407 module provides eight digital outputs. Data is assigned from eight
consecutive coil registers. The digital outputs are updated continuously with data read from
the coil registers.
Register Assignment
Module DOUT 5407 module
Address This module is assigned a unique module
address between 0 and 7. No other DOUT-
type module may use this module address.
Type Coil Register
Start First register of any unused
block of 8 consecutive coil
registers.
0xxxx
End Last register of block 0xxxx + 7
Registers 8 coil registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Digital output 0
Start Register + 1 Digital output 1
Start Register + 2 Digital output 2
Start Register + 3 Digital output 3
Start Register + 4 Digital output 4
Start Register + 5 Digital output 5
Start Register + 6 Digital output 6
Start Register + 7 Digital output 7
Notes
Refer to the 5407 Relay Output Module Manual for further information.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
464
6.10.5 DOUT 5408 Module
Description
The DOUT 5408 module provides eight digital outputs. Data is assigned from eight
consecutive coil registers. The digital outputs are updated continuously with data read from
the coil registers.
Register Assignment
Module DOUT 5408 module
Address This module is assigned a unique module
address between 0 and 7. No other DOUT-
type module may use this module address.
Type Coil Register
Start First register of any unused
block of 8 consecutive coil
registers.
0xxxx
End Last register of block 0xxxx + 7
Registers 8 coil registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Digital output 0
Start Register + 1 Digital output 1
Start Register + 2 Digital output 2
Start Register + 3 Digital output 3
Start Register + 4 Digital output 4
Start Register + 5 Digital output 5
Start Register + 6 Digital output 6
Start Register + 7 Digital output 7
Notes
Refer to the 5408 Digital Output Module Manual for further information.
6.10.6 DOUT 5409 Module
Description
The DOUT 5409 module provides eight digital outputs. Data is assigned from eight
consecutive coil registers. The digital outputs are updated continuously with data read from
the coil registers.
Register Assignment
Module DOUT 5409 module
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
465
Address This module is assigned a unique module
address between 0 and 7. No other DOUT-
type module may use this module address.
Type Coil Register
Start First register of any unused
block of 8 consecutive coil
registers.
0xxxx
End Last register of block 0xxxx + 7
Registers 8 coil registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Digital output 0
Start Register + 1 Digital output 1
Start Register + 2 Digital output 2
Start Register + 3 Digital output 3
Start Register + 4 Digital output 4
Start Register + 5 Digital output 5
Start Register + 6 Digital output 6
Start Register + 7 Digital output 7
Notes
Refer to the 5409 Digital Output Module Manual for further information.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
466
6.10.7 DOUT 5411 Module
Description
The DOUT 5411 module provides thirty-two digital outputs. Data is assigned from thirty-
two consecutive coil registers. The digital outputs are updated continuously with data read
from the coil registers.
Register Assignment
Module DOUT 5411 module
Address This module is assigned a unique module
address between 0 and 15. No other
DOUT-type module may use this module
address.
Type Coil Register
Start First register of any unused
block of 32 consecutive coil
registers.
0xxxx
End Last register of block 0xxxx + 31
Registers 32 coil registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Digital output 0
Start Register + 1 Digital output 1
Start Register + 2 Digital output 2
Start Register + 3 Digital output 3
Start Register + 4 Digital output 4
Start Register + 5 Digital output 5
Start Register + 6 Digital output 6
Start Register + 7 Digital output 7
Start Register + 8 Digital output 8
Start Register + 9 Digital output 9
Start Register + 10 Digital output 10
Start Register + 11 Digital output 11
Start Register + 12 Digital output 12
Start Register + 13 Digital output 13
Start Register + 14 Digital output 14
Start Register + 15 Digital output 15
Start Register + 16 Digital output 16
Start Register + 17 Digital output 17
Start Register + 18 Digital output 18
Start Register + 19 Digital output 19
Start Register + 20 Digital output 20
Start Register + 21 Digital output 21
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
467
Registers Assignment to Module Hardware
Start Register + 22 Digital output 22
Start Register + 23 Digital output 23
Start Register + 24 Digital output 24
Start Register + 25 Digital output 25
Start Register + 26 Digital output 26
Start Register + 27 Digital output 27
Start Register + 28 Digital output 28
Start Register + 29 Digital output 29
Start Register + 30 Digital output 30
Start Register + 31 Digital output 31
Notes
Refer to the 5411 Digital Output Module User Manual for further information.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
468
6.10.8 DOUT 5415 Module
Description
The DOUT 5415 module provides twelve relay digital outputs. Data is assigned from
twelve consecutive coil registers. The 5415 digital outputs are updated continuously with
data read from the coil registers.
Register Assignment
Module DOUT 5415 module
Address This module is assigned a unique module
address between 0 and 15. No other DOUT-
type module may use this module address.
Type Coil Register
Start First register of any unused
block of 12 consecutive coil
registers.
0xxxx
End Last register of block 0xxxx + 11
Registers 11 coil registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Digital output 0
Start Register + 1 Digital output 1
Start Register + 2 Digital output 2
Start Register + 3 Digital output 3
Start Register + 4 Digital output 4
Start Register + 5 Digital output 5
Start Register + 6 Digital output 6
Start Register + 7 Digital output 7
Start Register + 8 Digital output 8
Start Register + 9 Digital output 9
Start Register + 10 Digital output 10
Start Register + 11 Digital output 11
Notes
Refer to the 5415 Digital Output Module User Manual for further information.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
469
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
470
6.10.9 DOUT Generic 16 Point Module
Description
The DOUT Generic 16 point module provides sixteen digital outputs. Data is assigned
from sixteen consecutive coil registers. The digital outputs are updated continuously with
data read from the coil registers. The DOUT Generic 16 point module may be used in
place of any other 16 point DOUT-type module.
The DOUT Generic 16 point module type is a useful selection early on in the system
design stage before the final selection of the specific DOUT module type is known.
Register Assignment
Module Generic 16 point module
Address This module is assigned a unique module
address between 0 and 15. No other
DOUT-type module may use this module
address.
Type Coil Register
Start First register of any unused
block of 16 consecutive coil
registers.
0xxxx
End Last register of block 0xxxx + 15
Registers 16 coil registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Digital output 0
Start Register + 1 Digital output 1
Start Register + 2 Digital output 2
Start Register + 3 Digital output 3
Start Register + 4 Digital output 4
Start Register + 5 Digital output 5
Start Register + 6 Digital output 6
Start Register + 7 Digital output 7
Start Register + 8 Digital output 8
Start Register + 9 Digital output 9
Start Register + 10 Digital output 10
Start Register + 11 Digital output 11
Start Register + 12 Digital output 12
Start Register + 13 Digital output 13
Start Register + 14 Digital output 14
Start Register + 15 Digital output 15
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
471
Notes
For further information, refer to the Digital Output Module User Manual for the specific 16-
point DOUT module used.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
472
6.10.10 DOUT Generic 8 Point Module
Description
The DOUT Generic 8 point module provides eight digital outputs. Data is assigned from
eight consecutive coil registers. The digital outputs are updated continuously with data read
from the coil registers. The DOUT Generic 8 point module may be used in place of any
other 8 point DOUT-type module.
The DOUT Generic 8 point module type is a useful selection early on in the system design
stage before the final selection of the specific DOUT module type is known.
Register Assignment
Module DOUT Generic 8 point module
Address This module is assigned a unique module
address between 0 and 7. No other DOUT-
type module may use this module address.
Type Coil Register
Start First register of any unused
block of 8 consecutive coil
registers.
0xxxx
End Last register of block 0xxxx + 7
Registers 8 coil registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Digital output 0
Start Register + 1 Digital output 1
Start Register + 2 Digital output 2
Start Register + 3 Digital output 3
Start Register + 4 Digital output 4
Start Register + 5 Digital output 5
Start Register + 6 Digital output 6
Start Register + 7 Digital output 7
Notes
For further information, refer to the Digital Output Module Manual for the specific 8 point
DOUT module used.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
473
6.11 SCADAPack and SCADASense Series I/O Modules
SCADAPack and SCADASense Series I/O modules assign data from registers to physical
outputs, and assign data from physical inputs to registers. These I/O modules provide analog
I/O points, digital I/O points and may assign data to registers that are not used by any other
I/O module.
The following modules interface with SCADAPack and SCADASense Series I/O hardware.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
474
6.11.1 4202 DR Extended/4203 DR IO
Description
The SCADASense 4203 DR, and a SCADASense 4202 DR manufactured after July 13,
2004, may use the 4202 DR Extended/4203 DR I/O register assignment. The 4202 DR must
have controller board version 5 and terminal board version 6.
A SCADASense 4203 DR, or 4202 DR with Extended I/O, provides one digital point, which
may operate as a digital input/counter or as a digital output. The digital output shares the
same physical connections as the digital input. When the output is turned OFF, the point
may be used as input. When the output is turned on it functions only as a digital output.
Digital point data is assigned to a single coil register and a single status register. The coil
register is updated continuously with data read from the coil register. The status register is
updated continuously with data read from the digital input.
Analog and counter input data is assigned to five consecutive input registers. One input
register is used to monitor the controller input power and two counter input double registers
(32 bit). These input registers are updated continuously with data read from the analog
inputs and counter input.
Analog output data is assigned to a single analog output register. The analog output is
updated continuously with the data read from the holding register.
Register Assignment
Module 4202 DR Extended/4203 DR I/O Module
Address Fixed
Type Coil Register
Start Any unused coil register. 0xxxx
End Same as first register. 0xxxx
Registers 1 coil registers
Description digital output
Type Status Register
Start Any unused status register 1xxxx
End Same as first register. 1xxxx
Registers 1 status register
Description Digital input
Type Input Register
Start First register of any unused block of 5
consecutive status registers.
3xxxx
End Last register of block 3xxxx + 4
Registers 5 input registers
Description Analog and counter inputs
Type Analog Output Register
Start Any unused analog output register 4xxxx
End Same as first register 4xxxx
Registers 1 analog output register
Description Analog outputs
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
475
Extended Parameters None
Coil Register Data
Registers Assignment to Module Hardware
Start Register Digital output 0
Status Register Data
Registers Assignment to Module Hardware
Start Register Digital input 0
Analog and Counter Input Register Data
Registers Assignment to Module Hardware
Start Register Analog input Supply Voltage (mV)
Start Register + 1 and +2 Counter input, 32 bit register
Start Register + 3 and +4 Counter input, 32 bit register
Analog Output Register Data
Registers Assignment to Module Hardware
Start Register Analog output Input Voltage (mV)
Notes
Only one 4202 DR Extended/4203 DR I/O may be assigned.
Refer to the SCADASense 4202 DR Hardware Manual for information on analog and
digital I/O usage.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
476
6.11.2 4202 DR I/O
Description
Digital input data is assigned to a single status register. The status register is updated
continuously with data read from the digital input.
Analog and counter input data is assigned to five consecutive input registers. One input
register is used to monitor the controller input power and two counter input double registers
(32 bit). These input registers are updated continuously with data read from the analog
inputs and counter input.
Analog output data is assigned to a single analog output register. The analog output is
updated continuously with the data read from the holding register.
Register Assignment
Module 4202 DR I/O Module
Address Fixed
Type Status Register
Start Any unused status register 1xxxx
End Same as first register. 1xxxx
Registers 1 status register
Description Digital input
Type Input Register
Start First register of any unused block of 5
consecutive status registers.
3xxxx
End Last register of block 3xxxx + 4
Registers 5 input registers
Description Analog and counter inputs
Type Analog Output Register
Start Any unused analog output register 4xxxx
End Same as first register 4xxxx
Registers 1 analog output register
Description Analog outputs
Extended Parameters None
Status Register Data
Registers Assignment to Module Hardware
Start Register Digital input 0
Analog and Counter Input Register Data
Registers Assignment to Module Hardware
Start Register Analog input Supply Voltage (mV)
Start Register + 1 and +2 Counter input, 32 bit register
Start Register + 3 and +4 Counter input, 32 bit register
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
477
Analog Output Register Data
Registers Assignment to Module Hardware
Start Register Analog output Input Voltage (mV)
Notes
Only one 4202 DR I/O may be assigned.
Refer to the SCADASense 4202 DR Hardware Manual for information on analog and
digital I/O usage.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
478
6.11.3 4202/4203 DS I/O
Description
The 4202/4203 DS I/O register assignment is used for the SCADASense DS Series of controllers
(4202 DS and 4203 DS). This module provides two digital input/output (I/O) points point. The first
DI/O point may be used as a digital input/counter or as a digital output. The digital output shares the
same physical connections as the digital input/counter. When the output is turned OFF, the point may
be used as input/counter. When the output is turned on it functions only as a digital output. Digital
point data is assigned to a single coil register and a single status register. The coil register is updated
continuously with data read from the coil register. The status register is updated continuously with
data read from the digital input.
The second DI/O point may be used as a turbine meter counter input or as a digital output. The
digital output shares the same physical connections as the turbine meter counter input. When the
output is turned OFF, the point may be used as a turbine meter counter input. When the output is
turned on it functions only as a digital output. Digital point data is assigned to a single coil register.
The coil register is updated continuously with data read from the coil register.
Analog and counter input data is assigned to seven consecutive input registers. Two input registers
are used for the two analog inputs; one input register is used to monitor the controller input power;
two input registers are used for the counter input (32 bit double word uses two registers) and two
input registers are used for the turbine meter counter input (32 bit double word uses two registers).
These input registers are updated continuously with data read from the analog inputs and counter
inputs.
Register Assignment
Module 4202/4203 DS I/O Module
Address Fixed
Type Coil Register
Start Any unused coil register. 0xxxx
End Last register of block. 0xxxx + 1
Registers 2 coil registers
Description Digital output
Type Status Register
Start Any unused status register 1xxxx
End Same as first register. 1xxxx
Registers 1 status register
Description Digital input
Type Input Register
Start First register of any unused block of 7
consecutive status registers.
3xxxx
End Last register of block 3xxxx + 6
Registers 7 input registers
Description Analog and counter inputs
Extended Parameters None
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
479
Coil Register Data
Registers Assignment to Module Hardware
Start Register Digital output 0
Start Register +1 Digital output 1
Status Register Data
Registers Assignment to Module Hardware
Start Register Digital input 0
Analog and Counter Input Register Data
Registers Assignment to Module Hardware
Start Register Analog Input 0
Start Register +1 Analog Input 1
Start Register +2 Analog input Supply Voltage (mV)
Start Register +3 and +4 Counter 0 input, 32 bit register
Start Register +5 and +6 Counter 1 input, 32 bit register
Notes
Only one 4202/4203 DS I/O may be assigned.
Refer to the SCADASense 4202 DS Hardware Manual for information on analog and
digital I/O usage.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
480
6.11.4 SCADAPack AOUT Module
Description
The SCADAPack AOUT module provides two analog outputs. Data is read from two consecutive
holding (4xxxx) registers. The analog outputs are updated continuously with the data read from the
holding registers.
Register Assignment
Module SCADAPack AOUT module
Address This module has a fixed module address of
0. No other AOUT-type module may use
this module address when this module is
used.
Type Holding Register
Start First register of any unused
block of 2 consecutive holding
registers.
4xxxx
End Last register of block 4xxxx + 1
Registers 2 holding registers.
Description None
Extended Parameters None
Register Data
Registers Assignment to Module Hardware
Start Register Analog output 0
Start Register + 1 Analog output 1
Output Range Selection
The SCADAPack Option Switch 2 selects the signal range. Both analog outputs are set to
the same range.
The figure below shows the switch settings for selecting the output range.
Press this side
for 4-20 mA
Press this side
for 0-20 mA
How to Set the Range Switch
- Determine the desired range.
- Press the side of the switch
shown in gray.
4-20 mA Outputs
0
1
2
H/W RST
1
2
3
0
1
2
H/W RST
1
2
3
0-20 mA Outputs
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
481
Notes
Refer to the SCADAPack Hardware Manual for further information on the option
switches.
Option Switch 2 functions as the Output Range Switch regardless of whether the module,
5203/4 option switches, is added to the Register Assignment or not.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
482
6.11.5 SCADAPack 5601 I/O Module
Description
Digital output data is assigned from twelve consecutive coil registers. The digital outputs are
updated continuously with data read from the coil registers.
Digital input data is assigned to sixteen consecutive status registers. The status registers are
updated continuously with data read from the digital inputs.
Analog input data is assigned to eight consecutive input registers. The input registers are
updated continuously with data read from the analog inputs.
Register Assignment
Module SCADAPack 5601 I/O Module
Address fixed at 0
Type Coil Register
Start First register of any unused block of 12
consecutive coil registers.
0xxxx
End Last register of block 0xxxx + 11
Registers 12 coil registers
Description digital outputs
Type Status Register
Start First register of any unused block of 16
consecutive status registers.
1xxxx
End Last register of block 1xxxx + 15
Registers 16 status registers
Description digital inputs
Type Input Register
Start First register of any unused block of 8
consecutive input registers.
3xxxx
End Last register of block 3xxxx +7
Registers 8 input registers
Description analog inputs
Extended Parameters None
Coil Register Data
Registers Assignment to Module Hardware
Start Register Digital output 0
Start Register + 1 Digital output 1
Start Register + 2 Digital output 2
Start Register + 3 Digital output 3
Start Register + 4 Digital output 4
Start Register + 5 Digital output 5
Start Register + 6 Digital output 6
Start Register + 7 Digital output 7
Start Register + 8 Digital output 8
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
483
Registers Assignment to Module Hardware
Start Register + 9 Digital output 9
Start Register + 10 Digital output 10
Start Register + 11 Digital output 12
Status Register Data
Registers Assignment to Module Hardware
Start Register Digital input 0
Start Register + 1 Digital input 1
Start Register + 2 Digital input 2
Start Register + 3 Digital input 3
Start Register + 4 Digital input 4
Start Register + 5 Digital input 5
Start Register + 6 Digital input 6
Start Register + 7 Digital input 7
Start Register + 8 Digital input 8
Start Register + 9 Digital input 9
Start Register + 10 Digital input 10
Start Register + 11 Digital input 11
Start Register + 12 Digital input 12
Start Register + 13 Digital input 13
Start Register + 14 Digital input 14
Start Register + 15 Digital input 15
Input Register Data
Registers Assignment to Module Hardware
Start Register Analog input 0
Start Register + 1 Analog input 1
Start Register + 2 Analog input 2
Start Register + 3 Analog input 3
Start Register + 4 Analog input 4
Start Register + 5 Analog input 5
Start Register + 6 Analog input 6
Start Register + 7 Analog input 7
Analog Input Measurement Range Selection
The SCADAPack Option Switch 1 selects the measurement range. All 8 analog inputs are
set to the same range.
The figure below shows the switch settings for selecting the measurement range.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
484
Press this side
for 4-20 mA
(1-5 V)
Press this side
for 0-20 mA
(0-5 V)
How to Set the Range Switch
- Determine the desired range.
- Press the side of the switch
shown in gray.
4-20 mA (1-5 V) AINs
0
1
2
H/W RST
1
2
3
0
1
2
H/W RST
1
2
3
0-20 mA (0-5 V) AINs
Line Frequency Selection
The SCADAPack I/O board may select 50 or 60 Hz line frequency for digital and analog
input processing. The SCADAPack Option Switch 3 selects this option. The figure below
shows the switch settings for selecting the line frequency.
Press this side
for 50 Hz
Press this side
for 60 Hz
How to Set the Frequency Switch
- Determine the frequency.
- Press the side of the switch
shown in gray.
50 Hz Operation
0
1
2
H/W RST
1
2
3
0
1
2
H/W RST
1
2
3
60 Hz Operation
Notes
Only one SCADAPack 5601 or 5604 I/O module may be assigned to the same controller.
Option switches 1 and 3 function as described above regardless of whether the module, DIN
5203/4 option switches, is added to the Register Assignment or not.
Refer to the SCADAPack Hardware Manual for information on the option switches.
Two analog outputs are available for the SCADAPack 5601 I/O module. Refer to the
SCADAPack AOUT module for more information.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
485
6.11.6 SCADAPack 5602 I/O Module
Description
Digital output data is assigned from two consecutive coil registers. The digital outputs are
updated continuously with data read from the coil registers.
Analog input data is assigned to five consecutive input registers. The input registers are
updated continuously with data read from the analog inputs.
The same five analog inputs are also read as digital inputs. The digital input data is assigned
to five consecutive status registers. The status registers are updated continuously with data
read from the analog inputs.
A digital input is ON if the corresponding filtered analog input value is greater than or equal
to 20% of its full-scale value, otherwise it is OFF.
Register Assignment
Module SCADAPack 5602 I/O Module
Address fixed at 0
Type Coil Register
Start First register of any unused block of 2
consecutive coil registers.
0xxxx
End Last register of block 0xxxx + 1
Registers 2 coil registers
Description digital outputs
Type Status Register
Start First register of any unused block of 5
consecutive status registers.
1xxxx
End Last register of block 1xxxx + 4
Registers 5 status registers
Description analog inputs read as digital inputs
Type Input Register
Start First register of any unused block of 5
consecutive input registers.
3xxxx
End Last register of block 3xxxx +4
Registers 5 input registers
Description analog inputs
Extended Parameters None
Coil Register Data
Registers Assignment to Module Hardware
Start Register Digital output 0
Start Register + 1 Digital output 1
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
486
Status Register Data
Registers Assignment to Module Hardware
Start Register Analog input 0 *
Start Register + 1 Analog input 1 *
Start Register + 2 Analog input 2 *
Start Register + 3 Analog input 3 *
Start Register + 4 Analog input 4 *
* Analog inputs are read again as digital inputs.
Input Register Data
Registers Assignment to Module Hardware
Start Register Analog input 0
Start Register + 1 Analog input 1
Start Register + 2 Analog input 2
Start Register + 3 Analog input 3
Start Register + 4 Analog input 4
Analog Input Measurement Range Selection
The SCADAPack Option Switch 1 selects the measurement range. All 5 analog inputs are
set to the same range.
The figure below shows the switch settings for selecting the measurement range.
Press this side
for 4-20 mA
(1-5 V)
Press this side
for 0-20 mA
(0-5 V)
How to Set the Range Switch
- Determine the desired range.
- Press the side of the switch
shown in gray.
4-20 mA (1-5 V) AINs
0
1
2
H/W RST
1
2
3
0
1
2
H/W RST
1
2
3
0-20 mA (0-5 V) AINs
Line Frequency Selection
The SCADAPack I/O board may select 50 or 60 Hz line frequency for analog input
processing. The SCADAPack Option Switch 3 selects this option. The figure below shows
the switch settings for selecting the line frequency.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
487
Press this side
for 50 Hz
Press this side
for 60 Hz
How to Set the Frequency Switch
- Determine the frequency.
- Press the side of the switch
shown in gray.
50 Hz Operation
0
1
2
H/W RST
1
2
3
0
1
2
H/W RST
1
2
3
60 Hz Operation
Notes
Only one SCADAPack 5602 I/O module may be assigned to the same controller. Option
switches 1 and 3 function as described above regardless of whether the module, DIN 5203/4
option switches, is added to the Register Assignment or not. Refer to the SCADAPack
Hardware Manual for information on the option switches.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
488
6.11.7 SCADAPack 5604 I/O Module
Description
The SCADAPack 5604 I/O Module is comprised of four different types of I/O channels.
The SCADAPack 5604 I/O hardware contains ten analog inputs, two analog outputs, thirty-
five digital inputs and thirty-six digital outputs.
The analog input assignment provides ten I/O channels for the analog input data from the
SCADAPack 5604 I/O Module hardware.
- Analog input channels 0 to 7 provide eight external analog inputs (0-10V or 0-40mA)
- Analog input channel 8 provides an external analog input for battery monitoring (0 to
32.768V)
- Analog input channel 9 provides an internal analog input for DC/DC converter
monitoring.
The analog output assignment provides two I/O channels for the analog output data for the
SCADAPack 5604 I/O Module hardware.
The digital input assignment provides thirty-five I/O channels for the digital input data
from the SCADAPack 5604 I/O Module hardware.
The SCADAPack 5604 I/O Module provides thirty-two universal digital inputs or outputs.
The inputs are for use with dry contacts such as switches and relay contacts.
- These are defined as digital input channels 0 to 31.
0 = contact open (LED off)
1 = contact closed (LED on)
The SCADAPack 5604 I/O Module also provides three internal digital inputs.
- Digital input channel 32 returns the DC/DC converter status.
0 = DC/DC converter off
1 = DC/DC converter on
- Digital input channel 33 returns the DC/DC converter over current status.
0 = Over current not detected
1 = Over current detected
- Digital output channel 34 returns the digital output mismatch status.
0 = No mismatch
1 = One or more digital outputs mismatch
The digital output assignment provides thirty-six I/O channels for the digital outputs of the
SCADAPack 5604 I/O Module I/O hardware.
The SCADAPack 5604 I/O Module provides thirty-two universal digital inputs or
outputs. Outputs are open-collector/open drain type.
- These are defined as digital output channels 0 to 31.
0 = output transistor off
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
489
1 = output transistor on
The SCADAPack 5604 I/O Module also provides two internal digital outputs.
- Digital output channel 32 is used to control the DC/DC converter.
0 = DC/DC converter off
1 = DC/DC converter on
- Digital output channel 33 is used to control the VLoop power supply.
0 = VLoop output off
1 = VLoop output on
- Digital output channels 34 and 35 control the SCADAPack 5604 I/O Module Analog
Input filters.
Filter Setting Digital Output 34 Digital Output 35
< 3 Hz OFF OFF
6 Hz OFF ON
11 Hz ON OFF
30 Hz ON ON
Register Assignment
Module SCADAPack 5604 I/O Module
Address Fixed at 0
Type Coil Register
Start First register of any unused block of 36
consecutive coil registers.
0xxxx
End Last register of block 0xxxx + 35
Registers 36 coil registers
Description Digital outputs
Type Status Register
Start First register of any unused block of 35
consecutive status registers.
1xxxx
End Last register of block 1xxxx + 34
Registers 35 status registers
Description Digital inputs
Type Input Register
Start First register of any unused block of 10
consecutive input registers.
3xxxx
End Last register of block 3xxxx +9
Registers 10 input registers
Description analog inputs
Type Holding Register
Start First register of any unused block of 2
consecutive holding registers.
4xxxx
End Last register of block 4xxxx +1
Registers 2 input registers
Description analog outputs
Extended Parameters None
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
490
Coil Register Data
Registers Assignment to Module Hardware
Start Register Digital output 0
Start Register + 1 Digital output 1
Start Register + 2 Digital output 2
Start Register + 3 Digital output 3
Start Register + 4 Digital output 4
Start Register + 5 Digital output 5
Start Register + 6 Digital output 6
Start Register + 7 Digital output 7
Start Register + 8 Digital output 8
Start Register + 9 Digital output 9
Start Register + 10 Digital output 10
Start Register + 11 Digital output 11
Start Register + 12 Digital output 12
Start Register + 13 Digital output 13
Start Register + 14 Digital output 14
Start Register + 15 Digital output 15
Start Register + 16 Digital output 16
Start Register + 17 Digital output 17
Start Register + 18 Digital output 18
Start Register + 19 Digital output 19
Start Register + 20 Digital output 20
Start Register + 21 Digital output 21
Start Register + 22 Digital output 22
Start Register + 23 Digital output 23
Start Register + 24 Digital output 24
Start Register + 25 Digital output 25
Start Register + 26 Digital output 26
Start Register + 27 Digital output 27
Start Register + 28 Digital output 28
Start Register + 29 Digital output 29
Start Register + 30 Digital output 30
Start Register + 31 Digital output 31
Start Register + 32 Digital output 32
Start Register + 33 Digital output 33
Start Register + 34 Digital output 34
Start Register + 35 Digital output 35
Status Register Data
Registers Assignment to Module Hardware
Start Register Digital input 0
Start Register + 1 Digital input 1
Start Register + 2 Digital input 2
Start Register + 3 Digital input 3
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
491
Registers Assignment to Module Hardware
Start Register + 4 Digital input 4
Start Register + 5 Digital input 5
Start Register + 6 Digital input 6
Start Register + 7 Digital input 7
Start Register + 8 Digital input 8
Start Register + 9 Digital input 9
Start Register + 10 Digital input 10
Start Register + 11 Digital input 11
Start Register + 12 Digital input 12
Start Register + 13 Digital input 13
Start Register + 14 Digital input 14
Start Register + 15 Digital input 15
Start Register + 16 Digital input 16
Start Register + 17 Digital input 17
Start Register + 18 Digital input 18
Start Register + 19 Digital input 19
Start Register + 20 Digital input 20
Start Register + 21 Digital input 21
Start Register + 22 Digital input 22
Start Register + 23 Digital input 23
Start Register + 24 Digital input 24
Start Register + 25 Digital input 25
Start Register + 26 Digital input 26
Start Register + 27 Digital input 27
Start Register + 28 Digital input 28
Start Register + 29 Digital input 29
Start Register + 30 Digital input 30
Start Register + 31 Digital input 31
Start Register + 32 Digital input 32
Start Register + 33 Digital input 33
Start Register + 34 Digital input 34
Input Register Data
Registers Assignment to Module Hardware
Start Register Analog input 0
Start Register + 1 Analog input 1
Start Register + 2 Analog input 2
Start Register + 3 Analog input 3
Start Register + 4 Analog input 4
Start Register + 5 Analog input 5
Start Register + 6 Analog input 6
Start Register + 7 Analog input 7
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
492
Holding Register Data
Registers Assignment to Module Hardware
Start Register Analog output 0
Start Register + 1 Analog output 1
Analog Input Measurement Range Selection
The SCADAPack Option Switch 1 selects the measurement range. All 8 analog inputs are
set to the same range.
The figure below shows the switch settings for selecting the measurement range.
Press this side
for 4-20 mA
(1-5 V)
Press this side
for 0-20 mA
(0-5 V)
How to Set the Range Switch
- Determine the desired range.
- Press the side of the switch
shown in gray.
4-20 mA (1-5 V) AINs
0
1
2
H/W RST
1
2
3
0
1
2
H/W RST
1
2
3
0-20 mA (0-5 V) AINs
Line Frequency Selection
The SCADAPack I/O board may select 50 or 60 Hz line frequency for digital and analog
input processing. The SCADAPack Option Switch 3 selects this option. The figure below
shows the switch settings for selecting the line frequency.
Press this side
for 50 Hz
Press this side
for 60 Hz
How to Set the Frequency Switch
- Determine the frequency.
- Press the side of the switch
shown in gray.
50 Hz Operation
0
1
2
H/W RST
1
2
3
0
1
2
H/W RST
1
2
3
60 Hz Operation
Notes
Only one SCADAPack 5601 or 5604 I/O module may be assigned to the same controller.
Option switches 1 and 3 function as described above regardless of whether the module, DIN
5203/4 option switches, is added to the Register Assignment or not.
Refer to the SCADAPack Hardware Manual for information on the option switches.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
493
Two analog outputs are available for the SCADAPack 5601 I/O module. Refer to the
SCADAPack AOUT module for more information.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
494
6.11.8 SCADAPack 5606 I/O Module
Description
The SCADAPack 5606 I/O Module is comprised of four types of I/O channels, digital inputs,
digital outputs, analog inputs, and analog outputs.
The digital input assignment provides forty I/O channels for the digital input data from the
SCADAPack 5606 I/O Module hardware.
- The 5606 I/O Module provides thirty-two external digital inputs. These are externally wetted
inputs.
- The module provides 8 internal digital inputs, which indicate if the corresponding analog input is
in or out of range.
The digital output assignment provides sixteen digital outputs. All are digital output relays.
The analog input assignment provides eight I/O channels for the analog input data from the
SCADAPack 5606 I/O Module hardware.
The analog output assignment provides two I/O channels for the analog output data for the
SCADAPack 5606 I/O Module hardware when the optional analog output module is installed.
Register Assignment
The register assignment for the SCADAPack 5606 I/O Module is used to configure the registers used
for the module data and the Extended Parameters available for the module. To open the register
assignment dialog for the SCADAPack 5606 I/O module:
- Select Register Assignment from the Controller menu in TelePACE.
- In the Register Assignment window select the Add button.
- In the Add Register Assignment dialog select the SCADAPack 5606 I/O Module from the list
presented in the Module window.
The register assignment dialog for the SCADAPack 5606 I/O Module is shown below.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
495
The Module selection displays the name of the SCADAPack 5606 I/O module used for the register
assignment.
The Address selection displays the module address of the physical SCADAPack 5606 I/O module.
The address on the module is selected via dip switches on the module. A maximum of eight
SCADAPack 5606 I/O type modules may be added to a system.
The register type 0xxxx defines the register range for the digital output data. Sixteen sequential
registers are needed for the SCADAPack 5606 I/O module digital output data. Any unused block of
sixteen registers may be used. See the Digital Output Register Data section below for an
explanation of the digital output data.
The register type 1xxxx defines the register range for the digital input status data. Forty sequential
registers are needed for the SCADAPack 5606 I/O module digital Input data. Any unused block of
forty registers may be used. See the Digital Input Register Data section below for an explanation of
the digital input status data.
The register type 3xxxx defines the register range for the analog input data. Eight sequential registers
are needed for the SCADAPack 5606 I/O module analog input data. Any unused block of eight
registers may be used. See the Input Register Data section below for an explanation of the analog
input data.
The register type 4xxxx defines the register range for the analog output data. Two sequential
registers are needed for the SCADAPack 5606 I/O module analog output data. Any unused block of
two registers may be used. See the Analog Output Register Data section below for an explanation
of the analog output data.
The Extended Parameters grouping defines the type of data returned from the SCADAPack 5606
I/O module analog inputs, the type of analog output signal, filtering used by all analog inputs and the
scan frequency.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
496
The AIN Type selection for each input (AIN 0, 1, 2, 3, 4, 5, 6, and 7) defines the input measurement
type for the analog input.
- The 0-5V selection sets the input type to measure 0 to 5V input signals.
- The 1-5V selection sets the input type to measure 1 to 5V input signals.
- The 0-20 mA selection sets the input type to measure 0 to 20mA input signals.
- The 4-20 mA selection sets the input type to measure 4 to 20mA input signals.
The AIN Filter selection set the input filter for all analog inputs. Filtering is used to dampen process
variations or noise.
- The 3 Hz filter selection sets the response time to 155ms at 60Hz and 185ms at 50Hz.
- The 6 Hz filter selection sets response time to 85ms at 60Hz and 85ms at 50Hz.
- The 11 Hz filter selection sets response time to 45ms at 60Hz and 55ms at 50Hz.
- The 30 Hz filter selection sets response time to 30ms at 60Hz and 30ms at 50Hz.
The Scan Frequency selection set the input scan rate for all analog inputs. The scan rate selection is
not critical but AC noise rejection is improved at the correct frequency. If the module is used in a DC
environment, the 60 Hz setting will yield slightly faster response time.
- The 60 Hz selection synchronies the input scanning to 60Hz.
- The 50 Hz selection synchronies the input scanning to 50Hz.
The AOUT Type selection for each input (AOUT 0 and 1) defines the output signal type for the
analog output.
- The 0-20 mA selection sets the output type for 0 to 20mA signals.
- The 4-20 mA selection sets the output type for 4 to 20mA signals.
Digital Output Register Data
Digital output data is assigned to sixteen consecutive digital output (0xxxx) registers. The following
table begins at the Start address defined in the Register Assignment and continues for sixteen
registers.
Registers Assignment to Module Hardware
Start Register 0 = OFF (relay open); 1= ON (relay closed)
Start Register + 1 0 = OFF (relay open); 1= ON (relay closed)
Start Register + 2 0 = OFF (relay open); 1= ON (relay closed)
Start Register + 3 0 = OFF (relay open); 1= ON (relay closed)
Start Register + 4 0 = OFF (relay open); 1= ON (relay closed)
Start Register + 5 0 = OFF (relay open); 1= ON (relay closed)
Start Register + 6 0 = OFF (relay open); 1= ON (relay closed)
Start Register + 7 0 = OFF (relay open); 1= ON (relay closed)
Start Register + 8 0 = OFF (relay open); 1= ON (relay closed)
Start Register + 9 0 = OFF (relay open); 1= ON (relay closed)
Start Register + 10 0 = OFF (relay open); 1= ON (relay closed)
Start Register + 11 0 = OFF (relay open); 1= ON (relay closed)
Start Register + 12 0 = OFF (relay open); 1= ON (relay closed)
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
497
Registers Assignment to Module Hardware
Start Register + 13 0 = OFF (relay open); 1= ON (relay closed)
Start Register + 14 0 = OFF (relay open); 1= ON (relay closed)
Start Register + 15 0 = OFF (relay open); 1= ON (relay closed)
Digital Input Register Data
Status register data is assigned to forty consecutive status (1xxxx) registers. The following table
begins at the Start address defined in the Register Assignment and continues for forty registers.
Registers Assignment to Module Hardware
Start Register 0 = OFF (led off); 1= ON (led on)
Start Register + 1 0 = OFF (led off); 1= ON (led on)
Start Register + 2 0 = OFF (led off); 1= ON (led on)
Start Register + 3 0 = OFF (led off); 1= ON (led on)
Start Register + 4 0 = OFF (led off); 1= ON (led on)
Start Register + 5 0 = OFF (led off); 1= ON (led on)
Start Register + 6 0 = OFF (led off); 1= ON (led on)
Start Register + 7 0 = OFF (led off); 1= ON (led on)
Start Register + 8 0 = OFF (led off); 1= ON (led on)
Start Register + 9 0 = OFF (led off); 1= ON (led on)
Start Register + 10 0 = OFF (led off); 1= ON (led on)
Start Register + 11 0 = OFF (led off); 1= ON (led on)
Start Register + 12 0 = OFF (led off); 1= ON (led on)
Start Register + 13 0 = OFF (led off); 1= ON (led on)
Start Register + 14 0 = OFF (led off); 1= ON (led on)
Start Register + 15 0 = OFF (led off); 1= ON (led on)
Start Register + 16 0 = OFF (led off); 1= ON (led on)
Start Register + 17 0 = OFF (led off); 1= ON (led on)
Start Register + 18 0 = OFF (led off); 1= ON (led on)
Start Register + 19 0 = OFF (led off); 1= ON (led on)
Start Register + 20 0 = OFF (led off); 1= ON (led on)
Start Register + 21 0 = OFF (led off); 1= ON (led on)
Start Register + 22 0 = OFF (led off); 1= ON (led on)
Start Register + 23 0 = OFF (led off); 1= ON (led on)
Start Register + 24 0 = OFF (led off); 1= ON (led on)
Start Register + 25 0 = OFF (led off); 1= ON (led on)
Start Register + 26 0 = OFF (led off); 1= ON (led on)
Start Register + 27 0 = OFF (led off); 1= ON (led on)
Start Register + 28 0 = OFF (led off); 1= ON (led on)
Start Register + 29 0 = OFF (led off); 1= ON (led on)
Start Register + 30 0 = OFF (led off); 1= ON (led on)
Start Register + 31 0 = OFF (led off); 1= ON (led on)
Start Register + 32 OFF = AIN channel 0 is OK
ON = AIN channel 0 is over or under range
Start Register + 33 OFF = AIN channel 1 is OK
ON = AIN channel 1 is over or under range
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
498
Registers Assignment to Module Hardware
Start Register + 34 OFF = AIN channel 2 is OK
ON = AIN channel 2 is over or under range
Start Register + 35 OFF = AIN channel 3 is OK
ON = AIN channel 3is over or under range
Start Register + 36 OFF = AIN channel 4 is OK
ON = AIN channel 4 is over or under range
Start Register + 37 OFF = AIN channel 5 is OK
ON = AIN channel 5 is over or under range
Start Register + 38 OFF = AIN channel 6 is OK
ON = AIN channel 6is over or under range
Start Register + 39 OFF = AIN channel 7 is OK
ON = AIN channel 7 is over or under range
Input Register Data
Input register data is assigned to eight consecutive analog input (3xxxx) registers. The following
table begins at the Start address defined in the Register Assignment and continues for eight
registers.
Registers Assignment to Module Hardware
Start Register Analog input 0
Start Register + 1 Analog input 1
Start Register + 2 Analog input 2
Start Register + 3 Analog input 3
Start Register + 4 Analog input 4
Start Register + 5 Analog input 5
Start Register + 6 Analog input 6
Start Register + 7 Analog input 7
Analog Output Register Data
Analog output register data is assigned to two consecutive analog output (4xxxx) registers. The
following table begins at the Start address defined in the Register Assignment.
Registers Assignment to Module Hardware
Start Register Analog input 0
Start Register + 1 Analog input 1
Notes
Refer to the SCADAPack Hardware Manual for information on the SCADAPack 5606 I/O
module.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
499
6.11.9 SCADAPack 5607 I/O Module
Description
The SCADAPack 5607 I/O Module is comprised of four types of I/O channels, digital inputs,
digital outputs, analog inputs, and analog outputs.
The digital input assignment provides forty I/O channels for the digital input data from the
SCADAPack 5607 I/O Module hardware.
- The 5607 I/O Module provides sixteen external digital inputs. These are externally wetted
inputs.
- The module provides 8 internal digital inputs, which indicate if the corresponding analog input is
in or out of range.
The digital output assignment provides ten relay digital outputs.
The analog input assignment provides eight I/O channels for the analog input data from the
SCADAPack 5607 I/O Module hardware.
The analog output assignment provides two I/O channels for the analog output data for the
SCADAPack 5607 I/O Module hardware when the optional analog output module is installed.
Register Assignment
The register assignment for the SCADAPack 5607 I/O Module is used to configure the registers used
for the module data and the Extended Parameters available for the module. To open the register
assignment dialog for the SCADAPack 5607 I/O module:
- Select Register Assignment from the Controller menu in TelePACE.
- In the Register Assignment window select the Add button.
- In the Add Register Assignment dialog select the SCADAPack 5606 I/O Module from the list
presented in the Module window.
The register assignment dialog for the SCADAPack 5607 I/O Module is shown below.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
500
The Module selection displays the name of the SCADAPack 5607 I/O module used for the register
assignment.
The Address selection displays the module address of the physical SCADAPack 5607 I/O module.
The address on the module is selected via dip switches on the module. A maximum of eight
SCADAPack 5607 I/O type modules may be added to a system.
The register type 0xxxx defines the register range for the digital output data. Ten sequential registers
are needed for the SCADAPack 5607 I/O module digital output data. Any unused block of ten
registers may be used. See the Digital Output Register Data section below for an explanation of the
digital output data.
The register type 1xxxx defines the register range for the digital input status data. Twenty four
sequential registers are needed for the SCADAPack 5607 I/O module digital Input data. Any unused
block of twenty four registers may be used. See the Digital Input Register Data section below for
an explanation of the digital input status data.
The register type 3xxxx defines the register range for the analog input data. Eight sequential registers
are needed for the SCADAPack 5607 I/O module analog input data. Any unused block of eight
registers may be used. See the Input Register Data section below for an explanation of the analog
input data.
The register type 4xxxx defines the register range for the analog output data. Two sequential
registers are needed for the SCADAPack 5607 I/O module analog output data. Any unused block of
two registers may be used. See the Analog Output Register Data section below for an explanation
of the analog output data.
The Extended Parameters grouping defines the type of data returned from the SCADAPack 5607
I/O module analog inputs, the type of analog output signal, filtering used by all analog inputs and the
scan frequency.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
501
The AIN Type selection for each input (AIN 0, 1, 2, 3, 4, 5, 6, and 7) defines the input measurement
type for the analog input.
- The 0-5V selection sets the input type to measure 0 to 5V input signals.
- The 1-5V selection sets the input type to measure 1 to 5V input signals.
- The 0-20 mA selection sets the input type to measure 0 to 20mA input signals.
- The 4-20 mA selection sets the input type to measure 4 to 20mA input signals.
The AIN Filter selection set the input filter for all analog inputs. Filtering is used to dampen process
variations or noise.
- The 3 Hz filter selection sets the response time to 155ms at 60Hz and 185ms at 50Hz.
- The 6 Hz filter selection sets response time to 85ms at 60Hz and 85ms at 50Hz.
- The 11 Hz filter selection sets response time to 45ms at 60Hz and 55ms at 50Hz.
- The 30 Hz filter selection sets response time to 30ms at 60Hz and 30ms at 50Hz.
The Scan Frequency selection set the input scan rate for all analog inputs. The scan rate selection is
not critical but AC noise rejection is improved at the correct frequency. If the module is used in a DC
environment, the 60 Hz setting will yield slightly faster response time.
- The 60 Hz selection synchronies the input scanning to 60Hz.
- The 50 Hz selection synchronies the input scanning to 50Hz.
The AOUT Type selection for each input (AOUT 0 and 1) defines the output signal type for the
analog output.
- The 0-20 mA selection sets the output type for 0 to 20mA signals.
- The 4-20 mA selection sets the output type for 4 to 20mA signals.
Digital Output Register Data
Digital output data is assigned to sixteen consecutive digital output (0xxxx) registers. The following
table begins at the Start address defined in the Register Assignment and continues for sixteen
registers.
Registers Assignment to Module Hardware
Start Register 0 = OFF (relay open); 1= ON (relay closed)
Start Register + 1 0 = OFF (relay open); 1= ON (relay closed)
Start Register + 2 0 = OFF (relay open); 1= ON (relay closed)
Start Register + 3 0 = OFF (relay open); 1= ON (relay closed)
Start Register + 4 0 = OFF (relay open); 1= ON (relay closed)
Start Register + 5 0 = OFF (relay open); 1= ON (relay closed)
Start Register + 6 0 = OFF (relay open); 1= ON (relay closed)
Start Register + 7 0 = OFF (relay open); 1= ON (relay closed)
Start Register + 8 0 = OFF (relay open); 1= ON (relay closed)
Start Register + 9 0 = OFF (relay open); 1= ON (relay closed)
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
502
Digital Input Register Data
Status register data is assigned to forty consecutive status (1xxxx) registers. The following table
begins at the Start address defined in the Register Assignment and continues for forty registers.
Registers Assignment to Module Hardware
Start Register 0 = OFF (led off); 1= ON (led on)
Start Register + 1 0 = OFF (led off); 1= ON (led on)
Start Register + 2 0 = OFF (led off); 1= ON (led on)
Start Register + 3 0 = OFF (led off); 1= ON (led on)
Start Register + 4 0 = OFF (led off); 1= ON (led on)
Start Register + 5 0 = OFF (led off); 1= ON (led on)
Start Register + 6 0 = OFF (led off); 1= ON (led on)
Start Register + 7 0 = OFF (led off); 1= ON (led on)
Start Register + 8 0 = OFF (led off); 1= ON (led on)
Start Register + 9 0 = OFF (led off); 1= ON (led on)
Start Register + 10 0 = OFF (led off); 1= ON (led on)
Start Register + 11 0 = OFF (led off); 1= ON (led on)
Start Register + 12 0 = OFF (led off); 1= ON (led on)
Start Register + 13 0 = OFF (led off); 1= ON (led on)
Start Register + 14 0 = OFF (led off); 1= ON (led on)
Start Register + 15 0 = OFF (led off); 1= ON (led on)
Start Register + 16 OFF = AIN channel 0 is OK
ON = AIN channel 0 is over or under range
Start Register + 17 OFF = AIN channel 1 is OK
ON = AIN channel 1 is over or under range
Start Register + 18 OFF = AIN channel 2 is OK
ON = AIN channel 2 is over or under range
Start Register + 19 OFF = AIN channel 3 is OK
ON = AIN channel 3is over or under range
Start Register + 20 OFF = AIN channel 4 is OK
ON = AIN channel 4 is over or under range
Start Register + 21 OFF = AIN channel 5 is OK
ON = AIN channel 5 is over or under range
Start Register + 22 OFF = AIN channel 6 is OK
ON = AIN channel 6is over or under range
Start Register + 23 OFF = AIN channel 7 is OK
ON = AIN channel 7 is over or under range
Input Register Data
Input register data is assigned to eight consecutive analog input (3xxxx) registers. The following
table begins at the Start address defined in the Register Assignment and continues for eight
registers.
Registers Assignment to Module Hardware
Start Register Analog input 0
Start Register + 1 Analog input 1
Start Register + 2 Analog input 2
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
503
Registers Assignment to Module Hardware
Start Register + 3 Analog input 3
Start Register + 4 Analog input 4
Start Register + 5 Analog input 5
Start Register + 6 Analog input 6
Start Register + 7 Analog input 7
Analog Output Register Data
Analog output register data is assigned to two consecutive analog output (4xxxx) registers. The
following table begins at the Start address defined in the Register Assignment.
Registers Assignment to Module Hardware
Start Register Analog input 0
Start Register + 1 Analog input 1
Notes
Refer to the SCADAPack Hardware Manual for information on the SCADAPack 5607 I/O
module.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
504
6.11.10 SCADAPack LP I/O
Description
The SCADAPack LP I/O Module is comprised of four different types of I/O channels. The
SCADAPack LP I/O hardware contains eight analog inputs, two analog outputs, sixteen digital
inputs and twelve digital outputs.
The analog input assignment provides seven I/O channels for the analog input data. Analog input
data is a signed value in the range 32768 to 32767.
- Analog input channels 0 to 4 provide eight external analog inputs (0-10V or 0-40mA)
- Analog input channel 5 provides an external analog input for battery monitoring (0 to 32.768V)
- Analog input channel 6 provides an internal analog input for DC/DC converter monitoring.
The analog output assignment provides two I/O channels for the analog output data. Analog input
data is a signed value in the range 32768 to 32767.
The digital input assignment provides sixteen I/O channels for the digital input data.
The SCADAPack LP provides eight universal digital inputs or outputs. The inputs are for use with
dry contacts such as switches and relay contacts.
- These are defined as digital input channels 0 to 7.
0 = contact open (LED off)
1 = contact closed (LED on)
The SCADAPack LP also provides eight internal digital inputs.
- Digital input channel 8 returns the Com1 (RS-485) power status.
0 = off
1 = on
- Digital input channel 9 returns the Com3 (HMI) power output status.
0 = off
1 = on
- Digital input channel 10 returns the VLOOP output status.
0 = off
1 = on
- Digital input channel 11 returns the DC/DC converter status. This bit reports the true status of
the DC/DC converter. If over-current causes the converter to be turned off, this bit will clear.
0 = off
1 = on
- Digital input channel 12 returns the VLOOP over-current status. This indicates VLOOP over-
current has been detected. This input clears when VLOOP output is off, or the over-current
condition clears.
0= off
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
505
1 = on
- Digital input channel 13 returns the digital output mismatch status.
0= No mismatch
1 = One or more digital outputs mismatch
- Digital input channel 14 returns the SCADAPack Vision power.
0 = No power to SCADAPack Vision
1 = Power to SCADAPack Vision
The digital output assignment provides twelve I/O channels for the digital outputs of the
SCADAPack LP.
The SCADAPack LP provides eight universal digital inputs or outputs. Outputs are open-
collector/open drain type.
- These are defined as digital output channels 0 to 7.
0 = output transistor off
1 = output transistor on
The SCADAPack LP also provides four internal digital outputs.
- Digital output channel 8 is not used. This is for internal use only.
- Digital output channel 9 is used to control com3 (HMI) power.
0= off
1 = on
- Digital output channel 10 is used to control the VLoop power supply.
0= VLoop output off
1= VLoop output on
- Digital output channel 11 is used to control the DC/DC converter.
0= off
1 = on
Register Assignment
Module SCADAPack LP I/O Module
Address fixed
Type Coil Register
Start First register of any unused block of 12
consecutive coil registers.
0xxxx
End Last register of block 0xxxx + 11
Registers 12 coil registers
Description digital outputs
Type Status Register
Start First register of any unused block of 16
consecutive status registers.
1xxxx
End Last register of block 1xxxx + 15
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
506
Module SCADAPack LP I/O Module
Address fixed
Registers 16 status registers
Description digital inputs
Type Input Register
Start First register of any unused block of 8
consecutive input registers.
3xxxx
End Last register of block 3xxxx +7
Registers 8 input registers
Description analog inputs
Type Holding Register
Start First register of any unused block of 2
consecutive holding registers.
4xxxx
End Last register of block 4xxxx +1
Registers 2 output registers
Description analog outputs
Extended Parameters None
Coil Register Data
Registers Assignment to Module Hardware
Start Register Digital output 0
Start Register + 1 Digital output 1
Start Register + 2 Digital output 2
Start Register + 3 Digital output 3
Start Register + 4 Digital output 4
Start Register + 5 Digital output 5
Start Register + 6 Digital output 6
Start Register + 7 Digital output 7
Start Register + 8 Digital output 8
Start Register + 9 Digital output 9
Start Register + 10 Digital output 10
Start Register + 11 Digital output 11
Status Register Data
Registers Assignment to Module Hardware
Start Register Digital input 0
Start Register + 1 Digital input 1
Start Register + 2 Digital input 2
Start Register + 3 Digital input 3
Start Register + 4 Digital input 4
Start Register + 5 Digital input 5
Start Register + 6 Digital input 6
Start Register + 7 Digital input 7
Start Register + 8 Digital input 8
Start Register + 9 Digital input 9
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
507
Registers Assignment to Module Hardware
Start Register + 10 Digital input 10
Start Register + 11 Digital input 11
Start Register + 12 Digital input 12
Start Register + 13 Digital input 13
Start Register + 14 Digital input 14
Start Register + 15 Digital input 15
Input Register Data
Registers Assignment to Module Hardware
Start Register Analog input 0
Start Register + 1 Analog input 1
Start Register + 2 Analog input 2
Start Register + 3 Analog input 3
Start Register + 4 Analog input 4
Start Register + 5 Analog input 5
Start Register + 6 Analog input 6
Start Register + 7 Analog input 7
Analog Output Register Data
Registers Assignment to Module Hardware
Start Register Analog output 0
Start Register + 1 Analog output 1
Notes
Only one SCADAPack LP I/O may be assigned to the same controller.
Refer to the SCADAPack LP Hardware Manual for information on analog and digital I/O usage.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
508
6.11.11 SCADAPack 100 I/O
Description
Digital output data is assigned from six consecutive coil registers. The digital outputs are updated
continuously with data read from the coil registers.
Digital input data is assigned to six consecutive status registers. The status registers are updated
continuously with data read from the digital inputs.
Analog and counter input data is assigned to eight consecutive input registers. There are six analog
input registers, and a counter input double register (32 bit). These input registers are updated
continuously with data read from the analog inputs and counter input.
Register Assignment
Module SCADAPack 100 I/O Module
Address Fixed
Type Coil Register
Start First register of any unused block of 6
consecutive coil registers.
0xxxx
End Last register of block 0xxxx + 5
Registers 6 coil registers
Description digital outputs
Type Status Register
Start First register of any unused block of 6
consecutive status registers.
1xxxx
End Last register of block 1xxxx + 5
Registers 8 status registers
Description digital inputs
Type Input Register
Start First register of any unused block of 4
consecutive input registers.
3xxxx
End Last register of block 3xxxx +8
Registers 8 input registers
Description analog inputs
Extended Parameters None
Coil Register Data
Registers Assignment to Module Hardware
Start Register Digital output 0
Start Register + 1 Digital output 1
Start Register + 2 Digital output 2
Start Register + 3 Digital output 3
Start Register + 4 Digital output 4
Start Register + 5 Digital output 5
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
509
Status Register Data
Registers Assignment to Module Hardware
Start Register Digital input 0
Start Register + 1 Digital input 1
Start Register + 2 Digital input 2
Start Register + 3 Digital input 3
Start Register + 4 Digital input 4
Start Register + 5 Digital input 5
Start Register + 6 Digital input 6
Analog and Counter Input Register Data
Registers Assignment to Module Hardware
Start Register Analog input 0
Start Register + 1 Analog input 1
Start Register + 2 Analog input 2
Start Register + 3 Analog input 3
Start Register + 4 Analog input 4 Board Temperature (C)
Start Register + 5 Analog input 5 Ram Battery Voltage (mV)
Start Register + 6 and + 7 Counter input, 32 bit register
Notes
Only one SCADAPack 100 I/O may be assigned to the same controller.
Refer to the SCADAPack 100 Hardware Manual for information on analog and digital I/O usage.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
510
6.11.12 SCADAPack 330 I/O
Description
The SCADAPack 330 I/O is comprised of three types of I/O channels, three analog inputs
(counters), one digital input and two digital outputs.
The counter input assignment provides three I/O channels for the analog input data.
- Counter input channel 0 is for counter input 0. This is a 32 bit value with automatic rollover.
- Counter input channel 1 is for counter input 1. This is a 32 bit value with automatic rollover.
- Counter input channel 2 is for counter input 2. This is a 32 bit value with automatic rollover.
The SCADAPack 330 provides one digital input for digital input data from the SCADAPack 330 I/O
hardware.
- Digital input channel 0 is the status of COM3 HMI power.
0 = 5V at pin 1 of connector P7 (COM3) is off.
1 = 5V at pin 1 of connector P7 (COM3) is on.
The digital output assignment provides two I/O channels for the digital outputs of the SCADAPack
330 I/O hardware.
- Digital output channel 0 controls the USB STAT led.
0 = USB STAT led off.
1 = USB STAT led on.
- Digital output channel 1 controls the COM3 HMI power.
0 = 5V at pin 1 of connector P7 (COM3) is off.
1 = 5V at pin 1 of connector P7 (COM3) is on.
Register Assignment
Module SCADAPack 330 I/O
Address fixed
Type Coil Register
Start First register of any unused block of 2
consecutive coil registers.
0xxxx
End Last register of block 0xxxx + 1
Registers 2 coil registers
Description digital outputs
Type Status Register
Start First register of any unused block of 1
consecutive status registers.
1xxxx
End Last register of block 1xxxx
Registers 1status registers
Description digital inputs
Type Input Register
Start First register of any unused block of 6
consecutive input registers.
3xxxx
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
511
End Last register of block 3xxxx +5
Registers 3 counter input registers
Description counter inputs
Coil Register Data
Registers Assignment to Module Hardware
Start Register USB LED output
Start Register + 1 Com3 (HMI) power control
Status Register Data
Registers Assignment to Module Hardware
Start Register Com3 (HMI) power status
Input Register Data
Registers Assignment to Module Hardware
Start Register
Start Register + 1
Counter input 0 (32 bit-register)
Start Register + 2
Start Register + 3
Counter input 1 (32 bit-register)
Start Register + 4
Start Register + 5
Counter input 2 (32 bit-register)
Notes
Only one SCADAPack 330 I/O may be assigned to the same controller.
Refer to the SCADAPack 330 Hardware Manual for information on counter and digital I/O usage.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
512
6.11.13 SCADAPack 334 I/O
Description
The SCADAPack 334 I/O is comprised of a SCADAPack 330 I/O module and a 5607 I/O module.
The SCADAPack 334 I/O provides for five types of I/O channels, 8 analog inputs, 3 counter inputs,
25 digital inputs, 12 digital outputs and 2 analog outputs.
- See the SCADAPack 330 I/O register assignment for a complete description of the SCADAPack
330 I/O.
- See the 5607 I/O module register assignment for a complete description of the 5607 I/O.
Register Assignment
Module SCADAPack 33x I/O
Address fixed
Type Coil Register
Start First register of any unused block of 12
consecutive coil registers.
0xxxx
End Second register of block 0xxxx + 1
Registers 2 coil registers
Description digital outputs
Type Status Register
Start First register of any unused block of 25
consecutive status registers.
1xxxx
End First register of block 1xxxx
Registers 1status registers
Description digital inputs
Type Input Register
Start First register of any unused block of 14
consecutive input registers.
3xxxx
End Fifth register of block 3xxxx +5
Registers 3 counter input registers
Description counter inputs
Module 5607 I/O
Address 0 to 7
Type Coil Register
Start Third register of any unused block of 12
consecutive coil registers.
0xxxx + 2
End Last register of block 0xxxx + 12
Registers 10 coil registers
Description digital outputs
Type Status Register
Start Second register of any unused block of 25
consecutive status registers.
1xxxx + 1
End Last register of block 1xxxx + 24
Registers 24 status registers
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
513
Description digital inputs
Type Input Register
Start Sixth register of any unused block of 14
consecutive input registers.
3xxxx + 6
End Last register of block 3xxxx +13
Registers 8 analog input registers
Description analog inputs
Type Holding Register
Start First register of any unused block of 6
consecutive input registers.
3xxxx + 6
End Last register of block 3xxxx +13
Registers 2 analog output
Description analog outputs
Coil Register Data
Registers Assignment to Module Hardware
Start Register USB LED output
Start Register + 1 Com3 (HMI) power control
Start Register + 2 0 = OFF (relay open); 1= ON (relay closed)
Start Register + 3 0 = OFF (relay open); 1= ON (relay closed)
Start Register + 4 0 = OFF (relay open); 1= ON (relay closed)
Start Register + 5 0 = OFF (relay open); 1= ON (relay closed)
Start Register + 6 0 = OFF (relay open); 1= ON (relay closed)
Start Register + 7 0 = OFF (relay open); 1= ON (relay closed)
Start Register + 8 0 = OFF (relay open); 1= ON (relay closed)
Start Register + 9 0 = OFF (relay open); 1= ON (relay closed)
Start Register + 10 0 = OFF (relay open); 1= ON (relay closed)
Start Register + 11 0 = OFF (relay open); 1= ON (relay closed)
Status Register Data
Registers Assignment to Module Hardware
Start Register Com3 (HMI) power status
Start Register + 1 0 = OFF (led off); 1= ON (led on)
Start Register + 2 0 = OFF (led off); 1= ON (led on)
Start Register + 3 0 = OFF (led off); 1= ON (led on)
Start Register + 4 0 = OFF (led off); 1= ON (led on)
Start Register + 5 0 = OFF (led off); 1= ON (led on)
Start Register + 6 0 = OFF (led off); 1= ON (led on)
Start Register + 7 0 = OFF (led off); 1= ON (led on)
Start Register + 8 0 = OFF (led off); 1= ON (led on)
Start Register + 9 0 = OFF (led off); 1= ON (led on)
Start Register + 10 0 = OFF (led off); 1= ON (led on)
Start Register + 11 0 = OFF (led off); 1= ON (led on)
Start Register + 12 0 = OFF (led off); 1= ON (led on)
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
514
Registers Assignment to Module Hardware
Start Register + 13 0 = OFF (led off); 1= ON (led on)
Start Register + 14 0 = OFF (led off); 1= ON (led on)
Start Register + 15 0 = OFF (led off); 1= ON (led on)
Start Register + 16 0 = OFF (led off); 1= ON (led on)
Start Register + 17 OFF = AIN channel 0 is OK
ON = AIN channel 0 is over or under range
Start Register + 18 OFF = AIN channel 1 is OK
ON = AIN channel 1 is over or under range
Start Register + 19 OFF = AIN channel 2 is OK
ON = AIN channel 2 is over or under range
Start Register + 20 OFF = AIN channel 3 is OK
ON = AIN channel 3is over or under range
Start Register + 21 OFF = AIN channel 4 is OK
ON = AIN channel 4 is over or under range
Start Register + 22 OFF = AIN channel 5 is OK
ON = AIN channel 5 is over or under range
Start Register + 23 OFF = AIN channel 6 is OK
ON = AIN channel 6is over or under range
Start Register + 24 OFF = AIN channel 7 is OK
ON = AIN channel 7 is over or under range
Input Register Data
Registers Assignment to Module Hardware
Start Register
Start Register + 1
Counter input 0 (32 bit-register)
Start Register + 2
Start Register + 3
Counter input 1 (32 bit-register)
Start Register + 4
Start Register + 5
Counter input 2 (32 bit-register)
Start Register + 6 Analog input 0
Start Register + 7 Analog input 1
Start Register + 8 Analog input 2
Start Register + 9 Analog input 3
Start Register + 10 Analog input 4
Start Register + 11 Analog input 5
Start Register + 12 Analog input 6
Start Register + 13 Analog input 7
Analog Output Register Data
Analog output register data is assigned to two consecutive analog output (4xxxx) registers. The
following table begins at the Start address defined in the Register Assignment.
Registers Assignment to Module Hardware
Start Register Analog output 0
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
515
Registers Assignment to Module Hardware
Start Register + 1 Analog output 1
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
516
6.11.14 SCADAPack 350 I/O
Description
The SCADAPack 350 I/O is comprised of four different types of I/O channels: eight analog inputs,
two analog outputs, thirteen digital inputs and eleven digital outputs.
The analog input assignment provides eight I/O channels for the analog input data.
- Analog input channels 0 to 4 provide five external analog inputs (0-10V or 0-40mA)
- Analog input channel 5 provides an external analog input for battery monitoring (0 to 32.768V)
- Analog input channel 6 provides an internal analog input for DC/DC converter monitoring.
- Analog input channel 7 is used internally by the SCADAPack 350.
The analog output assignment provides two I/O channels for the analog output data.
The digital input assignment provides thirteen I/O channels for the digital input data.
The SCADAPack 350 provides eight universal digital inputs or outputs. The inputs are for use with
dry contacts such as switches and relay contacts.
- These are defined as digital input channels 0 to 7.
0 = contact open (LED off)
1 = contact closed (LED on)
The SCADAPack 350 I/O hardware also provides five internal digital inputs.
- Digital input channel 8 returns the VLOOP output status.
0 = off
1 = on
- Digital input channel 9 returns the DC/DC converter status. This bit reports the true status of the
DC/DC converter. If over-current causes the converter to be turned off, this bit will clear.
0 = off
1 = on
- Digital input channel 10 returns the VLOOP over-current status. This indicates VLOOP over-
current has been detected. This input clears when VLOOP output is off, or the over-current
condition clears.
0 = off
1 = on
- Digital input channel 11 returns the digital output mismatch status.
Known outputs are compared to the corresponding inputs to detect incorrect outputs. A point is
compared if it has been turned on at any time since controller reset. This input indicates if one or
more outputs mismatch. The source of the mismatch can be determined by comparing each
digital input against the corresponding digital output.
The SCADAPack 350 on board digital I/O can be inputs or outputs. There is no configuration for
the type, the SCADAPack 350 accepts digital inputs on a point and will write a digital output if
programmed.
For example if D I/O point 0 is assigned registers 10001 as an input it is also assigned as digital
output 00001. If the application turns on 00001 then 10001 will be seen as ON. While this
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
517
flexibility is useful it can cause problems in an application if users inadvertently turn ON a DIO
that is used as an input in an application.
The internal DI 11 is turned ON if the SCADAPack 350 detects that a point has been turned on
as an input and then turned on as a digital output in the application. Each time the controller is
reset it begins the internal test again.
0 = No mismatch
1 = One or more digital outputs mismatch
- Digital input channel 12 returns the Com3 (HMI) power control status.
0 = off
1 = on
The digital output assignment provides eleven I/O channels for the digital outputs of the
SCADAPack 350.
The SCADAPack 350 provides eight universal digital inputs or outputs. Outputs are open-
collector/open drain type.
- These are defined as digital output channels 0 to 7.
0 = output transistor off
1 = output transistor on
The SCADAPack 350 I/O hardware also provides three internal digital outputs.
- Digital output channel 8 is used to control the VLoop power supply.
0 = VLoop output off
1 = VLoop output on
- Digital output channel 9 is used to control the DC/DC converter.
0 = off
1 = on
- Digital output channel 10 is used to control the Com3 (HMI) power.
0 = off
1 = on
Register Assignment
Module SCADAPack 350 I/O
Address fixed
Type Coil Register
Start First register of any unused block of 11
consecutive coil registers.
0xxxx
End Last register of block 0xxxx + 9
Registers 10 coil registers
Description digital outputs
Type Status Register
Start First register of any unused block of 13
consecutive status registers.
1xxxx
End Last register of block 1xxxx + 11
Registers 12 status registers
Description digital inputs
Type Input Register
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
518
Start First register of any unused block of 8
consecutive input registers.
3xxxx
End Last register of block 3xxxx +7
Registers 8 input registers
Description analog inputs
Type Holding Register
Start First register of any unused block of 2
consecutive holding registers.
4xxxx
End Last register of block 4xxxx +1
Registers 2 output registers
Description analog outputs
Coil Register Data
Registers Assignment to Module Hardware
Start Register Digital output 0
Start Register + 1 Digital output 1
Start Register + 2 Digital output 2
Start Register + 3 Digital output 3
Start Register + 4 Digital output 4
Start Register + 5 Digital output 5
Start Register + 6 Digital output 6
Start Register + 7 Digital output 7
Start Register + 8 Digital output 8
Start Register + 9 Digital output 9
Start Register + 10 Digital output 10
Status Register Data
Registers Assignment to Module Hardware
Start Register Digital input 0
Start Register + 1 Digital input 1
Start Register + 2 Digital input 2
Start Register + 3 Digital input 3
Start Register + 4 Digital input 4
Start Register + 5 Digital input 5
Start Register + 6 Digital input 6
Start Register + 7 Digital input 7
Start Register + 8 Digital input 8
Start Register + 9 Digital input 9
Start Register + 10 Digital input 10
Start Register + 11 Digital input 11
Start Register + 12 Digital input 12
Input Register Data
Registers Assignment to Module Hardware
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
519
Registers Assignment to Module Hardware
Start Register Analog input 0
Start Register + 1 Analog input 1
Start Register + 2 Analog input 2
Start Register + 3 Analog input 3
Start Register + 4 Analog input 4
Start Register + 5 Analog input 5
Start Register + 6 Analog input 6
Start Register + 7 Analog input 7
Analog Output Register Data
Registers Assignment to Module Hardware
Start Register Analog output 0
Start Register + 1 Analog output 1
Notes
Only one SCADAPack 350 I/O may be assigned to the same controller.
Refer to the SCADAPack 350 Hardware Manual for information on analog and digital I/O usage.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
520
6.12 Controller Default Register Assignments
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
521
6.12.1 4202 DR Extended/4203 DR I/O Register Assignment
A default Register Assignment is provided for the SCADASense series of controllers. The table
below provides the default register assignment for these controllers.
To enable the default register assignment for a SCADASense controller:
- Select Type from the Controller menu.
- Select the appropriate SCADASense controller.
- Select Register Assignment from the Controller menu.
- Select the Default button in the Register Assignment dialog.
- If the controller type selected is a SCADASense 4202 DR, the user is presented with the default
register assignment for a 4202 DR and 4202 DR Extended/4203 DR. Select the appropriate
module depending on your controller type.
Module Address Default Register
Assignment
SCADASense 4202 DR I/O
digital inputs
analog inputs
analog outputs
Fixed
10001 to 10001
30001 to 30005
40500 to 40500
SCADASense 4202 DR Extended/4203 DR
I/O
Digital output
digital inputs
analog inputs
analog outputs
Fixed
00001 to 00001
10001 to 10001
30001 to 30005
40500 to 40500
Note: Note that the SCADASense 4202 DR Extended/4203 DR I/O module, while the default for
the SCADASense 4203 DR, applies to the SCADASense 4202 DR series controllers
manufactured after July 13, 2004.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
522
6.12.2 SCADASense 4202/4203 DS I/O Default Register Assignment
A default Register Assignment is provided for the SCADASense DS series of controllers (4202 or
4203 DR). The table below contains a convenient assignment for the 4202 DR and 4203 DR
controllers.
To enable the default register assignment:
- Select Type from the Controller menu.
- Select the appropriate SCADASense DS series controller.
- Select Register Assignment from the Controller menu.
Select the Default button in the Register Assignment dialog.
The following table summarizes the Default Register Assignment for the SCADAPack.
Module Address Default Register
Assignment
SCADASense 4202/4203 DS I/O
Digital output
digital inputs
analog inputs
Fixed
00001 to 00002
10001 to 10001
30001 to 30007
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
523
6.12.3 Micro16 Default Register Assignment (Backwards Compatible Modules)
The purpose of the Default Register Assignment is to provide backward compatibility to programs
written for older TeleSAFE Micro16 controller firmware (versions 1.22 or earlier).
Instead of configurable Register Assignment older versions of the firmware use fixed mapping of the
I/O hardware to the I/O database. The Default Register Assignment assigns all possible I/O modules
according the previously fixed mapping used by the older firmware.
Note 1: It is recommended that all unused modules in the default table be deleted in order to
optimize performance of the I/O scan.
Note 2: Only those I/O modules that were available to the older firmware are assigned in the
default table.
To enable the default register assignment:
- Select Type from the Controller menu.
- Select Micro16.
- Select Register Assignment from the Controller menu.
- Select the Default button in the Register Assignment dialog.
- Select Backwards Compatible Modules in the Select Register Assignment Option dialog.
- Use the Delete button to delete from the default table all modules that are not needed in your
program.
The Default Register Assignment results in the following unassigned I/O database registers:
Coil Registers 01025 to 04096
Status Registers 11025 to 14096
Input Registers 30513 to 31024
Holding Register 41712 to 49999
These registers may be used as general purpose registers in ladder logic programs.
6.12.3.1 Default Analog Input Module Assignment
Module Type Module Address Default Register Assignment
AIN Generic 8 point 0 30001 to 30008
AIN Generic 8 point 1 30009 to 30016
AIN Generic 8 point 2 30017 to 30024
AIN Generic 8 point 3 30025 to 30032
AIN Generic 8 point 4 30033 to 30040
AIN Generic 8 point 5 30041 to 30048
AIN Generic 8 point 6 30049 to 30056
AIN Generic 8 point 7 30057 to 30064
AIN 5203/4 temperature N/A 30193 to 30194
AIN 5203/4 RAM battery voltage N/A 30195
6.12.3.2 Default Analog Output Module Assignment
Module Type Module Address Default Register Assignment
AOUT Generic 2 point 0 40001 to 40002
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
524
Module Type Module Address Default Register Assignment
AOUT Generic 2 point 1 40003 to 40004
AOUT Generic 2 point 2 40005 to 40006
AOUT Generic 2 point 3 40007 to 40008
AOUT Generic 2 point 4 40009 to 40010
AOUT Generic 2 point 5 40011 to 40012
AOUT Generic 2 point 6 40013 to 40014
AOUT Generic 2 point 7 40015 to 40016
AOUT Generic 2 point 8 40017 to 40018
AOUT Generic 2 point 9 40019 to 40020
AOUT Generic 2 point 10 40021 to 40022
AOUT Generic 2 point 11 40023 to 40024
AOUT Generic 2 point 12 40025 to 40026
AOUT Generic 2 point 13 40027 to 40028
AOUT Generic 2 point 14 40029 to 40030
AOUT Generic 2 point 15 40031 to 40032
6.12.3.3 Default Configuration Module Assignment
Module Type Module Address Default Register Assignment
CNFG Clear serial port counters 0 00209
CNFG Clear serial port counters 1 00210
CNFG Clear protocol counters 0 00217
CNFG Clear protocol counters 1 00218
CNFG Save settings to EEPROM N/A 00225
CNFG LED power settings
- default state
- time to return to default state
N/A
00242
40211
CNFG Serial port settings 0 40131 to 40139
CNFG Protocol settings 0 40140 to 40142
CNFG Serial port settings 1 40146 to 40154
CNFG Protocol settings 1 40155 to 40157
CNFG Real time clock and alarm N/A 40191 to 40201
CNFG PID control block 0 40220 to 40244
CNFG PID control block 1 40250 to 40274
CNFG PID control block 2 40280 to 40304
CNFG PID control block 3 40310 to 40334
CNFG PID control block 4 40340 to 40364
CNFG PID control block 5 40370 to 40394
CNFG PID control block 6 40400 to 40424
CNFG PID control block 7 40430 to 40454
CNFG PID control block 8 40460 to 40484
CNFG PID control block 9 40490 to 40514
CNFG PID control block 10 40520 to 40544
CNFG PID control block 11 40550 to 40574
CNFG PID control block 12 40580 to 40604
CNFG PID control block 13 40610 to 40634
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
525
Module Type Module Address Default Register Assignment
CNFG PID control block 14 40640 to 40664
CNFG PID control block 15 40670 to 40694
CNFG PID control block 16 40700 to 40724
CNFG PID control block 17 40730 to 40754
CNFG PID control block 18 40760 to 40784
CNFG PID control block 19 40790 to 40814
CNFG PID control block 20 40820 to 40844
CNFG PID control block 21 40850 to 40874
CNFG PID control block 22 40880 to 40904
CNFG PID control block 23 40910 to 40934
CNFG PID control block 24 40940 to 40964
CNFG PID control block 25 40970 to 40994
CNFG PID control block 26 41000 to 41024
CNFG PID control block 27 41030 to 41054
CNFG PID control block 28 41060 to 41084
CNFG PID control block 29 41090 to 41114
CNFG PID control block 30 41120 to 41144
CNFG PID control block 31 41150 to 41174
CNFG Store and forward
Translation table
Clear store and forward table
N/A
41200 to 41711
00226
6.12.3.4 Default Counter Input Module Assignment
Module Type Module Address Default Register Assignment
CNTR 5410 input 0 30201 to 30208
CNTR 5410 input 1 30209 to 30216
CNTR 5410 input 2 30217 to 30224
CNTR 5410 input 3 30225 to 30232
CNTR 5410 input 4 30233 to 30240
CNTR 5410 input 5 30241 to 30248
CNTR 5410 input 6 30249 to 30256
CNTR 5410 input 7 30257 to 30264
CNTR 5410 input 8 30265 to 30272
CNTR 5410 input 9 30273 to 30280
CNTR 5410 input 10 30281 to 30288
CNTR 5410 input 11 30289 to 30296
CNTR 5410 input 12 30297 to 30304
CNTR 5410 input 13 30305 to 30312
CNTR 5410 input 14 30313 to 30320
CNTR 5410 input 15 30321 to 30328
CNTR 5203/4 counter inputs N/A 30329 to 30334
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
526
6.12.3.5 Default Diagnostic Module Assignment
Module Type Module Address Default Register Assignment
DIAG Controller status code N/A 30196
DIAG Serial port comm. Status 0 30401 to 30405
DIAG Serial port protocol status 0 30406 to 30415
DIAG Serial port comm. Status 1 30421 to 30425
DIAG Serial port protocol status 1 30426 to 30435
6.12.3.6 Default Digital Input Module Assignment
Module Type Module Address Default Register Assignment
DIN Generic 8 point 0 10001 to 10008
DIN Generic 8 point 1 10009 to 10016
DIN Generic 8 point 2 10017 to 10024
DIN Generic 8 point 3 10025 to 10032
DIN Generic 8 point 4 10033 to 10040
DIN Generic 8 point 5 10041 to 10048
DIN Generic 8 point 6 10049 to 10056
DIN Generic 8 point 7 10057 to 10064
DIN Generic 16 point 8 10065 to 10080
DIN Generic 16 point 9 10081 to 10096
DIN Generic 16 point 10 10097 to 10112
DIN Generic 16 point 11 10113 to 10128
DIN Generic 16 point 12 10129 to 10144
DIN Generic 16 point 13 10145 to 10160
DIN Generic 16 point 14 10161 to 10176
DIN Generic 16 point 15 10177 to 10192
DIN 5203/4 digital inputs N/A 10193 to 10195
DIN 5203/4 option switches N/A 10196 to 10198
DIN 5203/4 interrupt input N/A 10199
6.12.3.7 Default Digital Output Module Assignment
Module Type Module Address Default Register Assignment
DOUT Generic 8 point 0 00001 to 00008
DOUT Generic 8 point 1 00009 to 00016
DOUT Generic 8 point 2 00017 to 00024
DOUT Generic 8 point 3 00025 to 00032
DOUT Generic 8 point 4 00033 to 00040
DOUT Generic 8 point 5 00041 to 00048
DOUT Generic 8 point 6 00049 to 00056
DOUT Generic 8 point 7 00057 to 00064
DOUT Generic 16 point 8 00065 to 00080
DOUT Generic 16 point 9 00081 to 00096
DOUT Generic 16 point 10 00097 to 00112
DOUT Generic 16 point 11 00113 to 00128
DOUT Generic 16 point 12 00129 to 00144
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
527
Module Type Module Address Default Register Assignment
DOUT Generic 16 point 13 00145 to 00160
DOUT Generic 16 point 14 00161 to 00176
DOUT Generic 16 point 15 00177 to 00192
6.12.4 Micro16 Default Register Assignment (Controller I/O Only)
A default Register Assignment is provided for the Micro16 controller. The table contains a
convenient assignment for the Micro16 controller board only.
To enable the SCADAPack LIGHT default register assignment:
- Select Type from the Controller menu.
- Select Micro16.
- Select Register Assignment from the Controller menu.
- Select the Default button in the Register Assignment dialog.
- Select Controller I/O Only in the Select Register Assignment Option dialog.
The following table summarizes the Default Register Assignment for the Micro16.
Module Address Default Register Assignment
DIN Controller digital inputs 10001 to 10003
DIN Controller interrupt input 10004 to 10004
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
528
6.12.5 SCADAPack (5601 I/O Module) Default Register Assignment
A default Register Assignment is provided for the SCADAPack controller. The table contains a
convenient assignment for the SCADAPack controller and 5601 I/O module.
To enable the SCADAPack default register assignment:
- Select Type from the Controller menu.
- Select SCADAPack.
- Select Register Assignment from the Controller menu.
- Select the Default button in the Register Assignment dialog.
- Select 5601 I/O Module in the Select Register Assignment Option dialog.
The following table summarizes the Default Register Assignment for the SCADAPack.
See the
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
529
SCADAPack 5601 I/O Module section for information on the registers used.
Module Address Default Register Assignment
DIN Controller digital inputs 10017 to 10019
DIN Controller interrupt input 10020 to 10020
SCADAPack 5601 I/O module
digital outputs
digital inputs
analog inputs
Fixed
00001 to 00012
10001 to 10016
30001 to 30008
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
530
6.12.6 SCADAPack (5604 I/O Module) Default Register Assignment
A default Register Assignment is provided for the SCADAPack controller. The table contains a
convenient assignment for the SCADAPack controller and 5604 I/O module.
To enable the SCADAPack default register assignment:
- Select Type from the Controller menu.
- Select SCADAPack.
- Select Register Assignment from the Controller menu.
- Select the Default button in the Register Assignment dialog.
- Select 5604 I/O Module in the Select Register Assignment Option dialog.
The following table summarizes the Default Register Assignment for the SCADAPack.
See the
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
531
SCADAPack 5604 I/O Module section for information on the registers used.
Module Address Default Register Assignment
DIN Controller digital inputs 10017 to 10019
DIN Controller interrupt input 10020 to 10020
SCADAPack 5604 I/O module
digital outputs
digital inputs
analog inputs
analog outputs
Fixed
00001 to 00036
10001 to 10035
30001 to 30010
40001 to 40002
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
532
6.12.7 SCADAPack LIGHT Default Register Assignment
A default Register Assignment is provided for the SCADAPack LIGHT controller. The table
contains a convenient assignment for the SCADAPack controller and 5602 I/O module.
To enable the SCADAPack LIGHT default register assignment:
- Select Type from the Controller menu.
- Select SCADAPack LIGHT.
- Select Register Assignment from the Controller menu.
- Select the Default button in the Register Assignment dialog.
The following table summarizes the Default Register Assignment for the SCADAPack LIGHT.
See the
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
533
SCADAPack 5602 I/O Module section for information on the registers used.
Module Address Default Register Assignment
DIN Controller digital inputs 10006 to 10008
DIN Controller interrupt input 10009 to 10009
SCADAPack 5602 I/O module
digital outputs
digital inputs
analog inputs
Fixed
00001 to 00002
10001 to 10005
30001 to 30005
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
534
6.12.8 SCADAPack PLUS (5601 I/O Module) Default Register Assignment
A default Register Assignment is provided for the SCADAPack PLUS controller. The table contains
a convenient assignment for the SCADAPack controller the 5601I/O module and 5602 I/O module.
To enable the SCADAPack PLUS default register assignment:
- Select Type from the Controller menu.
- Select SCADAPack PLUS.
- Select Register Assignment from the Controller menu.
- Select the Default button in the Register Assignment dialog.
- Select 5601 I/O Module in the Select Register Assignment Option dialog.
The following table summarizes the Default Register Assignment for the SCADAPack PLUS.
See the
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
535
SCADAPack 5601 I/O Module and
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
536
SCADAPack 5602 I/O Module sections for information on the registers used.
Module Address Default Register Assignment
DIN Controller digital inputs 10022 to 10024
DIN Controller interrupt input 10025 to 10025
SCADAPack 5601 I/O module
digital outputs
digital inputs
analog inputs
fixed
00001 to 00012
10001 to 10016
30001 to 30008
SCADAPack 5602 I/O module
digital outputs
digital inputs
analog inputs
Fixed
00013 to 00014
10017 to 10021
30009 to 30013
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
537
6.12.9 SCADAPack Plus (5604 I/O Module) Default Register Assignment
A default Register Assignment is provided for the SCADAPack controller. The table contains a
convenient assignment for the SCADAPack controller and 5604 I/O module.
To enable the SCADAPack default register assignment:
- Select Type from the Controller menu.
- Select SCADAPack Plus.
- Select Register Assignment from the Controller menu.
- Select the Default button in the Register Assignment dialog.
- Select 5604 I/O Module in the Select Register Assignment Option dialog.
The following table summarizes the Default Register Assignment for the SCADAPack. See the
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
538
SCADAPack 5604 I/O Module section for information on the registers used.
Module Address Default Register Assignment
DIN Controller digital inputs 10041 to 10043
DIN Controller interrupt input 10044 to 10044
SCADAPack 5604 I/O module
digital outputs
digital inputs
analog inputs
analog outputs
Fixed
00001 to 00036
10001 to 10035
30001 to 30010
40001 to 40002
SCADAPack 5602 I/O module
digital outputs
digital inputs
analog inputs
Fixed
00037 to 00038
10036 to 10040
30011 to 30015
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
539
6.12.10 SCADAPack LP Default Register Assignment
A default Register Assignment is provided for the SCADAPack LP controller. The table contains a
convenient assignment for the SCADAPack LP controller.
To enable the SCADAPack LP default register assignment:
- Select Type from the Controller menu.
- Select SCADAPack LP.
- Select Register Assignment from the Controller menu.
- Select the Default button in the Register Assignment dialog.
The following table summarizes the Default Register Assignment for the SCADAPack LP.
See the
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
540
SCADAPack LP I /O section for information on the registers used.
Module Address Default Register Assignment
CNTR Controller counter inputs 30009 to 30014
SCADAPack LP I/O
digital outputs
digital inputs
analog inputs
analog outputs
fixed
00001 to 00012
10001 to 10016
30001 to 30008
40001 to 40002
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
541
6.12.11 SCADAPack 330 Default Register Assignment
A default Register Assignment is provided for the SCADAPack 330 controller. The table contains a
convenient assignment for the SCADAPack 330 controller.
To enable the SCADAPack 330 default register assignment:
- Select Type from the Controller menu.
- Select SCADAPack 330.
- Select Register Assignment from the Controller menu.
- Select the Default button in the Register Assignment dialog.
The following table summarizes the Default Register Assignment for the SCADAPack 330.
Module Address Default Register Assignment
SCADAPack 330 I/O
digital outputs
digital inputs
counter inputs
fixed
00001 to 00002
10001 to 10001
30001 to 30006
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
542
6.12.12 SCADAPack 334 Default Register Assignment
Description
A default Register Assignment is provided for the SCADAPack 330 controller. The table contains a
convenient assignment for the SCADAPack 330 controller.
To enable the SCADAPack 330 default register assignment:
- Select Type from the Controller menu.
- Select SCADAPack 334.
- Select Register Assignment from the Controller menu.
- Select the Default button in the Register Assignment dialog.
The following table summarizes the Default Register Assignment for the SCADAPack 330.
Module Address Default Register Assignment
SCADAPack 33x I/O
digital outputs
digital inputs
counter inputs
fixed
00001 to 00002
10001 to 10001
30001 to 30006
SCADAPack 5607 I/O module
digital outputs
digital inputs
analog inputs
analog outputs
0 to 7
00003 to 00012
10002 to 10025
30007 to 30014
40001 to 40002
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
543
6.12.13 SCADAPack 350 Default Register Assignment
A default Register Assignment is provided for the SCADAPack 350 controller. The table contains a
convenient assignment for the SCADAPack 350 controller.
To enable the SCADAPack 350 default register assignment:
- Select Type from the Controller menu.
- Select SCADAPack 350.
- Select Register Assignment from the Controller menu.
- Select the Default button in the Register Assignment dialog.
The following table summarizes the Default Register Assignment for the SCADAPack 350.
Module Address Default Register Assignment
CNTR Controller counter inputs 30009 to 30014
SCADAPack 350 I/O
digital outputs
digital inputs
analog inputs
analog outputs
fixed
00001 to 00012
10001 to 10016
30001 to 30008
40001 to 40002
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
544
6.12.14 SCADAPack 32 (5601 I/O Module) Default Register Assignment
A default Register Assignment is provided for the SCADAPack 32 controller. The table contains a
convenient assignment for the SCADAPack 32 controller.
To enable the SCADAPack 32 default register assignment:
- Select Type from the Controller menu.
- Select SCADAPack 32.
- Select Register Assignment from the Controller menu.
- Select the Default button in the Register Assignment dialog.
- Select 5601 I/O Module in the Select Register Assignment Option dialog.
The following table summarizes the Default Register Assignment for the SCADAPack 32.
See the
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
545
SCADAPack 5601 I/O Module section for information on the registers used.
Module Address Default Register Assignment
DIN Controller digital inputs 10017 to 10019
DIN Controller interrupt input 10020 to 10020
SCADAPack 5601 I/O module
digital outputs
digital inputs
analog inputs
Fixed
00001 to 00012
10001 to 10016
30001 to 30008
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
546
6.12.15 SCADAPack 32 (5604 I/O Module) Default Register Assignment
A default Register Assignment is provided for the SCADAPack 32 controller. The table contains a
convenient assignment for the SCADAPack 32 controller.
To enable the SCADAPack 32 default register assignment:
- Select Type from the Controller menu.
- Select SCADAPack 32.
- Select Register Assignment from the Controller menu.
- Select the Default button in the Register Assignment dialog.
- Select 5601 I/O Module in the Select Register Assignment Option dialog.
The following table summarizes the Default Register Assignment for the SCADAPack 32.
See the
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
547
SCADAPack 5604 I/O Module section for information on the registers used.
Module Address Default Register Assignment
DIN Controller digital inputs 10017 to 10019
DIN Controller interrupt input 10020 to 10020
SCADAPack LP I/O
digital outputs
digital inputs
analog inputs
analog outputs
fixed
00001 to 00012
10001 to 10016
30001 to 30008
40001 to 40002
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
548
6.12.16 SCADAPack 32P Default Register Assignment
A default Register Assignment is provided for the SCADAPack 32P controller. The table contains a
convenient assignment for the SCADAPack 32P controller.
To enable the SCADAPack 32P default register assignment:
- Select Type from the Controller menu.
- Select SCADAPack 32P.
- Select Register Assignment from the Controller menu.
- Select the Default button in the Register Assignment dialog.
The following table summarizes the Default Register Assignment for the SCADAPack 32P.
Module Address Default Register Assignment
DIN Controller digital inputs 10001 to 10003
DIN Controller interrupt input 10004 to 10004
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
549
6.12.17 SCADAPack 100 Default Register Assignment
A default Register Assignment is provided for the SCADAPack 100 controller. The table contains a
convenient assignment for the SCADAPack 100 controller.
To enable the SCADAPack 100 default register assignment:
- Select Type from the Controller menu.
- Select SCADAPack 100.
- Select Register Assignment from the Controller menu.
- Select the Default button in the Register Assignment dialog.
The following table summarizes the Default Register Assignment for the SCADAPack 100.
See the
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
550
SCADAPack 100 I/O section for information on the registers used.
Module Address Default Register Assignment
SCADAPack 100 I/O
digital outputs
digital inputs
analog inputs and counters
fixed
00001 to 00006
10001 to 10006
30001 to 30008
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
551
7 TeleBUS Protocols Overview
The TeleBUS communication protocols provide a standard communication interface to
SCADAPack and TeleSAFE controllers. The TeleBUS protocols are compatible with the
widely used Modbus RTU and ASCII protocols. Additional TeleBUS commands provide
remote programming and diagnostics capability.
The TeleBUS protocols operate on a wide variety of serial data links. These include RS-232
serial ports, RS-485 serial ports, radios, leased line modems, and dial up modems. The
protocols are generally independent of the communication parameters of the link, with a few
exceptions.
TeleBUS protocol commands may be directed to a specific device, identified by its station
number, or broadcast to all devices. Using extended addressing up to 65534 devices may
connect to one communication network.
The TeleBUS protocols provide full access to the I/O database in the controller. The I/O
database contains user-assigned registers and general purpose registers. Assigned registers
map directly to the I/O hardware or system parameter in the controller. General purpose
registers can be used by ladder logic and C application programs to store processed
information, and to receive information from a remote device.
Application programs can initiate communication with remote devices. A multiple port
controller can be a data concentrator for remote devices, by polling remote devices on one
port and responding as a slave on another port.
The protocol type, communication parameters and station address are configured separately
for each serial port on a controller. One controller can appear as different stations on
different communication networks. The port configuration can be set from an application
program, from the TelePACE programming software, or from another Modbus compatible
device.
7.1 Compatibility
There are two TeleBUS protocols. The TeleBUS RTU protocol is compatible with the
Modbus RTU protocol. The TeleBUS ASCII protocol is compatible with the Modbus ASCII
protocol.
Compatibility refers to communication only. The protocol defines communication aspects
such as commands, syntax, message framing, error handling and addressing. The controllers
do not mimic the internal functioning of any programmable controller. Device specific
functions those that relate to the hardware or programming of a specific programmable
controller are not implemented.
7.2 Serial Port Configuration
7.2.1 Communication Parameters
The TeleBUS protocols are, in general, independent of the serial communication parameters.
The baud rate, word length and parity may be chosen to suit the host computer and the
characteristics of the data link.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
552
The port configuration can be set in four ways:
- using the TelePACE program;
- using the set_port function from a C application program;
- writing to the I/O database from a C or ladder logic application program; or
- writing to the I/O database remotely from a Modbus compatible device.
To configure a serial port through the I/O database, add the module, CNFG Serial
port settings, to the Register Assignment Table.
7.2.1.1 RTU Protocol Parameters
The TeleBUS RTU protocol is an eight bit binary protocol. The table below shows
possible and recommended communication parameters.
Parameter Possible Settings Recommended Setting
Baud Rate see Baud Rate section below see Baud Rate section
below
Data Bits 8 data bits 8 data bits
Parity None
Even
Odd
none
Stop bits 1 stop bit
2 stop bits
1
1 stop bit
Flow
control
Disabled disabled
Duplex see Duplex section below see Duplex section below
1
Not applicable to SCADAPack 330, SCADAPack 350 or SCADASense 4203.
7.2.1.2 ASCII Protocol Parameters
The TeleBUS ASCII protocol is an seven bit character based protocol. The table
below shows possible and recommended communication parameters.
Parameter Possible Settings Recommended Setting
Baud Rate see Baud Rate section below see Baud Rate section
below
Data Bits 7 data bits
8 data bits
7 data bits
Parity None
Even
Odd
none
Stop Bits 1 stop bit
2 stop bits
1
1 stop bit
Flow
Control
Enabled
Disabled
disabled
Duplex see Duplex section below see Duplex section below
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
553
1
Not applicable to SCADAPack 33x, SCADAPack 350 or SCADASense 4203.
NOTE: Flow control should never be enabled with modems or in noisy environments. Noise
can result in the accidental detection of an XOFF character, which shuts down
communication. Flow control is not recommended for any environment, but can be
used on high quality, full duplex, direct wiring where speeds greater than 4800 baud
are required.
7.2.1.3 Baud Rate
The baud rate sets the communication speed. The type of serial data link used determines the
possible settings. The table below shows the possible settings for SCADAPack and
TeleSAFE controllers. Note that not all port types and baud rates are available on all
controller ports.
Port
Type
Possible Settings Recommended Setting
RS-232
or
RS-232
Dial-up
modem
75 baud
110 baud
150 baud
300 baud
600 baud
1200 baud
2400 baud
4800 baud
9600 baud
19200 baud
38400 baud
57600 baud
115200 baud
Use the highest rate
supported by all devices on
the network.
RS-485 75 baud
110 baud
150 baud
300 baud
600 baud
1200 baud
2400 baud
4800 baud
9600 baud
19200 baud
38400 baud
57600 baud
115200 baud
Use the highest rate
supported by all devices on
the network.
7.2.1.4 Duplex
The TeleBUS protocols communicate in one direction at a time. However the type of
serial data link used determines the duplex setting. The table below shows the
possible settings for SCADAPack and TeleSAFE controllers. Note that not all port
types are available on all controllers.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
554
Port
Type
Possible Settings Recommended Setting
RS-232
or
RS-232
Dial-up
modem
half duplex
full duplex
Use full duplex wherever
possible.
Use half duplex for most
external modems.
RS-485 half duplex
full duplex
Slave stations always use
half duplex.
Master stations can use full
duplex only on 4 wire
systems.
7.2.2 Protocol Parameters
The TeleBUS protocols operate independently on each serial port. Each port may set
the protocol type, station number, protocol task priority and store-and-forward
messaging options.
The port configuration can be set in four ways:
- using the TelePACE or ISaGRAF programs;
- using the set_protocol function from a C or C++ application program;
- writing to the I/O database from a C, C++, ISaGRAF or ladder logic application
program;
- writing to the I/O database remotely from a Modbus compatible device.
To configure protocol settings through the I/O database, add the module, CNFG
Protocol settings, to the Register Assignment for TelePACE applications or use the
setprot function in ISaGRAF applications.
7.2.2.1 Protocol Type
The protocol type may be set to emulate the Modbus ASCII and Modbus RTU
protocols, or it may be disabled. When the protocol is disabled, the port functions as
a normal serial port.
7.2.2.2 Station Number
The TeleBUS protocol allows up to 254 devices on a network using standard
addressing and up to 65534 devices using extended addressing. Station numbers
identify each device. A device responds to commands addressed to it, or to
commands broadcast to all stations.
The station number is in the range 1 to 254 for standard addressing and 1 to 65534
for extended addressing. Address 0 indicates a command broadcast to all stations,
and cannot be used as a station number. Each serial port may have a unique station
number.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
555
7.2.2.3 Task Priority
A task is responsible for monitoring each serial port for messages. The real time
operating system (RTOS) schedules the tasks with the application program tasks
according to the task priority. The priority can be changed only with the
set_protocol function from an application program.
The default task priority is 3. Changing the priority is not recommended.
7.2.2.4 Store and Forward Messaging
Store and forward messaging re-transmits messages received by a controller.
Messages may be re-transmitted on any serial port, with or without station address
translation. A user-defined translation table determines actions performed for each
message. The Store and Forward Messaging section below describes this feature in
detail.
Store and forward messaging may be enabled or disabled on each port. It is disabled
by default.
7.3 I/O Database
The TeleBUS protocols read and write information from the I/O database. The I/O
database contains user-assigned registers and general purpose registers.
User-assigned registers map directly to the I/O hardware or system parameter in the
controller. Assigned registers are initialized to the default hardware state or system
parameter when the controller is reset. Assigned output registers do not maintain
their values during power failures. However, output registers do retain their values
during application program loading.
General purpose registers are used by ladder logic and C application programs to
store processed information, and to receive information from remote devices.
General purpose registers retain their values during power failures and application
program loading. The values change only when written by an application program or
a communication protocol.
The I/O database is divided into four sections.
- Coil registers are single bits which the protocols can read and write. Coil registers
are located in the digital output section of the I/O database. The number of
registers depends on the controller. Coil registers are numbered from 1 to the
maximum for the controller.
- Status registers are single bits which the protocol can read. Status registers are
located in the digital input section of the I/O database. The number of registers
depends on the controller. Status registers are numbered from 10001 to the
maximum for the controller.
- Input registers are 16 bit registers which the protocol can read. Input registers are
located in the analog input section of the I/O database. The number of registers
depends on the controller. Input registers are numbered from 30001 to the
maximum for the controller.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
556
- Holding registers are 16 bit registers that the protocol can read and write. Holding
registers are located in the analog output section of the I/O database. The number
of registers depends on the controller. Holding registers are numbered from 40001
to the maximum for the controller.
7.3.1 Accessing the I/O Database
TelePACE ladder logic programs access the I/O database through function blocks.
All function blocks can access the I/O database. Refer to the TelePACE Ladder
Logic Reference and User Manual for details.
ISaGRAF applications access the I/O database through dictionary variables with
assigned network addresses or using Permanent Non-Volatile Modbus registers. See
the I SaGRAF User and Reference Manual for details.
C language programs access the I/O database with two functions. The dbase function
reads a value from the I/O database. The setdbase function writes a value to the I/O
database. Refer to the TelePACE C Tools Reference and User Manual for full
details on these functions.
7.3.1.1 Coil and Status Registers
Coil and status registers contain one bit of information, that is, whether a signal is off
or on.
Writing any non-zero value to the register turns the bit on. Writing zero to the
register turns the bit off. If the register is assigned to an I/O module, the bit status is
written to the module output hardware or parameter.
Reading a coil or status register returns 1 if the bit is on, or 0 if the bit is off. The
stored value is returned from general purpose registers. The I/O module point status
is returned from assigned registers.
7.3.1.2 Input and Holding Registers
Input and holding registers contain 16 bit values.
Writing any value to a general purpose register stores the value in the register.
Writing a value to an assigned register, writes the value to the assigned I/O module.
Reading a general purpose register returns the value stored in the register. Reading
an assigned register returns the value read from the I/O module.
7.3.1.3 Exception Status
The exception status is a single byte containing controller specific status information.
It is returned in response to the Read Exception Status function (see the Slave Mode
section).
A C language application program can define the status information. The
modbusExceptionStatus function sets the status information. Ladder logic
programs cannot set this information.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
557
7.3.1.4 Slave ID
The slave ID is a variable length message containing controller specific information.
It is returned in response to the Report Slave ID function (see the Slave Mode
section).
A C language application program can define the information and the length of the
message. The modbusSlaveID function sets the information. Ladder logic programs
cannot set this information.
7.4 Extended Station Addressing
The TeleBUS RTU and ASCII protocols support two type of Modbus station
addressing. Standard Modbus addressing allows a maximum of 255 stations and is
compatible with standard Modbus devices.
Extended Modbus addressing allows a maximum of 65534 stations. Extended
Modbus addressing is fully compatible with standard Modbus addressing for
addresses between 0 and 254.
7.4.1 Theory of Operation
The address field of a Modbus message is a single byte. Address 0 is a broadcast
address; messages sent to this address are sent to all stations. Addresses 1 to 255 are
station addresses. Figure 1 shows the format of a standard Modbus message.
Field Addres
s
Functio
n
...
Size 1 1 N
Figure 118: Standard Modbus Message
The address field extension adds a two-byte extended address field to the message.
Figure 2 shows the format of an extended address Modbus message.
Field Addre
ss =
255
Extende
d
Address
(high)
Extende
d
Address
(low)
Functio
n
...
Size 1 1 1 1 n
Figure 119: Extended Address Modbus Message
Messages for addresses 0 to 254 use the standard format message. The station
address is stored in the address byte.
Messages for stations 255 to 65534 use the extended address format message. The
address byte is set to 255. This indicates the extended address format is used. The
actual address is stored in the two extended address bytes.
Station address 65535 is reserved and cannot be used as a station number. This
station address is used in store-and-forward tables to indicate a disabled station.
Slave, master and store-and-forward stations treat the addresses in the same manner.
The application program controls the use of the extended addressing format. It may
enable or disable the extended addressing.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
558
7.5 Slave Mode
The TeleBUS protocols operate in slave and master modes simultaneously. In slave
mode the controller responds to commands sent by another device. Commands may
be sent to a specific device or broadcast to all devices.
The TeleBUS protocols emulate the Modbus protocol functions required for
communication with a host device. These functions are described below. It also
implements functions for programming and remote diagnostics. These functions are
not required for host communication, so are not described here.
A technical specification for the TeleBUS protocol is available from Control
Microsystems. It describes all the functions in detail. In most cases knowledge of the
actual commands is not required.
7.5.1 Broadcast Messages
A broadcast message is sent to all devices on a network. Each device executes the
command. No device responds to a broadcast command. The device sending the
command must query each device to determine if the command was received and
processed. Broadcast messages are supported for some function codes that write
information.
A broadcast message is sent to station number 0.
7.5.2 Function Codes
The table summarizes the implemented function codes. The maximum number of
registers that can be read or written with one message is shown in the maximum
column.
Functio
n
Name Description Maximu
m
01 Read Coil Status Reads digital output
registers.
2000
02 Read Input Status Reads digital input registers. 2000
03 Read Holding
Register
Reads analog output
registers.
125
04 Read Input Register Reads analog input registers. 125
05 Force Single Coil Writes digital output register. 1
06 Preset Single
Register
Writes analog output
registers.
1
07 Read Exception
Status
Reads special information. N/A
15 Force Multiple Coils Writes digital output
registers.
880
16 Preset Multiple
Registers
Writes analog output
registers.
60
17 Report Slave ID Reads controller type
information
N/A
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
559
Functions 5, 6, 15, and 16 support broadcast messages. The functions are described
in detail below.
7.5.2.1 Read Coil Status
The Read Coil Status function reads data from the digital output section of the I/O
database. Any number of registers may be read up to the maximum number. The
read may start at any address, provided the entire block is within the valid register
range. Each register is one bit.
7.5.2.2 Read Input Status
The Read Input Status function reads data from the digital input section of the I/O
database. Any number of registers may be read up to the maximum number. The
read may start at any address, provided the entire block is within the valid register
range. Each register is one bit.
7.5.2.3 Read Holding Register
The Read Holding Register function reads data from the analog output section of the
I/O database. Any number of registers may be read up to the maximum number. The
read may start at any address, provided the entire block is within the valid register
range. Each register is 16 bits.
7.5.2.4 Read Input Register
The Read Input Register function reads data from the analog input section of the I/O
database. Any number of registers may be read up to the maximum number. The
read may start at any address, provided the entire block is within the valid register
range. Each register is 16 bits.
7.5.2.5 Force Single Coil
The Force Single Coil function writes one bit into the digital output section of the
I/O database. The write may specify any valid register.
7.5.2.6 Preset Single Register
The Preset Single Register function writes one 16 bit value into the analog output
section of the I/O database. The write may specify any valid register.
7.5.2.7 Read Exception Status
The Read Exception Status function reads a single byte containing controller specific
status information. The information is defined by the application program. This
function is included for compatibility with devices expecting to communicate with a
Modicon PLC.
7.5.2.8 Force Multiple Coils
The Force Multiple Coils function writes single bit values into the digital output
section of the I/O database. Any number of registers may be written up to the
maximum number. The write may start at any address, provided the entire block is
within the valid register range. Each register is 1 bit.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
560
7.5.2.9 Preset Multiple Registers
The Preset Multiple Register function writes 16 bit values into the analog output
section of the I/O database. Any number of registers may be written up to the
maximum number. The write may start at any address, provided the entire block is
within the valid register range. Each register is 16 bits.
7.5.2.10 Report Slave ID
The Report Slave ID function reads a variable length message containing controller
specific information. The information and the length of the message is defined by the
application program. This function is included for compatibility with devices
expecting to communicate with a Modicon PLC.
7.6 Modbus Master Mode
The TeleBUS protocol may act as a communication master on any serial port. In
master mode, the controller sends commands to other devices on the network.
Simultaneous master messages may be active on all ports.
The protocol cannot support master mode and store-and-forward mode
simultaneously on a serial port. Enabling store and forward messaging disables
processing of responses to master mode commands. Master mode may be used on
one port and store-and-forward mode on another port.
7.6.1 Modbus Function Codes
The table shows the implemented function codes. The maximum number of registers
that can be read or written with one message is shown in the maximum column. The
slave device may support fewer registers than shown; consult the manual for the
device for details.
Functio
n
Name Description Maximum
01 Read Coil Status Reads digital output
registers.
2000
02 Read Input Status Reads digital input registers. 2000
03 Read Holding
Register
Reads analog output
registers.
125
04 Read Input Register Reads analog input registers. 125
05 Force Single Coil Writes digital output register. 1
06 Preset Single Register Writes analog output
registers.
1
15 Force Multiple Coils Writes digital output
registers.
880
16 Preset Multiple
Registers
Writes analog output
registers.
60
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
561
7.6.1.1 Read Coil Status
The Read Coil Status function reads data from coil registers in the remote device.
Data can be written into the digital input or the digital output sections of the I/O
database.
Any number of registers may be read up to the maximum number supported by the
slave device or the maximum number above, whichever is less. The read may start at
any address, provided the entire block is within the valid register range. Each register
is one bit.
7.6.1.2 Read Input Status
The Read Input Status function reads data from input registers in the remote device.
Data can be written into the digital input or the digital output sections of the I/O
database.
Any number of registers may be read up to the maximum number supported by the
slave device or the maximum number above, whichever is less. The read may start at
any address, provided the entire block is within the valid register range. Each register
is one bit.
7.6.1.3 Read Holding Register
The Read Holding Register function reads data from holding registers in the remote
device. Data can be written into the analog input or the analog output sections of the
I/O database.
Any number of registers may be read up to the maximum number supported by the
slave device or the maximum number above, whichever is less. The read may start at
any address, provided the entire block is within the valid register range. Each register
is 16 bits.
7.6.1.4 Read Input Register
The Read Input Register function reads data from input registers in the remote
device. Data can be written into the analog input or the analog output sections of the
I/O database.
Any number of registers may be read up to the maximum number supported by the
slave device or the maximum number above, whichever is less. The read may start at
any address, provided the entire block is within the valid register range. Each register
is 16 bits.
7.6.1.5 Force Single Coil
The Force Single Coil function writes one bit into a coil register in the remote
device. The data may come from the digital input or digital output sections of the I/O
database.
The write may specify any valid coil register in the remote device.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
562
7.6.1.6 Preset Single Register
The Preset Single Register function writes one 16 bit value into a holding register in
the remote device. The data may come from the analog input or output sections of
the I/O database.
The write may specify any valid holding register in the remote device.
7.6.1.7 Force Multiple Coils
The Force Multiple Coils function writes single bit values coil registers in the remote
device. The data may come from the digital input or digital output sections of the I/O
database.
Any number of registers may be written up to the maximum number supported by
the slave device or the maximum number above, which ever is less. The write may
start at any address, provided the entire block is within the valid register range of the
remote device. Each register is 1 bit.
7.6.1.8 Preset Multiple Registers
The Preset Multiple Register function writes 16 bit values into holding registers of
the remote device. The data may come from the analog input or output sections of
the I/O database.
Any number of registers may be written up to the maximum number supported by
the slave device or the maximum number above, which ever is less. The write may
start at any address, provided the entire block is within the valid register range of the
remote device. Each register is 16 bits.
7.6.2 Enron Modbus Master Mode
The Enron Modbus protocol is based on the Modbus ASCII and RTU protocols. Message
framing is identical to the Modbus protocols. However, there are many differences in
message formatting and register numbering, at both the logical and protocol levels.
The document Specifications and Requirements for an Electronic Flow Measurement
Remote Terminal Unit describes the Enron Modbus protocol.
7.6.2.1 Variable Types
There are ranges of Enron registers to hold short integers, long integers and single precision
floats. The ranges are as follows.
Range Data Type
1001 - 1999 Boolean
3001 - 3999 Short integer
5001 - 5999 Long integer
7000 - 9999 Float
In general, both Numeric and Boolean function codes can be used to read and write all types
of registers. Consult the Enron Modbus specification for details.
7.6.2.1.1 Boolean Registers
Enron Modbus Boolean registers are usually numbered 1001 to 1999.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
563
Boolean registers are read using Modbus command 1. Boolean registers are written using
Modbus command 5 for single registers and 15 for multiple registers.
The address offset in the message is equal to the register number.
The number of Modbus registers is equal to the number of Enron registers.
The response format is identical to the Modbus response format.
7.6.2.1.2 Short Integer Registers
Enron Modbus Short Integer registers are usually numbered 3001 to 3999.
Short Integer registers are read using Modbus command 3. Short Integer registers are written
using Modbus command 6 for single registers and 16 for multiple registers.
The address offset in the message is equal to the register number.
The number of Modbus registers is equal to the number of Enron registers.
The response format is identical to the Modbus response format.
7.6.2.1.3 Long Integer Registers
Enron Modbus Long Integer registers are usually numbered 5001 to 5999.
Long Integer registers are read using Modbus command 3. Long Integer registers are written
using Modbus command 6 for single registers and 16 for multiple registers.
The address offset in the message is equal to the register number.
The number of Modbus registers requested is equal to the number of Enron registers.
The number of Modbus registers expected in the response is equal to two times the number
of Enron registers.
7.6.2.1.4 Floating Point Registers
Enron Modbus Floating-point registers are usually numbered 7001 to 7999.
Floating-point registers are read using Modbus command 3. Floating-point registers are
written using Modbus command 6 for single registers and 16 for multiple registers.
The address offset in the message is equal to the register number.
The number of Modbus registers requested is equal to the number of Enron registers.
The number of Modbus registers expected in the response is equal to two times the number
of Enron registers.
7.6.2.2 Enron Modbus Function Codes
The following table shows the implemented function codes for Enron Modbus. The
maximum number of registers that can be read or written with one message is shown in the
maximum column. The slave device may support fewer registers than shown; consult the
manual for the device for details.
Functions 129, 130, 132, 133, 135, 136, 138, and 139 may be broadcast, but some Enron
Modbus slave devices may not support broadcast messages. Consult the manual for the
device for details.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
564
Function Name Description Maximum
128 Read Enron Boolean Read Enron Boolean registers 2000
129 Write Enron Boolean Write Enron Boolean register 1
130 Write Enron Multiple
Boolean
Write Enron Boolean registers 880
131 Read Enron Short Integer Read Enron short integer
register
125
132 Write Enron Short Integer Write Enron short integer
register
1
133 Write Enron Multiple
Short Integer
Write Enron short integer
registers
60
134 Read Enron Long Integer Read Enron long integer
register
62
135 Write Enron Long Integer Write Enron long integer
register
1
136 Write Enron Multiple
Long Integer
Write Enron long integer
registers
30
137 Read Enron Floating Point Read Enron floating-point
register
62
138 Write Enron Floating
Point
Write Enron floating-point
register
1
139 Write Enron Multiple
Floating Point
Write Enron floating-point
registers
30
7.6.3 Sending Messages
A master message is initiated in one of five ways:
- using the master_message function from a C or C++ application program; or
- using the MSTR function block from a TelePACE ladder logic program; or
- using the MSIP function block from a TelePACE ladder logic program; or
- using the master function in an ISaGRAF program; or
- using the masterip function in an ISaGRAF program.
These functions specify the port on which to issue the command, the function code,
the type of station addressing, the slave station number, and the location and size of
the data in the slave and master devices. The protocol driver, independent of the
application program receives the response to the command.
The application program detects the completion of the transaction by:
- calling the get_protocol_status function in a C application program; or
- using the output of the MSTR function block in a TelePACE ladder logic
program; or
- using the output of the master function in an ISaGRAF program.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
565
A communication error has occurred if the slave does not respond within the
expected maximum time for the complete command and response. The application
program is responsible for detecting this condition. When errors occur, it is
recommended that the application program retry several times before indicating a
communication failure.
The completion time depends on the length of the message, the length of the
response, the number of transmitted bits per character, the transmission baud rate,
and the maximum message turn-around time. One to three seconds is usually
sufficient. Radio systems may require longer delays.
7.7 Store and Forward Messaging
Store and forward messaging is required on systems where there is no direct link
between a host computer and all the remote sites. This occurs on radio systems
where the host computer transmission cannot be heard by all remote sites. It occurs
on systems where one controller is used as a data concentrator for several remote
units. With store and forward messaging, a request to a controller that cannot be
directly accessed by a host is routed through an intermediate controller, which can
communicate with both the host and the remote controller.
The TeleBUS protocol provides store and forward messaging through address
translation. A controller configured for store and forward operation receives
messages destined for a remote station, re-addresses them according to translation
table, and forwards the message to the remote station. Responses from the remote
station are processed in the same manner.
The TeleBUS protocol allows messages to be re-transmitted on the same port with
address translation. This is used with radio systems. The radio at the intermediate site
is used as a type of repeater. The protocol allows messages to be re-transmitted on a
different port, with or without address translation. This is used where the
intermediate controller is a bridge between two networks.
The TeleBUS protocol driver maintains diagnostics counters at the store and forward
site on the number of messages received and transmitted to aid in the diagnosing of
communication problems.
The protocol cannot support master mode and store-and-forward mode
simultaneously on a serial port. Enabling store and forward messaging disables
processing of responses to master mode commands. Master mode may be used on
one port and store-and-forward mode on another port. Applications requiring both
modes on a single port must switch the modes under control of the application
program.
7.7.1 Translation Table
The translation table specifies address and communication port translation. The
translation table differs for SCADAPack and SCADAPack 32 controllers. Each entry
in the translation table for SCADAPack controllers has four components, as shown
in the table entry below.
Port Station Address Port Station Address B
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
566
A A B
The entry defines a bi-directional transfer. A message (poll or reply) received for station A
on port A is re-transmitted to station B on port B. A message received for station B on port
B is re-transmitted to station A on port A.
Each entry in the translation table for SCADAPack 32 controllers has five components, as
shown in the table entry below.
Slave Interface Slave Station Forward
Interface
Forward
Station
Forward IP
Address
The Slave Interface entry contains the receiving slave interface the message is received from
for each translation.
The Slave Station entry contains the Modbus station address of the slave message.
The Forward Interface entry contains the interface the message is forwarded from. When
forwarding to a TCP or UDP network, the protocol type is selected for the Forward
Interface. The IP Stack automatically determines the exact interface (e.g. Ethernet1) to use
when it searches the network for the Forward IP Address.
The Forward Station entry contains the Modbus station address of the forwarded message.
The Forward IP Address entry contains the IP address of the Forward Station. This
field is blank unless a TCP or UDP network is selected for Forward Interface.
7.7.1.1 Table Size
The translation table holds 128 translation entries. This is sufficient to re-transmit
one-half of 256 possible addresses. On a single port controller only 128 translations
are required since each address must translate to a different address for re-
transmission on the same port see Invalid Translations.
7.7.2 Invalid Translations
The following translations are not valid. The described action is taken when these
translations are encountered.
- Re-transmission on the same port with the same address is not valid, except for
broadcast messages. This restriction is required because many message responses
are identical to the command. It is impossible for the master station to distinguish
between the re-transmitted message and the response from the slave. The re-
transmitted message would appear to be the response.
- The protocol re-transmits broadcast messages on the same port. Some stations
will receive the broadcast message twice. The master station will also receive the
message and may execute it if it is able to operate as a slave. The user must bear
these consequences in mind when forwarding broadcast messages.
- The store and forward controller also processes broadcast messages.
- Translations where either of the station addresses are the same as the controller
station address for the port, are not valid. The protocol processes these messages
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
567
as if they were directed to the controller. It does not look up the address in the
translation table.
- Translations with non-existent port numbers or invalid addresses are not valid.
- Multiple translations for a port and station address combination are not valid.
- Translations where one station is DISABLED and the other station is not, are not
valid. A DISABLED translation is a valid translation.
7.7.3 Store and Forward Configuration
The Store and Forward configuration varies depending on the controller you are configuring.
The configuration for each type of controller is described in the following sections.
7.7.3.1 SCADAPack Controller
An application program, written in TelePACE Ladder Logic or TelePACE C Tools and
ISaGRAF IEC61131 or ISaGRAF IEC61131 C Tools programming, enables and configures
store and forward messaging. A HMI host may enable and configure store and forward
messaging through the controller I/O database.
7.7.3.1.1 TelePACE Ladder Logic
1. To enable the use of store and forward messaging on one or more serial ports the
Configuration I/O Module CNFG Protocol Settings Method 1, 2 or 3 must be
added to the register assignment. The store and forward enable register must be
set to enable.
2. Add the Configuration I/O Module CNFG Store and Forward to the register
assignment to configure the translation table.
3. Configure the translation table by writing the necessary translation table entries
to the registers defined in the CNFG Store and Forward I/O module.
The translation table must be initialized before store and forward messaging is enabled.
Forwarding of messages is disabled when TelePACE programming software or a SERVICE
boot initializes the controller. This prevents inadvertent forwarding of messages when new
controllers are installed on networks.
7.7.3.1.2 TelePACE C Tools
The TelePACE C language application program interface provides the following
functions. Refer to the TelePACE C Tools Reference and User Manual for details.
- The getSFTranslation function returns an entry from the store and forward
translation table. The entry consists of two port and station address pairs.
- The setSFTranslation function writes an entry into the store and forward
translation table. The entry consists of two port and station address pairs. The
function checks for invalid translations; if the translation is not valid it is not
stored. The function returns a status code indicating success or an error if the
translation is not valid. A translation is cleared from the table by writing a
translation with both stations set to DISABLED (station 256).
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
568
- The clearSFTranslationTable function clears all entries in the translation table.
A cleared entry has the port set to 0 (com1) and the station set to
DISABLED_STATION (65535).
- The checkSFTranslationTable function checks the translation table for invalid
entries. It returns a status structure indicating if the table is valid and the location
and type of the first error if it is not valid.
7.7.3.1.3 ISaGRAF IEC61131
1. To enable the use of store and forward messaging on one or more serial ports the
Custom Function setprot or setprot2 must be added to the project. The
SandFEnabled input must be set to TRUE.
2. Configure the translation table by using the setsf function to write the necessary
translation table entries.
The translation table must be initialized before store and forward messaging is enabled.
Forwarding of messages is disabled when ISaGRAF IEC61131 programming software or a
SERVICE boot initializes the controller. This prevents inadvertent forwarding of messages
when new controllers are installed on networks.
7.7.3.1.4 ISaGRAF IEC61131 C Tools
The ISaGRAF C language application program interface provides the following
functions. Refer to the I SaGRAF C Tools Reference and User Manual for details.
- The getSFTranslation function returns an entry from the store and forward
translation table. The entry consists of two port and station address pairs.
- The setSFTranslation function writes an entry into the store and forward
translation table. The entry consists of two port and station address pairs. The
function checks for invalid translations; if the translation is not valid it is not
stored. The function returns a status code indicating success or an error if the
translation is not valid. A translation is cleared from the table by writing a
translation with both stations set to DISABLED_STATION (65535).
- The clearSFTranslationTable function clears all entries in the translation table.
A cleared entry has the port set to 0 (com1) and the station set to
DISABLED_STATION (65535).
- The checkSFTranslationTable function checks the translation table for invalid
entries. It returns a status structure indicating if the table is valid and the location
and type of the first error if it is not valid.
7.7.3.2 SCADAPack Light Controller
An application program, written in TelePACE Ladder Logic or TelePACE C Tools and
ISaGRAF IEC61131 or ISaGRAF IEC61131 C Tools programming, enables and configures
store and forward messaging. A HMI host may enable and configure store and forward
messaging through the controller I/O database.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
569
7.7.3.2.1 TelePACE Ladder Logic
1. To enable the use of store and forward messaging on one or more serial ports the
Configuration I/O Module CNFG Protocol Settings Method 1, 2 or 3 must be
added to the register assignment. The store and forward enable register must be
set to enable.
2. Add the Configuration I/O Module CNFG Store and Forward to the register
assignment to configure the translation table.
3. Configure the translation table by writing the necessary translation table entries
to the registers defined in the CNFG Store and Forward I/O module.
The translation table must be initialized before store and forward messaging is enabled.
Forwarding of messages is disabled when TelePACE programming software or a SERVICE
boot initializes the controller. This prevents inadvertent forwarding of messages when new
controllers are installed on networks.
7.7.3.2.2 TelePACE C Tools
The TelePACE C language application program interface provides the following
functions. Refer to the TelePACE C Tools Reference and User Manual for details.
- The getSFTranslation function returns an entry from the store and forward
translation table. The entry consists of two port and station address pairs.
- The setSFTranslation function writes an entry into the store and forward
translation table. The entry consists of two port and station address pairs. The
function checks for invalid translations; if the translation is not valid it is not
stored. The function returns a status code indicating success or an error if the
translation is not valid. A translation is cleared from the table by writing a
translation with both stations set to DISABLED_STATION (65535).
- The clearSFTranslationTable function clears all entries in the translation table.
A cleared entry has the port set to 0 (com1) and the station set to
DISABLED_STATION (65535).
- The checkSFTranslationTable function checks the translation table for invalid
entries. It returns a status structure indicating if the table is valid and the location
and type of the first error if it is not valid.
7.7.3.2.3 ISaGRAF IEC61131
1. To enable the use of store and forward messaging on one or more serial ports the
Custom Function setprot or setprot2 must be added to the project. The
SandFEnabled input must be set to TRUE.
2. Configure the translation table by using the setsf function to write the necessary
translation table entries.
The translation table must be initialized before store and forward messaging is enabled.
Forwarding of messages is disabled when ISaGRAF IEC61131 programming software or a
SERVICE boot initializes the controller. This prevents inadvertent forwarding of messages
when new controllers are installed on networks.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
570
7.7.3.2.4 ISaGRAF IEC61131 C Tools
The ISaGRAF C language application program interface provides the following
functions. Refer to the I SaGRAF C Tools Reference and User Manual for details.
- The getSFTranslation function returns an entry from the store and forward
translation table. The entry consists of two port and station address pairs.
- The setSFTranslation function writes an entry into the store and forward
translation table. The entry consists of two port and station address pairs. The
function checks for invalid translations; if the translation is not valid it is not
stored. The function returns a status code indicating success or an error if the
translation is not valid. A translation is cleared from the table by writing a
translation with both stations set to DISABLED_STATION (65535).
- The clearSFTranslationTable function clears all entries in the translation table.
A cleared entry has the port set to 0 (com1) and the station set to
DISABLED_STATION (65535).
- The checkSFTranslationTable function checks the translation table for invalid
entries. It returns a status structure indicating if the table is valid and the location
and type of the first error if it is not valid.
7.7.3.3 SCADAPack Plus Controller
An application program, written in TelePACE Ladder Logic or TelePACE C Tools and
ISaGRAF IEC61131 or ISaGRAF IEC61131 C Tools programming, enables and configures
store and forward messaging. A HMI host may enable and configure store and forward
messaging through the controller I/O database.
7.7.3.3.1 TelePACE Ladder Logic
1. To enable the use of store and forward messaging on one or more serial ports the
Configuration I/O Module CNFG Protocol Settings Method 1, 2 or 3 must be
added to the register assignment. The store and forward enable register must be
set to enable.
2. Add the Configuration I/O Module CNFG Store and Forward to the register
assignment to configure the translation table.
3. Configure the translation table by writing the necessary translation table entries
to the registers defined in the CNFG Store and Forward I/O module.
The translation table must be initialized before store and forward messaging is enabled.
Forwarding of messages is disabled when TelePACE programming software or a SERVICE
boot initializes the controller. This prevents inadvertent forwarding of messages when new
controllers are installed on networks.
7.7.3.3.2 TelePACE C Tools
The TelePACE C language application program interface provides the following
functions. Refer to the TelePACE C Tools Reference and User Manual for details.
- The getSFTranslation function returns an entry from the store and forward
translation table. The entry consists of two port and station address pairs.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
571
- The setSFTranslation function writes an entry into the store and forward
translation table. The entry consists of two port and station address pairs. The
function checks for invalid translations; if the translation is not valid it is not
stored. The function returns a status code indicating success or an error if the
translation is not valid. A translation is cleared from the table by writing a
translation with both stations set to DISABLED_STATION (65535).
- The clearSFTranslationTable function clears all entries in the translation table.
A cleared entry has the port set to 0 (com1) and the station set to
DISABLED_STATION (65535).
- The checkSFTranslationTable function checks the translation table for invalid
entries. It returns a status structure indicating if the table is valid and the location
and type of the first error if it is not valid.
7.7.3.3.3 ISaGRAF IEC61131
1. To enable the use of store and forward messaging on one or more serial ports the
Custom Function setprot or setprot2 must be added to the project. The
SandFEnabled input must be set to TRUE.
2. Configure the translation table by using the setsf function to write the necessary
translation table entries.
The translation table must be initialized before store and forward messaging is enabled.
Forwarding of messages is disabled when ISaGRAF IEC61131 programming software or a
SERVICE boot initializes the controller. This prevents inadvertent forwarding of messages
when new controllers are installed on networks.
7.7.3.3.4 ISaGRAF IEC61131 C Tools
The ISaGRAF C language application program interface provides the following
functions. Refer to the I SaGRAF C Tools Reference and User Manual for details.
- The getSFTranslation function returns an entry from the store and forward
translation table. The entry consists of two port and station address pairs.
- The setSFTranslation function writes an entry into the store and forward
translation table. The entry consists of two port and station address pairs. The
function checks for invalid translations; if the translation is not valid it is not
stored. The function returns a status code indicating success or an error if the
translation is not valid. A translation is cleared from the table by writing a
translation with both stations set to DISABLED_STATION (65535).
- The clearSFTranslationTable function clears all entries in the translation table.
A cleared entry has the port set to 0 (com1) and the station set to
DISABLED_STATION (65535).
- The checkSFTranslationTable function checks the translation table for invalid
entries. It returns a status structure indicating if the table is valid and the location
and type of the first error if it is not valid.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
572
7.7.3.4 SCADAPack LP Controller
An application program, written in TelePACE Ladder Logic or TelePACE C Tools and
ISaGRAF IEC61131 or ISaGRAF IEC61131 C Tools programming, enables and configures
store and forward messaging. A HMI host may enable and configure store and forward
messaging through the controller I/O database.
7.7.3.4.1 TelePACE Ladder Logic
1. To enable the use of store and forward messaging on one or more serial ports the
Configuration I/O Module CNFG Protocol Settings Method 1, 2 or 3 must be
added to the register assignment. The store and forward enable register must be
set to enable.
2. Add the Configuration I/O Module CNFG Store and Forward to the register
assignment to configure the translation table.
3. Configure the translation table by writing the necessary translation table entries
to the registers defined in the CNFG Store and Forward I/O module.
The translation table must be initialized before store and forward messaging is enabled.
Forwarding of messages is disabled when TelePACE programming software or a SERVICE
boot initializes the controller. This prevents inadvertent forwarding of messages when new
controllers are installed on networks.
7.7.3.4.2 TelePACE C Tools
The TelePACE C language application program interface provides the following
functions. Refer to the TelePACE C Tools Reference and User Manual for details.
- The getSFTranslation function returns an entry from the store and forward
translation table. The entry consists of two port and station address pairs.
- The setSFTranslation function writes an entry into the store and forward
translation table. The entry consists of two port and station address pairs. The
function checks for invalid translations; if the translation is not valid it is not
stored. The function returns a status code indicating success or an error if the
translation is not valid. A translation is cleared from the table by writing a
translation with both stations set to DISABLED_STATION (65535).
- The clearSFTranslationTable function clears all entries in the translation table.
A cleared entry has the port set to 0 (com1) and the station set to
DISABLED_STATION (65535).
- The checkSFTranslationTable function checks the translation table for invalid
entries. It returns a status structure indicating if the table is valid and the location
and type of the first error if it is not valid.
7.7.3.4.3 ISaGRAF IEC61131
1. To enable the use of store and forward messaging on one or more serial ports the
Custom Function setprot or setprot2 must be added to the project. The
SandFEnabled input must be set to TRUE.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
573
2. Configure the translation table by using the setsf function to write the necessary
translation table entries.
The translation table must be initialized before store and forward messaging is enabled.
Forwarding of messages is disabled when ISaGRAF IEC61131 programming software or a
SERVICE boot initializes the controller. This prevents inadvertent forwarding of messages
when new controllers are installed on networks.
7.7.3.4.4 ISaGRAF IEC61131 C Tools
The ISaGRAF C language application program interface provides the following
functions. Refer to the I SaGRAF C Tools Reference and User Manual for details.
- The getSFTranslation function returns an entry from the store and forward
translation table. The entry consists of two port and station address pairs.
- The setSFTranslation function writes an entry into the store and forward
translation table. The entry consists of two port and station address pairs. The
function checks for invalid translations; if the translation is not valid it is not
stored. The function returns a status code indicating success or an error if the
translation is not valid. A translation is cleared from the table by writing a
translation with both stations set to DISABLED_STATION (65535).
- The clearSFTranslationTable function clears all entries in the translation table.
A cleared entry has the port set to 0 (com1) and the station set to
DISABLED_STATION (65535).
- The checkSFTranslationTable function checks the translation table for invalid
entries. It returns a status structure indicating if the table is valid and the location
and type of the first error if it is not valid.
7.7.3.5 SCADAPack 100 Controller
An application program, written in TelePACE Ladder Logic or TelePACE C Tools and
ISaGRAF IEC61131 or ISaGRAF IEC61131 C Tools programming, enables and configures
store and forward messaging. A HMI host may enable and configure store and forward
messaging through the controller I/O database.
7.7.3.5.1 TelePACE Ladder Logic
1. To enable the use of store and forward messaging on one or more serial ports the
Configuration I/O Module CNFG Protocol Settings Method 1, 2 or 3 must be
added to the register assignment. The store and forward enable register must be
set to enable.
2. Add the Configuration I/O Module CNFG Store and Forward to the register
assignment to configure the translation table.
3. Configure the translation table by writing the necessary translation table entries
to the registers defined in the CNFG Store and Forward I/O module.
The translation table must be initialized before store and forward messaging is enabled.
Forwarding of messages is disabled when TelePACE programming software or a SERVICE
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
574
boot initializes the controller. This prevents inadvertent forwarding of messages when new
controllers are installed on networks.
7.7.3.5.2 TelePACE C Tools
The TelePACE C language application program interface provides the following
functions. Refer to the TelePACE C Tools Reference and User Manual for details.
- The getSFTranslation function returns an entry from the store and forward
translation table. The entry consists of two port and station address pairs.
- The setSFTranslation function writes an entry into the store and forward
translation table. The entry consists of two port and station address pairs. The
function checks for invalid translations; if the translation is not valid it is not
stored. The function returns a status code indicating success or an error if the
translation is not valid. A translation is cleared from the table by writing a
translation with both stations set to DISABLED_STATION (65535).
- The clearSFTranslationTable function clears all entries in the translation table.
A cleared entry has the port set to 0 (com1) and the station set to
DISABLED_STATION (65535).
- The checkSFTranslationTable function checks the translation table for invalid
entries. It returns a status structure indicating if the table is valid and the location
and type of the first error if it is not valid.
7.7.3.5.3 ISaGRAF IEC61131
1. To enable the use of store and forward messaging on one or more serial ports the
Custom Function setprot or setprot2 must be added to the project. The
SandFEnabled input must be set to TRUE.
2. Configure the translation table by using the setsf function to write the necessary
translation table entries.
The translation table must be initialized before store and forward messaging is enabled.
Forwarding of messages is disabled when ISaGRAF IEC61131 programming software or a
SERVICE boot initializes the controller. This prevents inadvertent forwarding of messages
when new controllers are installed on networks.
7.7.3.5.4 ISaGRAF IEC61131 C Tools
The ISaGRAF C language application program interface provides the following
functions. Refer to the I SaGRAF C Tools Reference and User Manual for details.
- The getSFTranslation function returns an entry from the store and forward
translation table. The entry consists of two port and station address pairs.
- The setSFTranslation function writes an entry into the store and forward
translation table. The entry consists of two port and station address pairs. The
function checks for invalid translations; if the translation is not valid it is not
stored. The function returns a status code indicating success or an error if the
translation is not valid. A translation is cleared from the table by writing a
translation with both stations set to DISABLED_STATION (65535).
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
575
- The clearSFTranslationTable function clears all entries in the translation table.
A cleared entry has the port set to 0 (com1) and the station set to
DISABLED_STATION (65535).
- The checkSFTranslationTable function checks the translation table for invalid
entries. It returns a status structure indicating if the table is valid and the location
and type of the first error if it is not valid.
7.7.3.6 SCADAPack 330, SCADAPack 334, SCADAPack 350, SCADAPack 32 and 32P
Controller
An application program, written in TelePACE Ladder Logic or TelePACE C++ Tools and
ISaGRAF IEC61131 or ISaGRAF IEC61131 C++ Tools programming, enables and
configures store and forward messaging. A HMI host may enable and configure store and
forward messaging through the controller I/O database.
7.7.3.6.1 TelePACE Ladder Logic
When a SCADAPack 330, SCADAPack 334, SCADAPack 350, SCADAPack 32 or
SCADAPack 32P controllers are used the store and forward translation table is configured
using an Element Configuration dialog. From the Controller menu select the Store and
Forward command to access the element configuration. Refer to the TelePACE Ladder
Logic Program Reference Manual for complete information on using the Store and Forward
element configuration.
The translation table must be initialized before store and forward messaging is enabled.
Forwarding of messages is disabled when TelePACE programming software or a SERVICE
boot initializes the controller. This prevents inadvertent forwarding of messages when new
controllers are installed on networks.
7.7.3.6.2 TelePACE C++Tools
The SCADAPack 32 C++ language application program interface provides the
following functions. Refer to the SCADAPack 32 C++Tools Reference and User
Manual for details.
- The getSFTranslation function returns an entry from the store and forward
translation table. The entry consists of two port and station address pairs.
- The setSFTranslation function writes an entry into the store and forward
translation table. The entry consists of two port and station address pairs. The
function checks for invalid translations; if the translation is not valid it is not
stored. The function returns a status code indicating success or an error if the
translation is not valid. A translation is cleared from the table by writing a
translation with both stations set to DISABLED_STATION (65535).
- The clearSFTranslationTable function clears all entries in the translation table.
A cleared entry has the port set to 0 (com1) and the station set to
DISABLED_STATION (65535).
- The checkSFTranslationTable function checks the translation table for invalid
entries. It returns a status structure indicating if the table is valid and the location
and type of the first error if it is not valid.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
576
7.7.3.6.3 ISaGRAF IEC61131
1. To enable the use of store and forward messaging on one or more serial ports the
Custom Function setprot or setprot2 must be added to the project. The
SandFEnabled input must be set to TRUE.
2. Configure the translation table by using the setsfip2 function to write the
necessary translation table entries.
The translation table must be initialized before store and forward messaging is enabled.
Forwarding of messages is disabled when ISaGRAF IEC61131 programming software or a
SERVICE boot initializes the controller. This prevents inadvertent forwarding of messages
when new controllers are installed on networks.
7.7.3.6.4 ISaGRAF IEC61131 C++Tools
The SCADAPack 32 C++ language application program interface provides the
following functions. Refer to the SCADAPack 32 C++Tools Reference and User
Manual for details.
- The getSFTranslation function returns an entry from the store and forward
translation table. The entry consists of two port and station address pairs.
- The setSFTranslation function writes an entry into the store and forward
translation table. The entry consists of two port and station address pairs. The
function checks for invalid translations; if the translation is not valid it is not
stored. The function returns a status code indicating success or an error if the
translation is not valid. A translation is cleared from the table by writing a
translation with both stations set to DISABLED_STATION (65535).
- The clearSFTranslationTable function clears all entries in the translation table.
A cleared entry has the port set to 0 (com1) and the station set to
DISABLED_STATION (65535).
- The checkSFTranslationTable function checks the translation table for invalid
entries. It returns a status structure indicating if the table is valid and the location
and type of the first error if it is not valid.
7.7.4 Diagnostics Counters
The TeleBUS protocol provides diagnostics counters for each serial port. The counters aid in
determining the source of communication errors. Store and forward messaging provides the
following counters for each communication port. All counters have a maximum count of
65535. Counters roll back to zero on the next event.
- Stored Message Counter: the number of messages received, which qualified for
forwarding. A message qualifies for forwarding if a valid translation is found for
the port and station in the translation table.
- Forwarded Message Counter: the number of messages forwarded (transmitted)
on this port.
Refer to the user manual for the controller and programming environment you are using for
information on the diagnostics counters.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
577
7.8 PointToPoint Protocol (PPP)
SCADAPack 32 and SCADAPack 32P controllers support Point-to-Point Protocol (PPP) on
the serial ports. Any serial port may be configured for the PPP protocol. Once a PPP
connection is established the serial port has access to all IP protocol servers enabled on the
controller.
A serial port configured for PPP supports an auto answer mode when dialed up through a
modem. After answering the modem the serial port performs the login steps according to the
authentication option selected for the port.
PPP provides two authentication protocols, which automates logins - PAP (Password
Authentication Protocol) and CHAP (Challenge-Handshake Authentication Protocol).
PPP settings are configurable for each serial port on the SCADAPack 32 or SCADAPack
32P controller.
An inactivity timeout closes the PPP connection and hangs up the modem when the
connection becomes idle. The timeout may also be disabled. Timeout range is 1 to 65535
minutes (~1092 hours maximum).
When the PPP protocol is selected for a serial port, the serial port must be assigned a unique
IP address, different from the IP address assigned to Ethernet or any other active PPP
connection.
The remote end of a PPP connection may request an IP address from the controller PPP
Server. The PPP Server will provide this IP address if requested.
Only one default gateway may be assigned to the controller. A PPP connection may be
configured as the gateway.
7.8.1 PPP Client Setup in Windows 2000
This section describes the procedure for setting up a PPP client from a Windows 2000 PC.
Client setup for a dialup PPP connection and a direct serial PPP connection are presented.
7.8.1.1 Direct Serial PPP Connection using Windows 2000
7.8.1.1.1 Connection Setup
Use this connection when an only serial cable is used to establish a PPP connection between
a Windows 2000 PC and a SCADAPack 32, without a dialup modem.
1. From the Start menu, right click Network and Dial-up Connections from the
Settings group, and select Open. The Network and Dial-up Connections dialog is
displayed.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
578
2. Double click the item Make New Connection from the Network and Dial-up
Connections dialog. The connection wizard dialog is displayed.
3. Select the Next button to display the connection type options dialog.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
579
4. For Network Connection Type select the type Connect directly to another computer
and select the Next button. The Host or Guest options dialog is displayed.
5. Select the Guest option and the Next button. The Select a Device dialog is displayed.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
580
6. From the menu select the serial port on your PC that will be used to connect to the
SCADAPack 32. Select the Next button. The Connection Availability dialog is
displayed.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
581
7. Select either option and then select the Next button. The Connection Name dialog is
displayed.
8. Enter a name for the connection and select the Finish button. The username and
password prompt is displayed.
9. Select the Cancel button. The Network and Dial-up Connections dialog should be
visible again.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
582
10. Right click your new Direct Connection icon from the Network and Dial-up
Connections dialog and select Properties from the list. The Properties dialog is
displayed.
11. Select the Configurebutton from the General page. The Modem Configuration
dialog is displayed.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
583
12. There is no modem in this direct serial connection so uncheck all items including
hardware flow control. Select the baud rate you intend to use (e.g. 9600 bps). Select
OK to return to the Properties dialog.
13. From the Properties dialog select the Networking page.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
584
Uncheck all components except the
component I nternet Protocol (TCP/I P). Select the component I nternet Protocol (TCP/I P)
and select the Properties button. The Internet Protocol (TCP/IP) Properties dialog is
displayed.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
585
1. The SCADAPack 32 does not have a DHCP server to automatically provide an IP
address. Instead the PCs serial port must be given a fixed IP address to use for PPP
connections. Select the option Use the following IP address. Enter an IP address to
assign to your PCs serial port. Obtain this IP address from your Network
Administrator. Then select OK to return to the Properties dialog.
2. Select OK again to close the dialog.
7.8.1.1.2 Making a PPP Connection to the SCADAPack 32
A connection can only be made after successfully setting up a Direct Connection icon as
described in the section Connection Setup above. Also, a serial port on the SCADAPack 32
must already be configured for the PPP protocol using the Controller IP Configuration
dialog and must be downloaded to the SCADAPack 32.
1. From the Start menu, double click Network and Dial-up Connections from the
Settings group. The Network and Dial-up Connections dialog is displayed.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
586
2. Right click your Direct Connection icon that was setup in the previous section
and select Connect from the list. A prompt for username and password is
displayed.
3. Enter a valid PAP or CHAP username and password. Valid usernames and
passwords are configured on the PPP Login page of the Controller IP
Configuration dialog and must be downloaded to the SCADAPack 32. Then
select the Connect button. If neither PAP nor CHAP is being used, ignore the
prompt and just select the Connect button.
4. A progress message is displayed. If the connection is successful the following
message is displayed.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
587
5. You may now connect to the IP address assigned to SCADAPack 32 PPP serial
port using an appropriate application and a supported protocol (e.g.
Modbus/TCP). In the example below, Firmware Loader is used to connect over
PPP to the SCADAPack 32. From the PC Communication Settings dialog, the IP
address assigned to the SCADAPack 32 PPP serial port is selected as the
Connect to Host.
7.8.1.1.3 Disconnecting a PPP Connection
To disconnect a PPP connection made using the Windows PPP Client, do the following:
1. From the Start menu, double click Network and Dial-up Connections from the
Settings group. The Network and Dial-up Connections dialog is displayed.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
588
2. Your Direct Connection icon should display the word Connected in the Status
column. To disconnect, right click your Direct Connection icon and select
Disconnect from the list.
7.8.1.2 Dial-up PPP Connection using Windows 2000
7.8.1.2.1 Connection Setup using Windows 2000
Use this connection when a dial-up modem is used to establish a PPP connection between a
Windows 2000 PC and a SCADAPack 32.
1. From the Start menu, right click Network and Dial-up Connections from the
Settings group, and select Open. The Network and Dial-up Connections dialog is
displayed.
2. Double click the item Make New Connection from the Network and Dial-up
Connections dialog. The connection wizard dialog is displayed.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
589
3. Select the Next button to display the connection type options dialog.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
590
4. For Network Connection Type select the type Dial-up to private network and
select the Next button. If there is more than one modem installed on the PC, the
Select a Device dialog is displayed. If not, proceed to the next step.
5. From the menu select the modem installed on your PC that will be used to
connect to the SCADAPack 32. Select the Next button. The Phone Number to
Dial dialog is displayed.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
591
6. Enter the phone number to dial (this can be changed later) and select the Next
button. The Connection Availability dialog is displayed.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
592
7. Select either option and then select the Next button. The Connection Name dialog
is displayed.
8. Enter a name for the connection and select the Finish button. The username and
password prompt is displayed.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
593
9. Select the Cancel button. The Network and Dial-up Connections dialog should
be visible again.
10. Right click your new Dial-up Connection icon from the Network and Dial-up
Connections dialog and select Properties from the list. The Properties dialog is
displayed.
11. From the Properties dialog select the Networking page.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
594
12. Uncheck all components except the component I nternet Protocol (TCP/I P).
Select the component I nternet Protocol (TCP/I P) and select the Properties
button. The Internet Protocol (TCP/IP) Properties dialog is displayed.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
595
13. The SCADAPack 32 does not have a DHCP server to automatically provide an
IP address. Instead the PCs serial port must be given a fixed IP address to use
for PPP connections. Select the option Use the following I P address. Enter an IP
address to assign to your PCs serial port. Obtain this IP address from your
Network Administrator. Then select OK to return to the Properties dialog.
14. Select OK again to close the dialog.
7.8.1.2.2 Making a PPP Dial-up Connection to the SCADAPack 32 using Windows
2000
A connection can only be made after successfully setting up a Dial-up Connection icon as
described in the section Connection Setup above. Also, a serial port on the SCADAPack 32
must already be configured for the PPP protocol using the Controller IP Configuration
dialog and must be downloaded to the SCADAPack 32.
1. From the Start menu, right click Network and Dial-up Connections from the
Settings group, and select Open. The Network and Dial-up Connections dialog is
displayed.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
596
2. Right click your Dial-up Connection icon that was setup in the previous section
and select Connect from the list. A prompt for username and password is
displayed.
3. Enter a valid PAP or CHAP username and password. Valid usernames and
passwords are configured on the PPP Login page of the Controller IP
Configuration dialog and must be downloaded to the SCADAPack 32. Then
select the Dial button. If neither PAP nor CHAP is being used, ignore the prompt
and just select the Dial button.
4. A progress message is displayed. If the connection is successful your Dial-up
Connection icon should display the word Connected in the Status column.
5. You may now connect to the IP address assigned to SCADAPack 32 PPP serial
port using an appropriate application and a supported protocol (e.g.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
597
Modbus/TCP). In the example below, Firmware Loader is used to connect over
PPP to the SCADAPack 32. From the PC Communication Settings dialog, the IP
address assigned to the SCADAPack 32 PPP serial port is selected as the
Connect to Host.
7.8.1.2.3 Disconnecting a PPP Connection using Windows 2000
To disconnect a PPP connection made using the Windows PPP Client, do the following:
1. From the Start menu, right click Network and Dial-up Connections from the
Settings group, and select Open. The Network and Dial-up Connections dialog is
displayed.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
598
2. Your Dial-up Connection icon should display the word Connected in the Status
column. To disconnect, right click your Dial-up Connection icon and select
Disconnect from the list.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
599
8 DNP3 User and Reference Manual
The manual details implementation of the Distributed Network Protocol (DNP3) driver on
SCADAPack controllers. While we continuously improve upon the contents of this manual to
simply the driver configuration tasks, we also assume that users attempting to configure the DNP
protocol on a SCADAPack controller have some preliminary understanding of the DNP3
communication protocol.
8.1 DNP3 Protocol Overview
DNP, the Distributed Network Protocol, is a standards-based communications protocol developed to
achieve interoperability among systems in the electric utility, oil & gas, water/waste water and
security industries. This robust, flexible non-proprietary protocol is based on existing open standards
to work within a variety of networks.
DNP offers flexibility and functionality that go far beyond conventional communications protocols.
Among its robust and flexible features DNP 3.0 includes:
- Multiple data types (Data Objects) may be included in both request and response messages.
- Multiple master stations are supported for outstations.
- Unsolicited responses
1
may be initiated from outstations to master stations.
- Data types (Objects) may be assigned priorities (Class) and be requested based on the priority.
- Addressing for over 65,000 devices on a single link.
- Time synchronization and time-stamped events.
- Broadcast messages.
- Data link and application layer confirmation
- Internal indications that report the health of a device and results of last request.
- Select-Before-Operate which is the ability to choose extra reliability when operating outputs.
8.1.1 DNP Architecture
DNP is a layered protocol that is based on the Open System Connection (OSI) 7-layer protocol. DNP
supports the physical, data link and application layers only and terms this the Enhanced Performance
Architecture (EPA). In addition to these three layers an additional layer, the pseudo-transport layer,
is added to allow for larger application layer messages to be broken down into smaller frames for the
data link layer to transmit.
Object Library The data objects (Binary Inputs, Binary Outputs, and Analog Inputs
etc.) that reside in the master or outstation.
Application Layer Application tasks for sending of solicited requests (master
messages) to outstations or sending of unsolicited responses from
outstations. These request and response messages are referred to as
fragments in DNP.
Pseudo-Transport Layer Breaks the application layer messages into smaller packets that can
be handled by the data link layer. These packets are referred to as
frames in DNP.
1
Unsolicited responses are also known as unsolicited messages
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
600
Data Link Layer Handles the transmission and reception of data frames across the
physical layer.
Physical Layer This is the physical media, such as serial or Ethernet, which DNP
communicates.
These layers are described in the following sections of this manual.
8.1.1.1 Object Library
The data types that are used in DNP are broadly grouped together into Object Groups such as Binary
Input Objects and Analog Input Objects etc. Individual data points, or objects within each group, are
further defined using Object Variations such as Binary Input Change with Time and 16-Bit Analog
Inputs for example.
In general there are two categories of data within each data type, static objects and event objects.
Static objects contain the current value of the field point or software point. Event objects are
generated as a result of the data changing.
In addition to the object group and variation data objects can be assigned to classes. In DNP there are
four object classes, Class 0, Class 1, Class 2 and Class 3. Class 0 contains all static data. Classes 1, 2
and 3 provide a method to assign priority to event objects. While there is no fixed rule for assigning
classes to data objects typically class 1 is assigned to the highest priority data and class 3 is assigned
to the lowest priority data.
This object library structure enables the efficient transfer of data between master stations and
outstations. The master station can poll for high priority data (class 1) more often than it polls for
low priority data (class 3). As the data objects assigned to classes is event data when the master polls
for a class only the changed, or event data, is returned by the outstation. For data in an outstation that
is not assigned a class the master uses a class 0 poll to retrieve all static data from the outstation.
DNP allows outstations to report data to one or more master stations using unsolicited responses
(report by exception) for event data objects. The outstation reports data based on the assigned class
of the data. For example the outstation can be configured to only report high priority class 1 data.
8.1.1.1.1 Internal Indication (IIN) Flags
An important data object is the Internal Indications (IIN) object. The Internal Indication (IIN) flags
are set by a slave station to indicate internal states and diagnostic results. The following tables show
the IIN flags supported by SCADAPack controllers. All bits except Device Restarted and Time
Synchronization required are cleared when the slave station receives any poll or read data command.
The IIN is set as a 16 bit word divided into two octets of 8 bits. The order of the two octets is:
First Octet Second Octet
8.1.1.1.1.1 IIN First Octet
6 5 4 3 2 1 0 7
Bit Number
First
Octet
Bit
Description
0 last received message was a broadcast message
1 Class 1 data available
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
601
First
Octet
Bit
Description
2 Class 2 data available
3 Class 3 data available
4 Time Synchronization required
5 not used (returns 0)
6 Device trouble
- Indicates memory allocation error in the slave, or
- For master in mimic mode indicates communication failure with the
slave device.
7 Device restarted (set on a power cycle)
8.1.1.1.1.2 IIN Second Octet
6 5 4 3 2 1 0 7
Bit Number
Second
Octet
Bit
Description
0 Function Code not implemented
1 Requested object unknown or there were errors in the application data
2 Parameters out of range
3 Event buffer overflowed
Indicates event buffer overflow in the slave or master. The slave will set
this bit if the event buffer in the slave is overflowed. The master will set
this bit if the event buffer in the master has overflowed with events read
from the slave. Ensure the event buffer size, in the master and slave, is
set to a value that will ensure the buffer does not overflow and events are
lost.
4 not used (returns 0)
5 not used (returns 0)
6 not used (returns 0)
7 not used (returns 0)
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
602
8.1.1.2 Application Layer
The application layer in DNP is responsible for the processing of complete messages for requesting,
or responding to requests, for data.
The following shows the sequence of Application Layer messages between one master and one
outstation.
Master Outstation
Send Request --------------------> Accept request and process
<-------------------- Optional Application
Confirmation
Accept response <-------------------- Send Response
Optional Application
Confirmation -------------------->
Important change detected
Accept response <--------------------- Send Unsolicited Response
Optional Application
Confirmation -------------------->
The complete messages are received from and passed to the pseudo-transport layer. Application
layer messages are broken into fragments with each fragment size usually a maximum of 2048 bytes.
An application layer message may be one or more fragments in size and it is the responsibility of the
application layer to ensure the fragments are properly sequenced.
Application layer fragments are sent with or without a confirmation request. When a confirmation is
requested the receiving device replies with a confirmation indicating the message was received and
parsed without any errors.
8.1.1.3 Pseudo-Transport Layer
The pseudo-transport layer formats the larger application layer messages into smaller packets that
can be handled by the data link layer. These packets are referred to as frames in DNP. The pseudo-
transport layer inserts a single byte of information in the message header of each frame. This byte
contains information such as whether the frame is the first or last frame of a message as well as a
sequence number for the frame.
8.1.1.4 Data Link Layer
The data link layer handles the transmission and reception of data frames across the physical layer.
Each data link frame contains a source and destination address to ensure the receiving device knows
where to send the response. To ensure data integrity data link layer frames contain two CRC bytes
every 16 bytes.
Data link layer frames are sent with or without a confirmation request. When a confirmation is
requested the receiving device replies with a confirmation indicating the message was received and
the CRC checks passed.
8.1.1.5 Physical Layer
The physical layer handles the physical media, such as serial or Ethernet, which DNP communicates.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
603
8.1.2 Modbus Database Mapping
In SCADAPack controllers static DNP objects such as binary input, analog input, binary counter and
analog output are associated with Modbus registers. Whenever a DNP object is created an associated
Modbus register(s) is also assigned. Application programs executing in the SCADAPack controller,
C or logic, are able to assign physical I/O to Modbus registers using the TelePACE Register
Assignment or the ISaGRAF I/O Connection and these physical I/O points can then be assigned to
DNP objects. User application data such as runtimes, flow totals etc. may be also be assigned to
DNP objects.
This architecture enables DNP master stations and outstations to pass not only physical data points
between them but also to monitor and control user applications executing in the SCADAPack
controller. For example a master station can monitor a level in an outstation and then, based on the
application program, send a setpoint value to another outstation to control the level.
8.1.3 SCADAPack DNP Operation Modes
Within a DNP network, a SCADAPack controller can operate as a:
- DNP Outstation (Slave)
- DNP Master or Mimic Master or
- DNP Router
DNP Master Mimic and DNP Router are incompatible and mutually-exclusive modes of operation.
A DNP outstation forms the basic class of any DNP node in a network. All other operational modes
derive from a DNP Outstation. A DNP outstation responds to requests from one or more DNP
master stations on a network. Also, a DNP Outstation is able to initiate unsolicited responses
(messages) based on event data to a master station.
A DNP Master is capable of polling for data, accepting and processing unsolicited messages, and
sending control commands to an outstation. Note that a DNP Master can also act perform all the
duties of a DNP Outstation.
A SCADAPack controller acting as a DNP Router is simply acting a pass through, basically
redirecting messages from one DNP node to another. Similarly to a DNP Master, a DNP Router can
also perform all the duties of a DNP Outstation.
DNP Network topologies comprise several combinations of DNP Masters, DNP Routers, and DNP
Outstations. Typical configurations possible with SCADAPack controllers are:
- DNP Master and single DNP Outstation
- DNP Master and multi-dropped DNP Outstations
- DNP SCADA Host, Data Concentrator (Mimic Master) and multi-dropped DNP Outstations
- DNP SCADA Host, DNP Router and multi-dropped DNP Outstations
Major SCADAPack DNP operation modes are covered in the next chapters.
8.2 SCADAPack DNP Outstation
A DNP3 Outstation can be considered the base class of all terminal nodes on a DNP network. All
other DNP3 configuration modes, such as Master, Mimic Master or Router, as implemented by the
Control Microsystems DNP driver, inherit their properties from the outstation base class. In other
words, a SCADAPack controller can simultaneously take on any other operation mode, in addition to
being a DNP outstation.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
604
When configured as a DNP outstation a SCADAPack controller is able to:
- Map physical I/O data to DNP points.
- Define DNP points as Class 0 (Static or None), Class 1, Class 2 or Class 3 data types.
- Respond to requests from one or more master stations such as a SCADA hosts or other
SCADAPack controllers capable of operating as DNP Masters.
- Initiate unsolicited responses to one or more master stations.
Note: Unsolicited responses are also known as unsolicited messages. Unsolicited messages
will be used predominantly in this document.
One distinguishing feature of a DNP outstation is this ability to trigger unsolicited messages to a
master, upon event accumulation. Events are accumulated when the state of a DNP point changes or
an analog values exceeds a threshold. Dead bands can be used to filter out noise from being reported
as event data.
After accumulating a certain number of DNP events, or if a certain time period has expired, a DNP
outstation will trigger an unsolicited message all its configured master DNP stations, reporting event
data. As defined by the DNP specification, an outstation that triggers an unsolicited message expects
a confirmation from all the targeted masters (or peers). If an acknowledgement is not received with
a configured Application Layer timeout, the outstation will retransmit the initial unsolicited
message. If no response is received within the Application Layer timeout, the outstation will
retransmit again. This process continues until the outstation has retransmitted the message a number
of times as configured by its Application Layer Retries parameter.
If all retry attempts fail, this message is discarded from the transmit buffer. As of this writing, re-
transmission of the failed message will only resume after a new event occurs within the appropriate
buffer. Future releases of the SCADAPack DNP driver will re-attempt a failed DNP transaction after
a random period of time has expired. Retransmissions will be attempted until the messages are
eventually received by the master.
Application Layer messages that are larger than 249 bytes are broken down into Data Link frames.
The DNP protocol allows one to configure acknowledgements of individual Data Link frames, this
enhancing network robustness, especially under noisy environments. When the underlying network
structure is noise free (wired or networks for instance), enabling Application and Data Link
confirmations are not necessary.
8.2.1 How to Configure SCADAPack DNP Outstation
In this exercise, we will configure a DNP outstation with address 10. We will also configure the
station with digital input points associated with Class 1 and Class 2 events. The station will be
configured to trigger unsolicited messages to Master station 200, when Class 1 and Class 2 events
occur on these digital inputs.
After this exercise, you should be able to:
- Enable the DNP protocol on a serial port.
- Configure the DNP Application and Data Link Layers
- Configure Class Events Generation and Transmission
- Configure a DNP Routing table
- Configure DNP points.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
605
We will map two digital inputs mapped to Modbus registers 10001 and 10002 to DNP Addresses 1
and 2.
8.2.1.1 Tasks to Complete
Enable DNP Protocol on communication interface.
Configure a DNP Outstation with station address.
Configure DNP points and assign them to Class objects.
Configure outstation to be able to trigger unsolicited messages.
8.2.1.2 Enable DNP on Communication Interface
The first step recommended in configuration the DNP driver on a SCADAPack controller is to
enable DNP on the communication interface. To enable the DNP protocol on com2,
1. From the Controller menu in either TelePACE or ISaGRAF, select Serial Ports.
2. Select COM2 from the Port drop down list.
3. Set the Protocol type to DNP.
4. Click on OK.
5. If using an Ethernet equipped controller, enable DNP in TCP or DNP in UDP from the
Controller IP configuration dialog.
8.2.1.3 Configure DNP Outstation
6. From the Controller Menu in either TelePACE or ISaGRAF, select DNP
Configuration to launch the DNP Configuration dialog.
7. The Application Layer configuration panel is displayed by default.
1. Under the Communication group box, change the Retries parameter to 2.
2. Leave all other parameters under the Communication group box at default values.
TIP: It is not necessary to enable the Application Layer confirmation as unsolicited events,
by their nature, request for an Application Layer confirmation.
3. Set Time Synchronization to None.
TIP: It is recommended that a DNP3 master initiate time synchronization.
4. Enable Unsolicited Class 1 events.
5. For Class 1 Events, set a Hold Time of 5 seconds and a Hold Count of 100.
TIP: On systems with multiple outstations that could potentially transmit unsolicited
messages to a master at the same time, it is recommended to use a combination of the Hold
Time and Hold Count parameters to avoid multiple stations from transmitting at the same
time.
6. Enable Unsolicited Class 2 events.
7. For Class 2 Events, set a Hold Time of 3600 seconds and a Hold Count of 10.
TIP: Class 2 events are typically of less importance than Class 1 events and may not need to
be reported immediately to the master
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
606
8. All other parameters can be left at their default values. The completed Application
Layer Configuration panel should look like this:
Note: Clicking on OK closes the DNP Configuration dialog. Click on OK only after you have
completed the DNP configuration.
8. From the DNP Configuration panel, select the Data Link Layer tree node.
a. Click on the Edit button and change the Master Station Address to 200.
b. Change the RTU Station Address to 10.
c. Leave all other parameters at their default values. The completed dialog should look like
this:
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
607
TIP: It may be necessary to enable the Data Link confirmation on noisy networks. However, if the
Maximum Application Fragment Length is reduced to 249 bytes, it is not necessary to enable the
Data Link confirmation, as each data link packet is in essence an Application Layer fragment.
9. From the DNP Configuration panel, select the Routing tree node.
a. Click on the Add button to begin a new routing table entry.
b. From the Add/Edit Route dialog,
i. Enter 200 for the destination Station.
ii. Set the Port to COM2.
iii. Leave default values for all other parameters.
iv. The completed dialog should look like this:
Note: The Data Link Timeout in this dialog takes precedence over the Data Link Timeout in the
Data Link Layer configuration panel.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
608
TIP: Even though a SCADAPack outstation will respond successfully to master request,
without is routing entry to the master, it is a good practice to always define such a routing
entry from an outstation to its master. Moreover, without a routing entry defined to the
master, the outstation will not know which port to send out unsolicited messages, if
configured, to the master.
v. Click on OK to add this entry to the routing table and return to the Routing dialog.
The completed routing table should look like this:
This next step assumes you have digital inputs mapped to Modbus registers 10001 and 10002.
10. From the DNP Configuration Panel, click on the Binary Inputs tree node.
a. Set the Starting DNP Address to 1.
b. Set the Event Report Method to Log All Events.
Note: If you want to log all events and not only the most recent, you must set the Event Reporting
Method to Log all Events.
c. Set the Event Buffer Size to 100. The completed panel should look like this:
d. Click on Add to create a new DNP3 binary input point. Observe that a new binary input
point is now visible under the Binary Input tree node with DNP Address 1 (Starting
Address)
e. Leave the default associating Modbus Address as 10001.
f. Leave the default Event Object as Class 1.
g. Set the Debounce property to 10.
TIP: It is a good idea to set a non- zero Debounce on unfiltered inputs, to avoid noise being
collected as Class events. The same applies for analog inputs. A non-zero Deadband will prevent
noise from being collected as Class events.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
609
9. Set the Debounce property to 10.
10. Click on Add to submit this point to the database and start configuration for the
next point. Note that a new point has been added under the Binary Inputs tree node
in the DNP Configuration panel.
11. Change the associating Modbus Address to 10002.
12. Change the Event Object to Class 2.
13. Set the Debounce appropriately.
14. Click on Add to submit this point to the database and start configuration for the
next point.
15. Repeat the previous two steps to add more points if desired.
16. Follow a similar procedure to configure other types of DNP3 objects.
8.2.1.4 Confirm Successful Configuration
To confirm that the DNP driver has been properly configured,
11. From the Controller menu, select DNP Status. You will be presented with the following
dialog.
12. Ensure that the DNP Status field within this dialog displays 07: enabled, configured,
running.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
610
13. You can also monitor the current state of the defined DNP binary input points from the
Binary-In tab.
14. Toggle the state of digital input 1 configured earlier in this exercise and observe the
event buffer for Binary Inputs increment on each change of state. After 5 seconds has
elapsed, notice that an unsolicited DNP message is triggered to master station 200.
Given that DNP master station 200 is not yet configured and connected, a response to
the unsolicited message will not be received and the 5000ms Application layer timeout
period will expire. The unsolicited message transmission will subsequently
retransmitted and will be aborted after 3 retry attempts have been made. This confirms
that your outstation is properly setup and unsolicited messages are being generated and
sent. At the time of this implementation, the events will be re-attempted only after a
new event occurs.
15. Also observe the Internal Indications show that Class 1 events are available as indicated
in the figure below.
For additional information on the any of the dialogs referenced in the above exercise, refer to the
DNP Configuration Menu Reference.
8.3 SCADAPack DNP Master
DNP master modes currently apply only to the SCADAPack 32, SCADAPack 330, SCADAPack
334, SCADAPack 350 and SCADASense 4203 controllers.
As a master, a SCADAPack controller can be a regular Master or Mimic master.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
611
8.3.1 SCADAPack DNP Master Concepts
A DNP Master station inherits all the characteristics of a DNP Outstation. In addition, a DNP
Master station is able to:
- Poll DNP outstations for static (Class 0) data and Class 1, 2 and 3 event data.
- Accept and process unsolicited response messages from polled outstations.
This configuration of a DNP Master (Client) and DNP Outstation (Server) forms the basis of a DNP3
Network. The SCADAPack DNP Master may be configured to periodically poll a SCADAPack
DNP Outstation for Class 0, 1, 2, and 3 data objects and receive unsolicited responses from the
outstation. The outstation may be configured to report change event data to the master station using
unsolicited responses.
The arrowed line between the master and outstation in the diagram below represents a
communication path connecting the two stations. This communication medium may be any type that
is supported by both controllers, such as direct serial, leased line modem, dial-up modem and radio
for example.
SCADAPack
DNP Master
SCADAPack
DNP Outstation
Figure 8-1: Simple SCADAPack Master-Outstation DNP Network
An extension of a simple DNP Master and single outstation network, involves a SCADAPack DNP
Master connected to a number of outstations over a multi-drop communication channel. The DNP
Master may be configured to periodically poll each SCADAPack DNP Outstation for Class 0, 1, 2,
and 3 data objects and receive unsolicited responses from the outstations. The outstations may be
configured to report change event data to the master station using unsolicited responses.
The arrowed line between the master and outstations, in the diagram below, represents the
communication path connecting the stations. This communication path may be any multi-dropped
type that is supported by the controllers, such as leased line modem, dial-up modem and radio for
example.
SCADAPack
DNP Master
SCADAPack
DNP Outstation A
SCADAPack
DNP Outstation A
SCADAPack
DNP Outstation A
Figure 8-2: SCADAPack DNP Master and multi-dropped DNP Outstations
Note: The DNP Master feature is limited to a SCADAPack32, SCADAPack 330, SCADAPack
334, SCADAPack 350 and SCADASense 4203
8.3.1.1 SCADAPack DNP Mimic Master
In a typical DNP network a SCADA Host master communicates with a number of outstations. The
SCADA Host will poll each outstation for data and may receive change event data in the form of
unsolicited responses from the outstations. This type of DNP network is shown in the following
diagram.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
612
SCADAPack
DNP Outstation A
SCADAPack
DNP Outstation B
DNP SCADA Host
Figure 8-3: DNP SCADA Host and multi-dropped DNP Outstations
In the above configuration the SCADA Host manages the communication path with each outstation.
When the communication path is slow, such as with dial-up communication, or subject to high error
rates, such as with some radio communication, the data update rate at the SCADA host can become
very slow.
Adding a SCADAPack controller configured for Master Mimic Mode, allows for the SCADA Host
to poll the SCADAPack (Mimic Master) for all outstation data instead. In essence, the SCADAPack
Mimic Master is acting as a Data Concentrator, reporting on behalf of all the outstations currently
configured in its routing table. The following diagram shows the addition of the SCADAPack
Mimic Master.
SCADAPack Mimic
SCADAPack
DNP Outstation A
SCADAPack
DNP Outstation B
DNP SCADA Host
Slave Master
Figure 8-4: SCADAPack Mimic Master and multi-dropped DNP Outstations
In this configuration the outstation side of the network has been decoupled from the host side of the
network, as the SCADAPack mimic master now manages all the communication with the
outstations.
The SCADA Host and all outstations will typically be connected to different communication ports of
the SCADAPack Mimic Master. The mimic will respond to the following DNP messages on behalf
of the targeted station:
- Read messages (this includes class polls as well as individual point reads) from SCADA Host
- Write messages from SCADA Host
- Unsolicited messages from an outstation
- Direct operate messages from SCADA Host
The following DNP messages cannot be mimicked (Mimic does not respond on behalf of target DNP
station), and are routed directly to the target outstation by the Mimic:
- Select and Operate messages
- Data Link Layer messages (e.g. get link status, reset link status, etc)
- Enable/Disable Unsolicited Message commands (FC 20 and 21)
- Other control messages
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
613
Routing for those messages that cannot be mimicked is subjected to the following rule:
if (a message is received which needs to be retransmitted to someone else)
if (the message target is configured in our routing table)
if (the destination port is different from the incoming port)
or (routing is enabled on the incoming port)
then retransmit the message
In order to provide current outstation data to the SCADA Host, the SCADAPack mimicking master
independently communicates with each outstation to update a local copy of its database with data
from the outstations. This communication may be initiated by the SCADAPack mimicking master,
either by polling each outstation in turn using solicited messages; or the outstations could initiate
unsolicited messages back to the mimicking master. There could also be a combination of solicited
and unsolicited messages between the mimicking master and the outstations.
In the Mimic mode diagram above the SCADAPack mimic master polls each outstation, A and B,
for data and holds images of this data in its memory. When the SCADA Host poll outstations A and
B for data, the mimic master replies from its own images of the outstations. The SCADA Host can
also poll the SCADAPack master for its own local data.
Typically the messaging strategy chosen will depend on the relative importance of the data, and the
required maximum end-to-end delays for data being transferred through the network. If the
requirement is for a reasonably short end-to-end delay for all data points, a round-robin polling
scheme is best, without any unsolicited messages. If there are some data points, which are higher
priority and must be transferred as fast as possible, unsolicited messages should be used.
The advantage of having the SCADA system communicating with the SCADAPack 32 mimic,
instead of direct communication to the outstations is that communication delays and high error rates
are effectively removed. The physical connection between the SCADA system and mimic master
SCADAPack is typically a direct high-speed reliable connection and all message transactions are
fast. Outstations may often be connected via slow PSTN or radio links, and therefore message
transactions are subject to substantial delays. They may also be unreliable communication links
subject to high error rates.
By having a multiple-level network the communication between the SCADAPack master and
outstations is separated from communication between SCADA system and the SCADAPack master.
The delays and error rates, which may be inherent in the outstation communication paths, can be
isolated from communications with the SCADA system, thereby increasing overall system
performance.
One particular advantage of Mimic Mode is that the master SCADAPack does not need to
know, or be configured with, any details of the DNP points configured in the outstations. This
makes it relatively simple to insert such a SCADAPack master into any existing DNP network. The
SCADAPack master in Mimic Mode behaves transparently to the higher-level SCADA system, and
can easily be configured with communication paths and polling instructions for each connected
outstation.
Note: This feature is limited to the SCADAPack 32, SCADAPack 330/334, SCADAPack 350 and
SCADASense 4203 controllers.
8.3.1.2 SCADAPack DNP Address Mapping
Address mapping provides a direct link between an outstations DNP points and local Modbus
registers within the SCADAPack DNP master. These remote DNP points are now mapped into
specific regions of the DNP masters Modbus database.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
614
When DNP data points are received from an outstation, a cross reference to the address mapping
table is made, and if a match is found, the DNP data will be written to the corresponding local
Modbus register. 'Input' DNP object types from the outstation are mapped to the masters local input
Modbus register space 1xxxx or 3xxxx. These local Modbus registers are updated after the
corresponding DNP point gets updated; usually by a class poll to the outstation, or if the outstation
issues an unsolicited response based on a change of value or state on these points.
Output' DNP object types from the outstation are mapped to the masters local output Modbus
register space 0xxxx or 4xxxx. Changes made to the local Modbus register will trigger a DNP Write
message, with the current point value, to the outstation. DNP Write implemented in SCADAPack
controllers requires an Application Layer confirmation from the target outstation.
By configuring the Address Mapping table, outstation DNP points are therefore mapped to local
Modbus registers. As mapped local Modbus points, the data is available for use in application
programs such as TelePACE and ISaGRAF. In addition a Modbus SCADA Host can poll the
SCADAPack master for these points.
The following diagram shows a simple DNP Address Mapping network.
SCADAPack 32
Modbus DNP3
Slave Master
SCADAPack
Outstation A
SCADAPack
Outstation B
SCADA Host
Modbus Master
Figure 8-5: SCADAPack Address Mapping
In this network the SCADAPack master updates is local database with mapped outstation data. The
manner and frequency with which the SCADAPack master updates the local Modbus registers,
depends on the number and type of I/O object types the registers are mapped to.
This feature is limited to the SCADAPack 32, SCADAPack 330/334, SCADAPack 350 and
SCADASense 4203 controllers.
Note: Mapping numerous local Modbus output registers (0xxxx and 4xxxx), to a remote DNP
device may cause frequent communications between the master and the slave, if the
associated registers are being changed frequently in the master. On limited bandwidth or
radio networks, care must be taken to ensure that your network capacity can handle all the
traffic that will be generated from these local changes.
DNP Master Address Mapping
Local Modbus Register
11001
11002
DNP Outstation
DNP Point
1
2
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
615
8.3.2 How to Configure SCADAPack DNP Master
In this exercise, we will configure a SCADAPack DNP Master to poll a DNP outstation with address
10. The DNP master will be communicating to the outstation by requesting for Class event data and
acknowledging receipt of unsolicited responses through com1.
After this exercise, you should be able to:
- Configure a DNP Master to poll for Static (Class 0) and Class 1 event data.
- Configure a DNP Master to accept and respond to unsolicited messages
8.3.2.1 Tasks to Complete
1. Enable DNP communication on com1 of the SCADAPack controller.
2. Configure a DNP Master with station address of 200, for example.
3. Configure the DNP master to issue class polls to the outstation created in the
previous exercise.
4. Map outstation DNP points to local DNP points.
8.3.2.2 Configuration Steps
1. Use the same procedure of the previous exercise to enable the DNP protocol on
com1.
2. From the Controller menu, launch the DNP Configuration panel.
3. From the Application Layer configuration panel,
a. Ensure that the Application Layer Confirmation is Disabled.
TIP: A master should not have to request for an Application Layer Confirmation, as an Application
Layer response is implied in all master requests.
b. Set the Application Timeout to 3000 seconds.
c. Set Time Synchronization to none.
TIP: Master time synchronization to an outstation is configured in the Add/Edit Master Poll dialog.
d. All other parameters can be left at their default values. The completed Application
Layer Configuration panel should look like this:
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
616
4. From the DNP Configuration dialog, click on the Data Link Layer tree node.
a. Leave the Master Station Address at the default value of 100.
b. Change the RTU Station Address to 200.
5. Click on the Master tree node from the DNP Settings dialog.
a. Set the Base Poll Interval to 1s.
b. Ensure Mimic Mode is Disabled.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
617
TIP: A small Base Poll interval provides better granularity.
6. Click on the Master Poll tree node from the DNP Configuration panel.
a. Set the Base Poll Interval to 1s.
b. Ensure Mimic Mode is Disabled.
c. Click on the Add button within the Master Poll panel to create a new master poll schedule.
d. In the Add/Edit Master Poll dialog, do the following:
i. Set Station to 10
ii. Under Class 0 Polling group box, set the Interval to 3600 base poll intervals (1 hour).
iii. Leave the Poll Offset at the default of 0 base poll intervals.
TIP: Static (Class 0) comprise current values of all DNP3 points in the I/O database. Due to the
shear size of this data, it is recommended to reduce the frequency of static polls. Urgent data will be
updated at the master via Class polls or unsolicited messages.
iv. Under Class 1 Polling group box, set the Interval to 10 base poll intervals (10 seconds).
v. Set the Poll Offset to 1 base poll intervals.
vi. Leave the Limit Maximum Events checkbox unchecked.
vii. Under Class 2 Polling group box, set the Interval to 600 base poll intervals (10
minutes).
viii. Set the Poll Offset to 2 base poll intervals.
ix. Leave the Limit Maximum Events checkbox unchecked.
x. Under the Time Synchronization group box, set the Interval to 21600 base poll
intervals (6 hours).
xi. Set the Poll Offset to 3 base poll intervals.
TIP: Polling intervals on Master request for time synchronization are configured in this dialog. If
possible, set this to a daily frequency.
A small base poll interval limits that maximum poll interval to 32767 seconds. Daily polls
(every 86400 seconds) are, therefore, not possible when the base poll interval is set for 1
second. .
xii. Under Unsolicited Response group box, leave all fields at default. The completed dialog
should look like this:
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
618
7. From the DNP Configuration panel, select the Routing tree node.
c. Click on the Add button to begin a new routing table entry.
d. From the Add/Edit Route dialog,
i. Enter 10 for the destination Station.
ii. Set the Port to COM1.
iii. Leave default values for all other parameters.
8.3.2.3 Confirm Successful DNP Master Configuration
With this configuration and a valid communication link between com1 of the DNP Master and com2
of the DNP outstation, you can use the DNP Master Status dialog to see communication activity
between the two devices.
Confirm that you have communication activity between the master and outstation as indicated in the
screen capture below.
If the All Stations tab indicates successful message transmission between the Master and Outstation,
congratulate yourself on completing the exercise.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
619
For additional information on the aforementioned configuration parameters, referenced in the
previous two exercises, refer to Chapter 8.6 in this manual.
8.3.3 How to Configure SCADAPack Address Mapping
At this stage in your configuration, the DNP master is able to poll for all outstation points. After a
successful poll, you can verify the status of current value of outstation DNP points from the various
data point type tabs available across the DNP Status Window.
The figure below shows the status of DNP digital input points 0, 1 and 2 on outstation 10.
The Modbus Address column is blank as these remote DNP points have not been mapped to any
local Modbus registers.
While this data is available in the DNP Address space of the master, it is not available for use within
a local program. To render DNP data available to a local program, you would have to perform an
Address Map. To map DNP binary input data from outstation 10 to this masters local DNP
database, do the following:
From the Controller menu, select DNP Configuration.
1. Click on the Address Map tree node.
2. From the Address Mapping configuration panel
a. Click on the Add button to launch the Add/Edit Address Mapping dialog.
b. Enter 10 for Station.
c. Select Binary Input for Object Type.
d. Enter a value of 1 for First Point. This is the DNP Address of the first Binary Input
point in Station 10.
e. Enter 3 for Number of points to map.
f. Enter 11001 for First Register (First Modbus Register) address. Note that Modbus
address 11000 must exist the in your controller database.
CAUTION: In a practical setting, a DNP Master may have local I/O mapped also mapped to points
within its DNP database. Ensure that you are not mapping outstation DNP points to local address
being used by local I/O.
The completed dialog should look like this:
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
620
g. Click on OK to add this entry to the Address Mapping table.
h. Use the DNP Master Status dialog, to confirm that remote points are being mapped
to local Modbus registers as shown below:
You can also confirm that remote points are being mapped to Modbus registers by monitoring the
status of Modbus registers 11001, 11002 and 11003.
8.3.4 How to Configure SCADAPack DNP Mimic Master
In addition to all the configuration procedures for a DNP Master, following the steps below to enable
the DNP Mimic master.
From the Controller menu, select DNP Configuration
1. Follow all steps in the Section 8.3.2.2 to configure the DNP master.
2. Click on the Master tree node.
3. Enable Mimic Mode.
8.4 SCADAPack DNP Router
All SCADAPack controllers can be configured as a DNP Router. A unique characteristic of a
SCADAPack DNP router is the ability to:
- Route (or forward) DNP messages not destined to this station, using rules defined within a
routing table.
Otherwise, a SCADAPack controller not configured for DNP routing will simply discard a message
whose DNP destination address does not match that of the controller.
A DNP router is typically used when a direct communication link between the DNP master and
outstation cannot be established, typically due to different physical layers on the two network
segments. For instance, the physical network between the DNP SCADA Host and the router could
be an Ethernet connection, while the physical layer between the router and all outstations could be a
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
621
multi-drop serial RS-485 or even an RS-232 radio connection. Given that messages are routed
directly from the DNP SCADA Host to the outstations, bandwidth limitations are dictated by the
speed of the serial multi-drop connection. On the contrary, there is no bandwidth limitation within a
DNP Mimic architecture, as the Mimic Master immediately responds to the DNP SCADA Host on
behalf of the targeted outstation. Of course, the side effect of the DNP Mimic architecture is that
polled data obtained by the DNP SCADA Host may not be very current. In either case, careful
design considerations based on these tradeoffs should be exercised.
As mentioned above, the SCADA Host has only one connection to a SCADAPack DNP Router. All
target outstations of the SCADA Host are connected down stream of the DNP Router as illustrated in
the figure below.
DNP SCADA Host SCADAPack
DNP Router
SCADAPack
DNP Outstation B
SCADAPack
DNP Outstation C
Ethernet Multi-drop Serial RS-485
or RS-232 data radio
Figure 8-6: SCADAPack DNP Router and multi-dropped DNP Outstations
In the above configuration the SCADAPack DNP Router (Outstation A above) manages all the
communication with the outstations. The SCADAPack DNP router receives messages from the
SCADA Host for each outstation and route or forwards the messages to the outstations, based on
routing rules established with the DNP Routing table.
DNP Messages are routed based on the following logic:
if (a message is received which needs to be retransmitted to someone else)
if (the message target is configured in our routing table)
if (the destination port is different from the incoming port)
or (routing is enabled on the incoming port)
then retransmit the message
Change event data in the form of unsolicited responses from the outstations are routed directly to the
DNP SCADA Host, by the SCADAPack DNP router.
A DNP Router is different from a Mimic in that a router forwards all messages are directly to the
outstations, whereas the mimic responds to some messages on behalf of the outstations. Therefore,
both operation modes have the advantage of delegating the task of DNP Routing of multiple
outstations to this intermediate unit. The SCADAPack DNP router handles all communications
paths to outstations, including such tasks as dial-up radio communication. In contrast to Mimic
mode, however, the SCADA Host system still has to handle the long delays and high error rates that
may be present on the communications links to the outstations.
Note: Mimic Master and Routing are incompatible modes that should never be used together.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
622
8.4.1 How to Configure a SCADAPack DNP Router
In this exercise, we will configure a SCADAPack 32 controller to route DNP messages received
from DNP Master 32001 on its Ethernet port, out through com2. This message is destined for
outstation 20. .This exercise assumes a valid Ethernet connection between your PC or laptop and the
SCADAPack 32.
After this exercise, you should be able to:
- Configure DNP/TCP on an Ethernet port
- Configure a SCADAPack DNP Router to route messages from a SCADA DNP Host to an
outstation.
8.4.1.1 Tasks to Complete
1. Enable the DNP protocol communication on the communication interfaces involved
in routing.
2. Enable routing on the communication interface.
3. Setup the forward and return entries in the DNP routing table.
8.4.1.2 Configuration Steps
1. From the Controller menu, click on Serial Ports.
2. In the Controller Serial Ports dialog, set the Protocol on COM2 to DNP.
3. In the Controller Serial Ports dialog, Enable Routing.
4. The completed dialog should look like this:
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
623
5. Click on OK to close this dialog and save your settings.
6. From the Controller menu, click on IP Configuration.
7. Select the DNP/TCP tree node from the Controller IP Configuration dialog.
8. Enable the protocol and leave all other settings at default values.
Note: This exercise assumes that you have a valid IP Address, Subnet Mask and Default Gateway
properly configured.
9. The completed dialog would look like this:
TIP: In this configuration, the SCADAPack DNP Router is acting as a DNP Server on the Ethernet
port. The Server Idle Timeout parameter will be used to determine how long this connection will
be kept open from time of last communication activity. For a Server Idle Timeout default value of 4
minutes, and an Application Layer Timeout default value of 5 minutes, there is the possibility that
the IP port will be closed, if the router is experiencing communication problems with the outstations.
In this case, it is a good idea to increase the Server Idle Timeout to at least 2x the DNP configuration
Application Layer Timeout. Or, simply reduce the Application Layer timeout to a value less than 2x
the Server Idle Timeout.
10. From the DNP Configuration panel, select the Routing tree node.
e. Click on the Add button to begin a new routing table entry.
f. From the Add/Edit Route dialog,
Add the route to Station 20:
i. Enter 20 for the Station.
ii. Set the Port to COM2.
iii. Leave default values for all other parameters.
iv. Click on OK to add this entry to the routing table and return to the Routing dialog.
Add the Return route from Station 20:
i. Enter 32001 for the Station.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
624
ii. Set the Port to DNP in TCP.
iii. Enter the IP Address of your DNP Master. In this case, the IP Address of my PC
running a DNP SCADA Host software is 10.10.10.141.
iv. Leave default values for all other parameters.
v. The completed dialog should look like this:
vi. Click on OK to add this entry to the routing table and return to the Routing dialog.
vii. The completed routing table should look like this:
Note: For proper operation of the router, there must be two routing entries in the routing table for
each outstation; An entry specifying how the communication path from this router to the
outstation and another communication path from the router to the SCADA DNP Master.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
625
8.5 Design Considerations
The strength of DNP lies in its ability to offer time-stamped data, scheduled polling of data from
multiple outstations and time synchronization, event data buffering and reporting by exception.
DNP was originally design to be used over a serial point-to-point (RS-232) link. As such, the
protocol implements certain measures against data corruption and data loss in its Application and
Data Link layers. Such measures include timeouts, retries, and checksums.
These data recovery mechanisms provided by the protocol, can be counter productive when not
properly configured over an underlying communication medium, such as Ethernet, that already
provides robust measures. In almost all of such cases, the recovery mechanisms offered by DNP
need to be turned off. Such considerations together with good engineering judgment, therefore, must
be practiced before one embarks on the design of a large DNP network.
This chapter outlines special considerations of the DNP protocol and implications within the
SCADAPack DNP driver that should be considered when designing large networks. We also list
common malpractices and a list of Frequently Asked Questions (FAQs) that arise during the course
of network design.
8.5.1 Considerations of DNP3 Protocol and SCADAPack DNP Driver
To ensure consistent network performance, even under worse case scenarios, the following DNP
specification rules should be considered when designing a DNP network using SCADAPack as the
main nodes.
8.5.1.1 Unsolicited Messages always request for a Confirmation
An outstation will always request for an Application Layer confirmation when it sends an unsolicited
message, even if the Application Layer confirmation field is not enabled. If no response is received
within an Application Layer timeout, the outstation will retry the message a number of times as
determined by the Application Layer Retry parameter.
8.5.1.2 Master shall never request for Application Layer Confirmation
A Master request is always accompanied by a response message from an outstation. Hence, the
Application Layer confirmation on the master RTU should never be enabled.
8.5.1.3 DNP Write Messages always request for a Confirmation
As implemented in the SCADAPack DNP driver, a DNP Write request (FC 02) requires an
Application Layer response from the outstation. If an acknowledgement is not received within the
configured Application Layer timeout interval, the message is retried a number of times as
determined by the Application Layer retry parameter.
8.5.1.4 Only one DNP3 transaction can be pending at a time
A SCADAPack DNP station will not initiate or process another DNP transaction, as long as one is
outstanding. Thus, once a SCADAPack has initiated a DNP transaction, all subsequent DNP3
messages received but not related to the original transaction are buffered.
8.5.1.5 SCADAPack controllers buffer 3 DNP messages
A SCADAPack serial port receive buffer can hold a maximum of 3 DNP messages or Data Link
frames. If an additional DNP message is received when the buffer is full, the oldest message in the
buffer is replaced with the newest one.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
626
8.5.1.6 Output points in DNP Address Mapping issue DNP Write
Digital and analog output points contained within the DNP Address Mapping of a SCADAPack
controller automatically issue DNP Write messages when their value or state changes.
8.5.2 Typical Configuration Malpractices and Recommendations
DNP is a capable protocol that effectively transfers some of the system engineering effort from
designing a sophisticated logic program, to configuring and tuning the system using parameters.
However, DNP does not eliminate the need to properly evaluate and engineer the communication
media to support the performance expectations of the system, especially under worse case scenarios.
DNP networks can be designed around polling or report-by-exception. In a polling environment,
each master request can be viewed as an invitation for an outstation device to transmit data on the
shared communications medium. The master controls which device can transmit, thereby preventing
collisions from occurring, as the timing of responses is predictable under all situations. In addition,
masters can ask again if a response is not received, thus providing an opportunity for the outstation
to re-send lost data. Using this strategy, a master effectively manages media access thereby
preventing contention with those outstations unexpectedly transmitting on their own.
DNP networks can also be designed around unsolicited communications. In this case, the outstations
transmit events to the master as they occur. When using this strategy, the communications media
must be evaluated carefully in regards to the need for collision detection and prevention, if consistent
network performance is to be expected.
Given that typical systems are designed using a combination of both strategies, is a good idea to start
by configuring the network for poll mode, as it can be easily tuned to cater for unsolicited
messaging, when system characteristics under worst case conditions become known. As with any
communications system, the designer should pay careful attention to bandwidth allocation and
management for a successful system implementation.
Below are several requirements of DNP system architecture that require careful engineering
judgment.
1. Multiple high priority unsolicited messages configured in outstation.
2. System with multiple outstations, each containing numerous Class 1 events, configured with a
Class 1 Hold Count of 1.
3. Relying on unsolicited messaging to get event data to master. System not designed around
master polling for events.
4. Multiple masters with poor communication link.
5. Insufficient use of Deadband and debounce to curb event generation.
6. Master RTU has Application Layer confirmation enabled.
7. Enabling both the Application and Data Link Layer confirmations.
8. Setting very high Application Layer timeout values over high speed networks.
9. DNP Address mapping contains multiple analog and digital output points that change rapidly.
The aforementioned statements and recommendations are provided below. Note that these
recommendations are to ensure, consistent performance under worse case situations, and are based
on the special considerations provided in the previous section.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
627
8.5.2.1 Multiple High Priority Unsolicited Messages
A common configuration malpractice is to enable numerous high priority events objects within an
outstation, and configure the outstation to trigger an unsolicited message to the master each time a
new event occurs. In a SCADAPack controller, this is accomplished by configuring numerous Class
1 event objects, and enabling Class 1 Unsolicited Responses (Messaging) with a Hold Count or Hold
Time of 1.
A Hold Count of 1 and Hold Time of 60 seconds specified for Class 1 events, imply that the
controller will immediately trigger an unsolicited event as one occurs. If this outstation and others
have a multitude of Class 1 event objects, visualize worse case scenario as a burst of messages being
transmitted to the master at the same time. Given that a SCADAPack serial port buffer can only
handle three DNP Data Link frames at any given time, some messages might get lost, especially if
the master is required to immediately retransmit this message to some other node in return.
Such a system is designed around unsolicited messaging and is, therefore, far more susceptible to
network collisions if proper management of bandwidth it not exercised. Given that a SCADAPack
controller can only process one DNP transaction at a time, there is also a good chance that the serial
port receive buffer will overflow, adding to the cost of lost messages.
Recommendations:
In general, bandwidth is used more efficiently in a large DNP system if the master is designed to poll
for event data more frequently and static data less regularly.
Recommended practice is also to reserve unsolicited messaging for a small number of critical data.
If possible, it may be best to ensure that no more than 3 messages are sent to the master at exactly the
same time, under worse case scenario, as some event data may be lost if the master is currently busy
processing another transaction, unless random retry intervals are put in place.
If unsolicited messaging is the predominant data transfer method, an approach to manage network
usage, could be to configure a group of three or less outstations with a Hold Time that is unique
within the group.
The table below shows an example configuration for Hold Time and Hold Counts for Class 1 events
across six outstations.
Table 8-1: Hold Time and Hold Count Setup in for Six DNP Outstations
DNP Outstation
Address
Hold Time
(seconds)
Hold Count
11 1 100
12 1 100
13 1 100
14 2 100
15 2 100
16 2 100
8.5.2.2 Master not polling frequently causing event buffer overflows
An outstation does not discard the events within its buffer until all its configured masters have
acknowledged receipt of these events. This means that an outstation event buffer may eventually fill
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
628
up and overflow leading to loss of events. Buffer overflows typically indicate a poorly configured
system.
When the system is designed around unsolicited messaging, there is a good likelihood of media
contention causing buffer overflows. On the contrary, if the system is designed around frequent
master poll for event data, there will be fewer chances of buffers overflowing causing loss of event
data.
As stated earlier, immediate reporting of events using unsolicited messaging should be reserved for
those critical, yet absolutely rare occurring events. This is because unsoliciting these messages back
to the master will be reliable only if there is a substantial amount of unused bandwidth on the
communication media. A good rule of thumb is to have 50% or more of unused bandwidth available,
evenly distributed over a time frame.
Recommendation: Design the system around frequent master poll of class events and less regular
integrity polls. Reserve unsolicited messaging for infrequent high priority events. If network traffic
is predominated by unsolicited messaging, allocate 50% or more unused bandwidth as quiet time.
8.5.2.3 Outstation reports to Multiple Masters with Poor Comms
A poor communication link to one of an outstations multiple masters will prevent the outstations
event buffer to be emptied, as events cannot be reported to the master. This could lead to buffer
overflow situations and loss of event data.
Recommendation: Ensure that the communication path to all masters of an outstation is robust.
8.5.2.4 Insufficient Use of Input Deadband or Debounce
Event generation on a DNP analog input is controlled by a Deadband parameter. On a digital input,
event generation is controlled by a debounce parameter. Default settings of zero for these
parameters are typically overly aggressive and may lead to events being generated due to noise.
Recommendation: Set the analog Deadband and debounce parameters appropriately to non-zero
values.
8.5.2.5 Master Confirmation and Retries
Application or Data Link Layer confirmations should never be enabled on a master as:
1. Master requests typically will fit within a single Application Layer fragment hence there is need
for Data Link Layer confirmations.
2. Master request typically require a response, hence no need for Application Layer confirmations.
Thus, enabling the Application Layer Confirmation on a DNP master is obsolete practice and may
instead degrade system performance.
Recommendation: Disable the Application Layer Confirmation in a master SCADAPack
controller. Typical retry values for Application Layer retries lie between 1 and 3. Lengthy retries
may instead burden the communication medium
8.5.2.6 Outstation Confirmations and Retries
Confirmations on an outstation serve two useful purposes:
1. Ensure that a master received unsolicited responses from the outstation.
2. To ensure that a master correctly received responses to its request
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
629
Unsolicited messages will always request for an Application Layer confirmation, whether or not the
Application Layer Confirmation is enabled on the outstation. If network traffic is predominantly
unsolicited messaging, the Application Layer confirmation does not need to be enabled.
When the master is configured, as recommended, to frequently poll the outstation for event data
using read request, while imposing a limit on the number of events the outstation should include in
its response, the outstation still needs to know if the master received its replies so that it can:
- Remove these events from its buffer
- Know what to transmit next.
To cater for confirmations to read responses, Application Layer Confirmation in the outstation
typically needs to be enabled.
The Data Link Layer breaks down Application Layer fragments into smaller frames. Smaller packet
sizes reduce bit error in noisy environments. While it is better to accept the overhead of confirming
each Data Link Layer frame of a multi-frame message, and re-transmit corrupted frames, than to re-
send an entire Application Layer fragment, a viable alternative is to reduce the Application Layer
fragment size and use only Application Layer confirmations. When fragments are reduced to the size
of a Data Link Layer frame, the overhead of Application Layer confirmations, and the probability of
noise corrupting those confirmation messages, is nearly the same as for Data Link Layer
confirmations.
Enabling the Data Link layer confirmation on the outstation, therefore, is not required when the
communication medium is not reliable. For example, certain data radios, e.g. FreeWave 9000 MHz
spread spectrum radios, implement a robust mechanism to ensure that a data packet make it to their
desired destination; TCP/IP incorporates robust mechanisms to prevent data loss; a local serial link
between stations is also very reliable. In these cases, it is not necessary to enable the Data Link
Layer confirmations.
If, however, physical medium quality if below par, such as in the case of noisy radio networks, or a
shaky PSTN connections, then one should enable the Data Link Layer confirmation only, or as
mentioned earlier, reduce the Application Layer maximum fragment length below 249 bytes.
If either the Application or Data Link Layer Confirmation is enabled, retries should be configured to
a low non-zero value. Typical retry values lie between 1 and 3. Lengthy retries may instead burden
the communication medium
Recommendation:
Application and Data Link Layer
confirmations in an outstation can be set
according to the following table:
Communication Medium Reliability
High
Low
Data Acquisition
Configuration
master polls outstation
frequently for event data
(also limits number of
events in read response)
Enable Application Layer
Confirmation
Disable Data Link Layer
Confirmation
Disable Application
Layer Confirmation
Enable Data Link
Layer Confirmation
master does not poll
frequently enough and
outstation generates lot of
unsolicited messages
Enable Application Layer
Confirmation
Disable Data Link Layer
Confirmation
Disable Application
Layer Confirmation
Enable Data Link
Layer Confirmation
Regardless of the data
acquisition strategy, if the
Enable Application Layer Enable Application
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
630
Max Application Layer
fragment is set to a values
less than 249
Confirmation
Disable Data Link Layer
Confirmation
Layer Confirmation
Disable Data Link
Layer Confirmation
Note: It is never required to enable BOTH the Application and Data Link Layer Confirmations.
8.5.2.7 Setting relatively large Application Layer timeouts
On a high speed link, such as Ethernet, configuring a high Application Layer timeout does not
increase network reliability. Instead this reduces system performance, as there will be a significant
portion of time within the timeout period, after which the IP transaction may have been terminated.
Typically, an Ethernet transaction is completed in the order of a millisecond and a DNP master
SCADAPack controller, by default, closes its DNP TCP port within 10 seconds of no activity. A
DNP SCADAPack controller acting as an outstation closes its port by default in about 4 minutes.
Under these default conditions, if the application layer timeout on a SCADAPack DNP master is set
for 15 seconds, for instance, the port may have closed 10 seconds after last activity, but the
application may still be waiting for a timeout.
If a message is somehow lost, and the timeout is set for 5 seconds, for instance, the application will
still be waiting for a response even though the IP transaction has terminated. This results to wasted
bandwidth.
Recommendation: When operating over high speed links, make Application Layer timeouts as
small as possible.
8.5.2.8 DNP Address mapping contains multiple output points
The DNP Address Mapping table allows local Modbus registers in the SCADAPack DNP master to
be mapped to DNP points in an outstation. Each time an output register defined within the DNP
Address Mapping table changes, a DNP Write message (FC 2) is immediately issued to update the
corresponding DNP point in the outstation.
If numerous output registers that change frequently, are listed in the Address Mapping table, the
network will be overburdened with a multitude of DNP Write messages.
Recommendation: Reserve Address Mapping only for mapping of outstation DNP data that needs
to be used by the master Modbus database, or to segregate points from different outstations in the
master. If numerous points are being mapped from the outstation to the master, the system is not
designed properly. In this case, it may be worthwhile to consider transferring application logic from
the master to the outstation.
8.5.3 Configuration FAQ
Complimentary commonly asked questions and answers are given below.
When configuring a routing entry in the DNP Routing table of a SCADAPack, one has to specify the
Data Link Layer Timeout and Retries. Do these fields take precedence over the same fields found
under the Data Link Layer configuration panel?
Yes.
In a master-outstation architecture, how do you recommend we setup time synchronization?
Recommended practice is to configure the master to initiate time synchronization to the outstations.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
631
DNP3 provides 4 data classes; Class 0 (Static or None), Class 1, Class 2 and Class 3. How does I
decide which class to assign any given I/O point?
In a SCADAPack controller, all configured DNP points by nature, are members of the Class 0 type.
Class 0 data is the current value or state of a DNP point. So, when a master does a Class 0 poll to an
outstation, the most current value or state of all DNP points within the database are returned.
Value or state changes on a point are captured as Class 1, Class 2 or Class 3 event data. Typically,
highest priority events are assigned to Class 1 and the lowest priority event to Class 3.
What does Class of None mean?
Class None is Class 0 or Static.
Why does this setting do: Enable Unsolicited Responses On Startup?
This setting enables unsolicited response (or unsolicited message) transmission, when power to an
RTU is cycled or when its configuration is changed. In this case, the RTU does not have to wait for
Function Code 20 or 0x14 (Enable Unsolicited Responses) from the master before is starts sending
any collected events.
This field should be set to No, to allow a master control when an outstation is able to send
unsolicited messages. Recommended practice is to allow a master to enable unsolicited message
transmission on all outstations.
Why would I ever need to change the Application Layer Maximum Fragment Length?
The Application Layer Maximum Fragment Length determines the maximum amount of memory
that is reserved for each application layer fragment. The default is 2048 bytes on SCADAPack
controllers although outstations must be prepared to receive fragments sizes of at least 249 bytes.
When communicating with those devices with insufficient memory it is necessary to limit the
maximum application layer fragment length to what the outstation can handle. In addition, limiting
the application layer fragment size beyond 249 also reduces the maximum Data Link layer frame
length.
Certain data radios may give better efficiency when transmitting data packets less than the maximum
data link fragment size of 249 bytes. With these radios, it is necessary to reduce the application
layers maximum fragment size below 249 bytes as required by the radio.
Other types of data radios, such as FreeWaves 900 MHz Spread Spectrum radios, provide
configuration options to optimize efficiency by changing the maximum packet size. In this case, it is
not necessary to reduce the application layer maximum fragment size.
In addition, when the communication medium is noisy, it is typically more efficient to transmit
smaller packets than larger packets. In this case, setting small Application Layer fragments would
force smaller data link frames, which is a better strategy in a noisy environment.
Caution: Limiting the application layer fragment size reduces the rate at which event data is
retrieved from the buffers, thus increasing the possibility of event buffer overflows, if the event data
is not being retrieved in a timely fashion. Reducing the maximum application layer fragment size,
increases network traffic and also reduced data throughput as an Application Layer Confirmation is
required for each fragment of a multi-fragment message.
Why would I ever want to Limit that maximum number of events in a read response?
This is another strategy that can be used to limit the Application Layer fragment of an outstations
response message. This strategy could be used under noisy environments.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
632
Also, this could be used to prevent an outstation with a large collection of event data to hold the
communication media captive while transmitting all its events.
What behavior should we expect from a SCADAPack when the event logs are full?
When a new event is collected and the SCADAPack DNP event buffer is full, the oldest event is
deleted and the newest event added into the buffer.
What is the main difference between SCADAPack DNP driver configuration modes?
DNP Master DNP Mimic Master Address
Mapping
Router Outstation
Define DNP I/O
points
Not necessary Not necessary Not necessary Not
necessary
Yes
Enable Application
Layer Confirmation
No No No No. Not
necessary.
Should I Initiate
Time
synchronization?
Yes No. No. No. No.
Poll for Class DNP
static and Class
data?
Yes
Yes Yes No. No
Initiates
Unsolicited
messages?
No No No No Yes
Router Messages
not destined to this
station?
No Some No Yes No
When best to use Master in a Point
to Multipoint
network
Data Concentrator
with many outstations
that will take a while
to configure. When
outstation data does
not need to be
available to logic in
this node.
When remote
DNP data is
needed by local
program
Strictly
Repeater
Forms basic
node in DNP
network.
8.6 DNP Configuration Menu Reference
This section of the manual details the SCADAPack DNP3 driver configuration parameters. The
DNP Configuration panel is accessed from the Controller | DNP Configuration menu from either
TelePACE or ISaGRAF. Browse through this chapter to familiarize yourself with some key DNP3
concepts and their implementation in a SCADAPack controller.
When selected the DNP Settings window is opened, as shown below.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
633
The DNP Settings window has a tree control on the left side of the window. The tree control appears
differently depending on the controller type selected. The SCADAPack 330, SCADAPack 334,
SCADAPack 350, SCADAPack 32 and SCADAPack 32P controllers support DNP master and
include the bolded items in the following list. Other SCADAPack controllers do not support DNP
master and do not include the bolded items. This tree control contains headings for:
- Application Layer
- Data Link Layer
- Master
- Master Poll
- Address Mapping
- Routing
- Binary Inputs
- Binary Outputs
- 16-Bit Analog Inputs
- 32-Bit Analog Inputs
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
634
- Short Floating Point Analog Inputs
- 16-Bit Analog Outputs
- 32-Bit Analog Outputs
- Short Floating Point Analog Outputs
- 16-Bit Counter Inputs
- 32-Bit Counter Inputs
When a tree control is selected by clicking the mouse on a heading a property page is opened for the
header selected. From the property page the DNP configuration parameters for the selected header is
displayed.
As DNP objects are defined they are added as leaves to the object branch of the tree control. When
an object is defined the object branch will display a collapse / expand control to the left of the
branch.
The Allow Duplicate Modbus Addresses checkbox (in the bottom left corner) determines if the
Modbus I/O database addresses assigned to the DNP data points must be unique. Check this box if
you want to allow more than one point to use the same Modbus address.
Uncheck the box if you want to be warned about duplicate addresses. If an attempt is made to use a
Modbus address that has already been used for another DNP point the following warning is
displayed.
8.6.1 Application Layer Configuration
The Application Layer property page is selected for editing by clicking Application Layer in the tree
control section of the DNP Settings window. When selected the Application Link Layer property
page is active.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
635
Application Layer parameters are set in this property page. Each parameter is described in the
following paragraphs.
The Communication section of the dialog contains the configurable application layer
communication parameters.
When the Application Confirmation feature is enabled, the SCADAPack controller requests a
confirmation from the master station for any data transmitted. When it is disabled, the controller does
not request a confirmation from the master station and assumes that the master receives the data it
sends successfully. However if the data includes event data (including unsolicited messages), the
controller requests a confirmation from the master regardless of whether this feature is enabled or
disabled. Valid selections for this parameter are:
- Enabled
- Disabled
The Maximum Fragment Length is maximum size of a single response fragment that the RTU will
send. If the complete response message is too large to fit within a single fragment, then the
SCADAPack controller will send the response in multiple fragments. Valid values are between 100
and 2048 bytes.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
636
This parameter is adjustable to allow for interoperability with simple DNP3 devices that require
smaller application layer fragments. Devices with limited memory may restrict the application layer
fragment size to as low as 249 bytes.
Note: The Maximum Fragment Length parameter applies to responses from read commands only.
It does not affect unsolicited responses.
The Retries entry maximum number of times the application layer will retry sending a response or
an unsolicited response to the master station. This does not include any retries performed by the data
link layer. Valid values are between 0 and 255.
Note: Using application layer Confirmation and Retries is inherently more efficient than using data
link layer Confirmation and Retries. Each fragment sent by the Application layer may
require as many as 10 data link layer frames to be sent, each with its own confirmation
message. The application layer is typically preferred for message confirmation for this
reason.
The Application Timeout is the expected time duration (in milliseconds) that the master station's
application layer requires to process and respond to a response from the SCADAPack controller.
This SCADAPack controller uses this value in setting its time-out interval for master station
responses. This value should be large enough to prevent response time-outs. The value must be kept
small enough so as not to degrade system throughput. The value of this element is dependent on the
master station. Valid values are between 100 and 60000 milliseconds.
The Time Synchronization section of the dialog defines when and how often the SCADAPack
outstation prompts the master station to synchronize the SCADAPack controller time. Messages
must be sent between the Master and Remote stations for Time Synchronization to work. Valid
selections for this parameter are:
- The None selection will cause the SCADAPack controller to never request Time
Synchronization.
- The At Start Up Only selection will cause the SCADAPack controller to request Time
Synchronization at startup only.
- The Interval selection will cause the SCADAPack controller to request Time Synchronization at
startup and then every Interval minutes after receiving a time synchronization from the master.
Valid entries for Interval are between 1 and 32767 minutes. The default value is 60 minutes.
Note: Time Synchronization may instead be initiated by the Master for each Outstation. This may
be selected in the Add/Edit Master Poll dialog. It is not required to enable Time
Synchronization at both the Master and the Outstation.
The Unsolicited Response section of the dialog defines which class objects are enabled or disabled
from generating report by exception responses. Unsolicited responses are individually configured for
Class 1, Class 2, and Class 3 data.
The Enable Unsolicited controls enables or disables the generation of unsolicited events for Class 1,
Class 2 or Class 3 data. If unsolicited responses are disabled for a Class the controller never
generates unsolicited events for that Class. If unsolicited responses are enabled the controller
generates unsolicited events for that Class if its value or state exceeds a defined threshold. Valid
selections are:
- Enabled
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
637
- Disabled
Note that the controller does not transmit collected unsolicited messages (or responses) to a master,
even after the Hold Time or Hold Count conditions have been met, unless its 'Enable Unsolicited
Responses on Start Up' field is set to 'Yes' or the master triggers this transmission.
To configure a master to control unsolicited message transmission from a remote, see the Master
Poll configuration panel.
The Hold Time parameter is used only when unsolicited responses are enabled for a Class. This
parameter defines the maximum period (in seconds) the RTU will be allowed to hold its events
before reporting them to the DNP master station. When the hold time has elapsed since the first
event occurred, the RTU will report to the DNP master station all events accumulated up to then.
This parameter is used in conjunction with the Hold Count parameter in customizing the unsolicited
event reporting characteristics. The value used for the Hold Time depends on the frequency of event
generation, topology and performance characteristics of the system. The valid values for this
parameter are 0 - 65535. The default value is 60 seconds.
The Hold Count parameter is used only when unsolicited responses are enabled for a Class. This
parameter defines the maximum number of events the RTU will be allowed to hold before reporting
them to the DNP master station. When the hold count threshold is reached, the RTU will report to
the master, all events accumulated up to that point. This parameter is used in conjunction with the
Hold Time in customizing the unsolicited event reporting characteristics. To guarantee an
unsolicited response is sent as soon as an event occurs, set the Hold Count parameter to 1. The valid
values for this parameter are 1 - 65535. The default value is 10.
The Enable Unsolicited Responses on Start Up parameter enables or disables unsolicited responses
on startup. This affects the default controller behaviour after a start-up or restart. Some hosts require
devices to start up with unsolicited responses enabled. It should be noted this is non-conforming
behaviour according to the DNP standard. Valid selections are:
- Yes
- No
The default selection is Yes.
The Send Initial Unsolicited Response on Startup parameter enables or disables Send Initial
unsolicited responses on startup. This parameter controls whether an initial unsolicited response with
null data is sent after a start-up or restart. Valid selections are:
- Yes
- No
The default selection is No.
The Resend unreported events after parameter enables or disables the retransmission of events
after all attempts to report the events have failed.
Many communications networks experience occasional communications failures. In such networks,
even when message retries are used, there is a chance that some messages will fail meaning there is
a chance some unsolicited messages will fail and change events will not be reported to the master
station. The events remain in the outstation buffers until polled or additional events are generated.
To address this issue, and ensure guaranteed delivery of high priority events, the Resend
unreported events after parameter is added to the DNP configuration. This parameter controls a
timer for retrying the transmission of unsolicited messages.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
638
Whenever a DNP unsolicited message fails, including all its retries, then instead of just retiring the
message and reporting it as a failed message, an unsolicited resend timer is initiated. After the
configured time delay has passed, the unsolicited message will be sent again, including the
configured retries. This process will be repeated continuously until the unsolicited message is
successfully sent and acknowledged. In the case of multiple masters the unsolicited resend timer
is uninitiated after the retries are expired for the last master in the polling list.
Note: SCADAPack firmware 2.44 (and later), SCADAPack 32 Firmware 1.92 (and later),
SCADAPack 330, SCADAPack 334, SCADAPack 350 or SCADASense firmware 1.25 (and
later) and SOLARPack 410 firmware 1.32 (and Later) support this feature.
Valid values are 1 to 65535 seconds. The default value is 0 seconds. The control is unselected by
default.
If Resend unreported events is not selected, the controller will not resend unreported events after
all attempts fail, until polled or until additional events are generated and their reporting threshold is
reached.
The Resend unreported events control can be selected even when no classes are enabled. This
allows the feature to be used in a mimic controller that is being used to pass outstations
events to a host.
The Dial Up section of the dialog defines modem parameters used when a dial up modem is used to
communicate with stations that use dial up communication. The phone numbers for the stations are
defined in the Routing table.
The Modem Initialization is the string that will be sent to the modem prior to each call. This is an
ASCII null-terminated string. The maximum length of the string is 64 characters, including the null
terminator.
The Attempts controls the maximum number of dial attempts that will be made to establish a Dial
Up connection. The valid values for this parameter are 1 10. The default value is 2.
The Dial Type parameter controls whether tone or pulse dialing will be used for the call. Valid
values are Tone dialing or Pulse dialing. The default value is Tone dialing.
The Connect Timeout controls the maximum time (in seconds) after initiating a dial sequence that
the firmware will wait for a carrier signal before hanging up. The valid values for this parameter are
1 65535. The default value is 45.
The Inactivity Timeout controls the maximum time after message activity that a connection will be
left open before hanging up. The valid values for this parameter are 1 65535 seconds. The default
value is 45 seconds.
The Pause Time controls the delay time (in seconds) between dial events, to allow time for
incoming calls. The valid values for this parameter are 1 65535. The default value is 10.
The Operate Timeout parameter specifies the timeout interval between a Select and Operate request
from the Master. If after receiving a valid Select control output request from the master, the RTU
does not receive the corresponding Operaterequest within this time-out interval, the control output
request fails. The value of this parameter, expressed in seconds, is dependent on the master station,
the data link and physical layer. Valid values are 1 to 6500 seconds. The default value is 15 seconds.
The Master must have the Select/Operate functionally in order to use this feature.
The Report only Level 2 Compliant Objects in Class Polls parameter affects how Short Float
Analog Input, Short Float Analog Output, and 32-bit Analog Output objects are reported. These
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
639
objects are converted to 32-bit Analog Input and 16-bit Analog Output objects when this parameter
is selected. Valid selections are:
- Yes
- No
The default selection is No.
The Limit Maximum Events in Read Response parameter allows limiting the number of events in
a read response. Select the checkbox to enable the limit. Valid values are 1 to 65535. The default
value is disabled.
Note: The Maximum Events parameter applies to responses from read commands only. It does not
affect unsolicited responses.
The Allow Duplicate Modbus Addresses checkbox determines if the Modbus I/O database
addresses assigned to the DNP data points must be unique. Check this box if you want to allow more
than one point to use the same Modbus address.
- Click the OK button to accept the configuration changes and close the DNP Settings dialog.
- Click the Cancel button to close the dialog without saving any changes.
8.6.2 Data Link Layer Configuration
The Data Link Layer property page is selected for editing by clicking Data Link Layer in the tree
control section of the DNP Settings window. When selected the Data Link Layer property page is
active.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
640
Data Link Layer parameters are set in this property page. Each parameter is described in the
following paragraphs.
The Master Station Addresses list box contains a list of Master station addresses that the
SCADAPack controller will respond to. The default list contains one master address of 100. This
address may be edited, or changed, and up to 8 master stations may be added to the list. Valid entries
for Master Station Addresses are 0 to 65519.
- When a master station polls for event data, the controller will respond with any events that have
not yet been reported to that master station.
- When an unsolicited response becomes due, it will be sent to each configured master station in
turn. A complete unsolicited response message transaction, including retries, will be sent to the
first configured master station. When this transaction has finished, a complete unsolicited
response message transaction including retries will be sent to the next configured master station,
and so on for all the configured master stations.
- Change events will be retained in the event buffer until they have been successfully reported to
all configured master stations.
Select the Add button to enter a new address to the Master Station Address list. Selecting the Add
button opens the Add Master Station Address dialog. Up to 8 entries can be added to the table. An
error message is displayed if the table is full.
Select the Edit button to edit address in the Master Station Address list. Selecting the Edit button
opens the Edit Master Station Address dialog. The button is disabled if there are no entries in the
list.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
641
The Master Station Address edit box specifies the Master Station Address. Enter any valid Station
address from 0 to 65519.
- The OK button adds the Master Station Address to the list and closes the dialog. An error is
displayed if the Master Station Address is invalid, if the address is already in the list, or if the
address conflicts with the RTU station address.
- The Cancel button closes the dialog without making any changes.
The RTU Station Address parameter specifies the address of this RTU. It is the source address used
by this DNP driver when communicating with a master station. Each DNP station in a network must
have a unique address, including the Master station. Valid entries for RTU Station Address are 0 to
65519.
The Data Link Confirmation parameter specifies whether or not the RTU requests the underlying
data link transmitting its response to use a high quality service, which generally means that the data
link requires the receiving data link to confirm receipt of all messages.
The Retries parameter specifies the maximum number of times the data link layer will retry sending
a message to the master station. This parameter is only used when responding to a request from a
Master station, when there is no corresponding entry in the Routing dialog for that station. This is
independent of the application layer retries. The valid values for this parameter are 0 - 255. Setting
the value to 0 disables sending retries.
Note: Using data link layer Confirmation and Retries is inherently less efficient than application
layer Confirmation and Retries. Each fragment sent by the Application layer may require as
many as 10 data link layer frames to be sent, each with its own confirmation message. The
data link layer is typically not used for message confirmation for this reason.
The Data Link Timeout parameter specifies the expected time duration that the master station's data
link layer requires to process and respond to a message from the RTUs data link layer. It is used by
the RTU in setting its time-out interval for master station responses. This value should be large
enough to prevent response time-outs. The value must be kept small enough so as not to degrade
system throughput. The value of this element is dependent on the master station. It is expressed in
milliseconds. Valid values are 10 to 60000 milliseconds. The default value is 500 milliseconds.
- Click the OK button to accept the configuration changes and close the DNP Settings dialog.
- Click the Cancel button to close the dialog without saving any changes.
- Click the Delete button to remove the selected rows from the list. This button is disabled if there
are no entries in the list.
The Allow Duplicate Modbus Addresses checkbox determines if the Modbus I/O database
addresses assigned to the DNP data points must be unique. Check this box if you want to allow more
than one point to use the same Modbus address.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
642
8.6.3 Master
The Master property page is selected for editing by clicking Master in the tree control section of the
DNP Settings window. This selection is only visible if the controller type is SCADAPack 330,
SCADAPack 334, SCADAPack 350, SCADAPack 32 or SCADAPack 32P. These controllers
support DNP Master. When selected the Master Application Link Layer property page is active.
Master parameters are set in this property page. Each parameter is described in the following
paragraphs.
The Mimic Mode parameter specifies the DNP Mimic Mode. The valid selections are Enable or
Disable. When DNP Mimic Mode is enabled the controller will intercept DNP messages destined for
a remote DNP station address, and will respond directly, as though the controller were the designated
target. For read commands, the controller will respond with data from its Remote DNP Objects
corresponding with the intended target address. For write commands, the controller will write data
into its Remote DNP Objects, and issue a direct response to acknowledge the command. It will then
issue a new command to write the data to the designated target. See Section 8.3.1.1-SCADAPack
DNP Mimic Master section for an explanation of the concept around Mimic Mode. The default
selection is Disabled.
The Base Poll Interval parameter is the base interval (in seconds) for polling slave devices. The poll
rates and issuing time synchronisation will be configured in multiples of the base poll interval. The
slave devices with the same poll rates will be polled in the order they appear in the poll table. The
valid values for this parameter are 1 to 65535. The default value is 10 seconds.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
643
8.6.4 Master Poll
The Master Poll property page is selected for editing by clicking Master Poll in the tree control
section of the DNP Settings window. This selection is only visible if the controller type is a
SCADAPack 330, SCADAPack 334, SCADAPack 350, SCADAPack 32 or SCADAPack 32P.
These controllers support DNP Master. When selected the Master Poll property page is active and
button Copy is renamed to Edit.
The Master Poll displays slave devices to be polled by this master station as a row, with column
headings, in the table. The table may have up to 1000 entries. A vertical scroll bar is used if the list
exceeds the window size.
Note: All slave devices in the Master Poll table need to be added to the Routing table.
The Station column displays the address of the DNP slave device to be polled. Each entry in the
table should have unique DNP Station Address.
The Class 0 Rate column displays the rate of polling for Class 0 data, as a multiple of the base poll
interval.
The Class 1 Rate column displays the rate of polling for Class 1 data, as a multiple of the base poll
interval.
The Class 2 Rate column displays the rate of polling for Class 2 data, as a multiple of the base poll
interval.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
644
The Class 3 Rate column displays the rate of polling for Class 3 data, as a multiple of the base poll
interval.
- The OK button saves the table data and closes the DNP Settings dialog.
- The Cancel button closes the dialog without saving changes.
Select the Add button to enter a new row in the Master Poll. Selecting the Add button opens the
Add/Edit Master Poll dialog.
Select the Edit button to modify the selected row in the Master Poll. Selecting the Edit button opens
the Add/Edit Master Poll dialog containing the data from the selected row. This button is disabled
if more than one row is selected or if there are no entries in the table.
The Delete button removes the selected rows from the table. This button is disabled if there are no
entries in the table.
The Allow Duplicate Modbus Addresses checkbox determines if the Modbus I/O database
addresses assigned to the DNP data points must be unique. Check this box if you want to allow more
than one point to use the same Modbus address.
Click on the column headings to sort the data. Clicking once sorts the data in ascending order.
Clicking again sorts the data in descending order.
8.6.4.1 Add/Edit Master Poll Dialog
This dialog is used to edit an entry or add a new entry in the Master Poll.
The Station edit control displays the address of the DNP slave device to be polled. Valid values are
0 to 65519.
The Class 0 Polling section of the dialog specifies the type and rate of polling for Class 0 data.
- The None selection disables class 0 polling for the slave station. This is the default selection.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
645
- The At Start Up Only selection will cause the master to poll the slave station at startup only.
- The Interval selection will cause the master to poll the slave station at startup and then every
Interval of the base poll interval. For example if the base poll interval is 60 seconds and the
Interval parameter is set to 60 then the master will poll the slave station every hour. Valid values
are 1 to 32767. The default value is 60.
- The Poll Offset parameter is used to distribute the load on the communication network. The Poll
Offset is entered in multiples of the base poll interval. Valid values for this parameter are 0 to the
Poll Interval value minus 1. Any non-zero value delays the start of polling for the specified
objects by that amount. The default value is 0. This control is disabled when None is selected,
and enabled otherwise. For an example of using the Poll Offset parameter see the Poll Offset
Example at the end of this section.
The Class 1 Polling section of the dialog specifies the type and rate of polling for Class 1 data.
- The None selection disables class 1 polling for the slave station. This is the default selection.
- The At Start Up Only selection will cause the master to poll the slave station at startup only.
- The Interval selection will cause the master to poll the slave station at startup and then every
Interval of the base poll interval. For example if the base poll interval is 60 seconds and the
Interval parameter is set to 60 then the master will poll the slave station every hour. Valid values
are 1 to 32767. The default value is 60.
- The Poll Offset parameter is used to distribute the load on the communication network. The Poll
Offset is entered in multiples of the base poll interval. Valid values for this parameter are 0 to the
Poll Interval value minus 1. Any non-zero value delays the start of polling for the specified
objects by that amount. The default value is 0. This control is disabled when None is selected,
and enabled otherwise. For an example of using the Poll Offset parameter see the Poll Offset
Example at the end of this section.
- Limit Maximum Events allows limiting the number of events in poll responses for Class 1/2/3
data. The checkbox is not checked by default, meaning there is no limit on the number of events.
Select the checkbox to specify a limit. The valid values for this parameter are 1 to 65535. The
default value is 65535. This control is disabled when None is selected, and enabled otherwise.
The Maximum Events parameter can be used to manage communication load on a system.
Consider the example of a master polling some data logging remotes, and the case where one of
the remotes has been offline for a long time. The remote will have built up a large number of
buffered events. If the master polled it for all events, the reply might take a long time, and cause
an unwanted delay in the master's polling cycle. However if the master limits the number of
events returned, the reply message duration will be more deterministic and the master can ensure
its poll loop timing is maintained. In this case, the event retrieval from the data logger will be
distributed over a number of poll cycles.
The Class 2 Polling section of the dialog specifies the type and rate of polling for Class 2 data.
- The None selection disables class 1 polling for the slave station. This is the default selection.
- The At Start Up Only selection will cause the master to poll the slave station at startup only.
- The Interval selection will cause the master to poll the slave station at startup and then every
Interval of the base poll interval. For example if the base poll interval is 60 seconds and the
Interval parameter is set to 60 then the master will poll the slave station every hour. Valid values
are 1 to 32767. The default value is 60.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
646
- The Poll Offset parameter is used to distribute the load on the communication network. The Poll
Offset is entered in multiples of the base poll interval. Valid values for this parameter are 0 to the
Poll Interval value minus 1. Any non-zero value delays the start of polling for the specified
objects by that amount. The default value is 0. This control is disabled when None is selected,
and enabled otherwise. For an example of using the Poll Offset parameter see the Poll Offset
Example at the end of this section.
- Limit Maximum Events allows limiting the number of events in poll responses for Class 1/2/3
data. The checkbox is not checked by default, meaning there is no limit on the number of events.
Select the checkbox to specify a limit. The valid values for this parameter are 1 to 65535. The
default value is 65535. This control is disabled when None is selected, and enabled otherwise.
The Maximum Events parameter can be used to manage communication load on a system.
Consider the example of a master polling some data logging remotes, and the case where one of
the remotes has been offline for a long time. The remote will have built up a large number of
buffered events. If the master polled it for all events, the reply might take a long time, and cause
an unwanted delay in the master's polling cycle. However if the master limits the number of
events returned, the reply message duration will be more deterministic and the master can ensure
its poll loop timing is maintained. In this case, the event retrieval from the data logger will be
distributed over a number of poll cycles.
The Class 3 Polling section of the dialog specifies the type and rate of polling for Class 3 data.
- The None selection disables class 1 polling for the slave station. This is the default selection.
- The At Start Up Only selection will cause the master to poll the slave station at startup only.
- The Interval selection will cause the master to poll the slave station at startup and then every
Interval of the base poll interval. For example if the base poll interval is 60 seconds and the
Interval parameter is set to 60 then the master will poll the slave station every hour. Valid values
are 1 to 32767. The default value is 60.
- The Poll Offset parameter is used to distribute the load on the communication network. The Poll
Offset is entered in multiples of the base poll interval. Valid values for this parameter are 0 to the
Poll Interval value minus 1. Any non-zero value delays the start of polling for the specified
objects by that amount. The default value is 0. This control is disabled when None is selected,
and enabled otherwise. For an example of using the Poll Offset parameter see the Poll Offset
Example at the end of this section.
- Limit Maximum Events allows limiting the number of events in poll responses for Class 1/2/3
data. The checkbox is not checked by default, meaning there is no limit on the number of events.
Select the checkbox to specify a limit. The valid values for this parameter are 1 to 65535. The
default value is 65535. This control is disabled when None is selected, and enabled otherwise.
The Maximum Events parameter can be used to manage communication load on a system.
Consider the example of a master polling some data logging remotes, and the case where one of
the remotes has been offline for a long time. The remote will have built up a large number of
buffered events. If the master polled it for all events, the reply might take a long time, and cause
an unwanted delay in the master's polling cycle. However if the master limits the number of
events returned, the reply message duration will be more deterministic and the master can ensure
its poll loop timing is maintained. In this case, the event retrieval from the data logger will be
distributed over a number of poll cycles.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
647
The Time Synchronization Rate section of the dialog specifies the rate of issuing a time
synchronization to this device, as a multiple of the base poll interval. Valid selections for this
parameter are:
- The None selection will disable issuing a time sync to this device. This is the default selection.
- The At Start Up Only selection will cause issuing a time synchronization at startup only.
- The Interval selection will cause the RTU to issue a time synchronization at startup and then
every Interval of the base poll interval seconds. Valid entries for Interval are between 1 and
32767 the base poll interval seconds. The default value is 60.
The Unsolicited Responses section is used in conjunction with the Enable Unsolicited Responses on
Start Up parameter on the Application Layer page. Certain non-SCADAPack slave devices are
designed to start with their Enable Unsolicited Responses on Start Up parameter set to No. Selecting
Enabled for any class causes the master to (after it detects the slave come online) send a command
allowing the slave to begin sending Unsolicited Responses of that class.
With SCADAPack slaves the Enable Unsolicited Responses on Start Up parameter may be set to
Yes, and the Accept Class parameters may be left at Disabled.
- The Accept Class 1 selection displays the enable/disable status of unsolicited responses from the
slave device for Class 1 events. The default selection is disabled.
- The Accept Class 2 selection displays the enable/disable status of unsolicited responses from the
slave device for Class 1 events. The default selection is disabled.
- The Accept Class 3 selection displays the enable/disable status of unsolicited responses from the
slave device for Class 1 events. The default selection is disabled.
The Save IIN Flags checkbox enables storing the IIN (Internal Indications) flags from the slave
station in a Modbus database register. When this parameter is checked the IIN flags are saved to the
entered Modbus register address. Valid entries are Modbus register addresses 30001 to 39999 and
40001 to 49999. The default value is 0.
The IIN flags are set by the slave to indicate the events in the following table. The events are bit
mapped to the Modbus register. All bits except Device Restarted and Time Synchronization required
are cleared when the slave station receives any poll or read data command. The master will write to
bits 5 and 11 depending on the local conditions in the master.
Bit Description
0 last received message was a broadcast message
1 Class 1 data available
2 Class 2 data available
3 Class 3 data available
4 Time Synchronization required
5 not used (returns 0)
6 Device trouble
Indicates memory allocation error in the slave, or
For master in mimic mode indicates communication failure with the slave
device.
7 Device restarted (set on a power cycle)
8 Function Code not implemented
9 Requested object unknown or there were errors in the application data
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
648
Bit Description
10 Parameters out of range
11 Event buffer overflowed
Indicates event buffer overflow in the slave or master. The slave will set this
bit if the event buffer in the slave is overflowed. The master will set this bit if
the event buffer in the master has overflowed with events read from the
slave. Ensure the event buffer size, in the master and slave, is set to a value
that will ensure the buffer does not overflow and events are lost.
12 not used (returns 0)
13 not used (returns 0)
14 not used (returns 0)
15 not used (returns 0)
The OK button checks the data for this table entry. If the data is valid the dialog is closed. If the
table data entered is invalid, an error message is displayed and the dialog remains open. The table
entry is invalid if any of the fields is out of range. The data is also invalid if it conflicts with another
entry in the table. Such conflict occurs when the station number is not unique. The ordering of items
in this table is important.
The Cancel button closes the dialog without saving changes.
8.6.4.2 Poll Offset Example
The Poll Offset parameter enhances the control over timing of master poll messages, by allowing
master poll messages to be staggered.
For example, a master station may have 10 slaves to poll, and must poll them every hour. If these are
included in the poll table without any poll offset, they will all be polled in quick succession on the
hour resulting in a large burst of communication activity once per hour. On some types of
communications networks (particularly radio) it is desirable to distribute communication load more
evenly, to minimize the chance of collisions and to avoid the possibility of consuming bandwidth
continuously for an extended period of time.
The poll offset parameter enables you to distribute the communication load evenly. In the above
example, it is possible to stagger the master polls so slave stations are polled at 6-minute intervals.
To do this, set the base poll interval to 10 seconds, and for each slave station set the poll rate and poll
offset parameters as follows:
Base Poll (seconds) Poll Rate (seconds) Poll Offset (seconds)
10 360 0
10 360 36
10 360 72
10 360 108
10 360 144
10 360 180
10 360 216
10 360 252
10 360 288
10 360 324
8.6.5 Address Mapping
The Address Mapping property page is selected for editing by clicking Address Mapping in the tree
control section of the DNP Settings window. This selection is only visible if the controller type is a
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
649
SCADAPack 330, SCADAPack 334, SCADAPack 350, SCADAPack 32 or SCADAPack 32P.
These controllers support DNP Master.
The Address Mapping contains a set of mapping rules, which will allow the Remote DNP Objects to
be mapped into local Modbus registers. This makes the data accessible locally, to be read and/or
written locally in logic. It is also possible to perform data concentration to map the remote DNP
Objects into the local DNP address space by defining local DNP objects and then mapping the
remote DNP objects to the same Modbus registers. Change events can also be mapped in the same
way - there is a configuration option to allow mapping of change events from a remote DNP slave
into the local DNP change event buffer. The table may have up to 1000 entries. A vertical scroll bar
is used if the list exceeds the window size.
The Station column displays the address of the remote DNP station.
The Object Type column displays the DNP data object type.
The First Point column displays the starting address of the remote DNP data points.
The Number column displays the number of remote points to be mapped.
The First Register column displays the starting address of local Modbus register where the remote
data points are to be mapped.
The Map Change Events combo box enables or disables mapping of change events from a remote
DNP slave into the local DNP change event buffer. Mapped change events may trigger an
Unsolicited message to be sent, after the Hold Count or Hold Time is reached. It may be desired
instead to map only static (live) values into local Modbus registers. The default selection is Disabled.
The default selection is Disabled.
The OK button saves the table data. No error checking is done on the table data.
The Cancel button closes the dialog without saving changes.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
650
Select the Add button to enter a new row in the Address Mapping. Selecting the Add button opens
the Add/Edit Address Mapping dialog.
Select the Edit button to modify the selected row in the Address Mapping. Selecting the Edit button
opens the Add/Edit Address Mapping dialog containing the data from the selected row. This button
is disabled if more than one row is selected. This button is disabled if there are no entries in the table.
The Delete button removes the selected rows from the table. This button is disabled if there are no
entries in the table.
The Allow Duplicate Modbus Addresses checkbox determines if the Modbus I/O database
addresses assigned to the DNP data points must be unique. Check this box if you want to allow more
than one point to use the same Modbus address.
Click on the column headings to sort the data. Clicking once sorts the data in ascending order.
Clicking again sorts the data in descending order.
8.6.5.1 Add/Edit Address Mapping Dialog
This dialog is used to edit an entry or add a new entry in the Address Mapping.
The Station edit control displays the address of the remote DNP station. Valid values for this field
are from 0 to 65519.
The Object Type combo box displays the DNP data Object Type. The list of available types
includes: Binary Input, Binary Output, 16-bit Analog Input, 32-bit Analog Input, Short Floating
Point Analog Input, 16-bit Analog Output, 32-bit Analog Output, Short Floating Point Analog
Output, 16-bit Counter Input, 32-bit Counter Input. The Default selection is Binary Input.
The First Point edit control displays the starting address of the remote DNP data points. Valid
values are from 0 to 65519.
The Number edit control displays the number of remote points to be mapped. Valid values for this
field are from 1 to 9999.
The First Register edit control displays the starting address of local Modbus register where the
remote data points are to be mapped. Valid values depend on the selection of DNP Object Type and
are as follows:
For Binary Inputs valid range is from 10001 to 14096.
For Binary Outputs valid range is from 00001 to 04096.
For Analog Inputs and Counter Inputs valid range is from 30001 to 39999.
For Analog Outputs valid range is from 40001 to 49999.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
651
The OK button checks the data for this table entry. If the data is valid the dialog is closed. If the
table data entered is invalid, an error message is displayed and the dialog remains open. The table
entry is invalid if any of the fields is out of range. The data is also invalid if it conflicts with another
entry in the table. Such conflict occurs when the combination of station number, object type, and
object address is not unique. The ordering of items in this table is not important.
The Cancel button closes the dialog without saving changes.
8.6.6 Routing
In a typical application the SCADAPack controller, configured for DNP, will act as a DNP slave
station in a network. The SCADA system will communicate directly with all the DNP slave stations
in the SCADA system.
DNP routing is a method for routing, or forwarding, of messages received from the SCADA system,
through the SCADAPack controller, to a remote DNP slave station. The SCADAPack DNP slave
station will respond to all messages sent to it from the SCADA system, as well as broadcast
messages. When it receives a message that is not sent to it the message is sent on the serial port
defined in the routing table. See Chapter 8.3 for an explanation of using and configuring DNP
Routing.
The advantage of this routing ability is that the SCADA system can communicate directly with the
SCADAPack controller and the SCADAPack controller can handle the communication to remote
DNP slave stations.
The DNP Routing table displays each routing translation as a row, with column headings, in the
table. Entries may be added, edited or deleted using the button selections on the table. The table will
hold a maximum of 128 entries.
The DNP Routing property page is selected for editing by clicking DNP Routing in the tree control
section of the DNP Settings window. When selected the DNP Routing property page is displayed.
Notes:
- Routing must be enabled for the controller serial port in order to enable DNP routing.
- TelePACE version 2.63 cannot open files created with version 2.64, unless the Routing table is
empty.
- TelePACE version 2.64 cannot open files created with version 2.65, unless the Routing table is
empty.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
652
The Station column displays the address of the remote DNP station.
The Port column displays the serial communications port, which should be used to communicate
with this DNP station.
The Retries column displays the maximum number of Data Link retries, which should be used for
this DNP station in the case of communication errors.
The Timeout column displays the maximum time (in milliseconds) to wait for a Data Link response
before retrying or failing the message.
The IP Address column displays the IP address of the remote DNP station.
The OK button saves the table data. No error checking is done on the table data.
The Cancel button closes the dialog without saving changes.
Select the Add button to enter a new row in the DNP Routing table. Selecting the Add button opens
the Add/Edit DNP Route dialog.
Select the Edit button to modify the selected row in the DNP Routing table. Selecting the Edit button
opens the Add/Edit DNP Route dialog containing the data from the selected row. This button is
disabled if more than one row is selected. This button is disabled if there are no entries in the table.
The Delete button removes the selected rows from the table. This button is disabled if there are no
entries in the table.
The Allow Duplicate Modbus Addresses checkbox determines if the Modbus I/O database
addresses assigned to the DNP data points must be unique. Check this box if you want to allow more
than one point to use the same Modbus address.
Click on the column headings to sort the data. Clicking once sorts the data in ascending order.
Clicking again sorts the data in descending order.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
653
8.6.6.1 Add/Edit DNP Route Dialog
This dialog is used to edit an entry or add a new entry in the DNP Routing table.
The Station edit control displays the address of the remote DNP station. Valid values for this field
are from 0 to 65519.
The Port combo box displays the communications port, which should be used to communicate with
the remote DNP station. This combo box contains list of the valid communications ports, which will
depend on the type of controller. For SCADAPack 330, SCADAPack 334, SCADAPack 350,
SCADAPack 32 and SCADAPack 32P controllers the list will contain DNP in TCP and DNP in
UDP in addition to the serial port designations, COM1, COM2 etc.
The IP Address edit control is only enabled if the controller type is a SCADAPack 330,
SCADAPack 334, SCADAPack 350, SCADAPack 32 or SCADAPack 32P. Enter the IP address of
the remote DNP station.
The Data Link Retries edit control displays the maximum number of Data Link retries which
should be used for this DNP station in the case of communication errors. This field overrides the
Data Link Retries field in the global DNP parameters set in the Data Link Layer configuration. Valid
values for this field are 0 to 255.
The Data Link Timeout edit control displays the maximum time (in milliseconds) to wait for a Data
Link response before retrying or failing the message. This field overrides the Data Link Timeout
field in the global DNP parameters in the Data Link Layer configuration. Valid values for this field
are 100 to 60000, in multiples of 100.
The phone number parameters allow automatic dialing for stations that use dial-up ports. The Phone
Number parameters are enabled only when the Port selected is a serial port.
The Primary Phone Number is the dialing string that will be used for the primary connection to the
station. The controller will make 1 or more attempts, as configured in the Application layer, to
connect using this number. If this connection fails then the Secondary Phone Number will be dialed,
if it is entered.
Valid values are any ASCII string. The maximum length is 32 characters. Leave this blank if you are
not using a dial-up connection. The default value is blank. The serial port type must be set to RS-232
Modem for dial-up operation.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
654
The Secondary Phone Number is the dialing string that will be used for the secondary connection
to the station. The controller will make 1 or more attempts, as configured in the Application layer, to
connect using this number. This number is used after the primary connection fails on all attempts.
Valid values are any ASCII string. The maximum length is 32 characters. Leave this blank if you are
not using a dial-up connection. The default value is blank. The serial port type must be set to RS-232
Modem for dial-up operation.
The OK button checks the data for this table entry. If the data is valid the dialog is closed. If the
table data entered is invalid, an error message is displayed and the dialog remains open. The table
entry is invalid if any of the fields is out of range. The data is also invalid if it conflicts with another
entry in the table.
The Cancel button closes the dialog without saving changes.
8.6.6.2 Dynamic Routing
In addition to the configured routing table, there is an internal dynamic routing entry. This entry is
not shown in the routing table. The dynamic routing entry listens to incoming messages and learns
the address of the remote station and the communication port used for communicating with it.
If there is no entry in the routing table, the RTU will use the dynamic routing entry to respond to a
message on the same communication port as the incoming message.
The dynamic routing entry is not cleared on initialization. This is deliberate, and is important for
controllers that need to be remotely reconfigured. In this case the host can initialize the controller
without losing the communications link.
Note: Dynamic routing should not be used in a master station. Configure all slave stations in the
routing table.
8.6.7 Binary Inputs Configuration
The Binary Inputs property page is selected for editing by clicking Binary Inputs in the tree control
section of the DNP Settings window. When selected the Binary Inputs property page is active.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
655
Binary Inputs parameters are set in this property page. Each parameter is described in the following
paragraphs.
The Number of Points displays number of binary inputs reported by this RTU. This value will
increment with the addition of each configured Binary Input point. The maximum number of points
is 9999. The maximum number of actual points will depend on the memory available in the
controller.
The Starting Address parameter specifies the starting DNP address of the first Binary Input point.
The Event Reporting Method selection specifies how binary input events are reported. A Change
Of Stateevent is an event object, without time, that is generated when the point changes state. Only
one event is retained in the buffer for each point. If a subsequent event occurs for a point, the
previous event object will be overwritten. The main purpose of this mode is to allow a master station
to efficiently poll for changed data. A Log All Events is event object with absolute time will be
generated when the point changes state. All events will be retained. The main purpose of this mode is
to allow a master station to obtain a complete historical data log. The selections are:
- Change of State
- Log All Events
The Event Buffer Size parameter specifies the maximum number of binary input change events
buffered by the RTU. The buffer holds all binary input change events, regardless of the class to
which they are assigned. If the buffer is completely full the RTU will lose the oldest events and
retain the newest; the Event Buffer Overflowed IIN flag will also be set to indicate that the buffer
has overflowed. The Event Buffer size should be at least equivalent to the number of binary inputs
defined as Change of State type. This will allow all binary inputs to change simultaneously without
losing any events. The value of this parameter depends on how often binary input change events
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
656
occur and the rate at which the events are reported to the master station. The valid values for this
parameter are 0 - 65535. Default value is 16.
The Allow Duplicate Modbus Addresses checkbox determines if the Modbus I/O database
addresses assigned to the DNP data points must be unique. Check this box if you want to allow more
than one point to use the same Modbus address.
8.6.7.1 Adding Binary Inputs
Binary Inputs are added to the DNP configuration using the Binary Input property page. To add a
Binary Input:
- Select Binary Inputs in the tree control section of the DNP Settings window.
- Click the Add button in the Binary Inputs property page.
- The Binary Input property page is now displayed.
- Edit the Binary Input parameters as required and then click the Add button.
As Binary Inputs are defined they are added as leaves to the Binary Inputs branch of the tree control.
When Binary Inputs are defined the Binary Inputs branch will display a collapse / expand control to
the left of the branch. Click this control to display all defined Binary Inputs.
The Binary Input parameters are described in the following paragraphs.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
657
The DNP Address window displays the DNP Binary Input address of the point. Each Binary Input is
assigned a DNP address as they are defined. The DNP point address starts at the value defined in the
Binary Inputs configuration dialog and increments by one with each defined Input.
The Modbus Address parameter specifies the Modbus address of the Binary Input assigned to the
DNP Address. The SCADAPack and Micro16 controllers use Modbus addressing for all digital
inputs. Refer to the I /O Database Registers section of the TelePACE Ladder Logic Reference and
User Manual for complete information on digital input addressing in the SCADAPack and Micro16
controllers. Valid Modbus addresses are:
- 00001 through 09999
- 10001 through 19999
The Class of Event Object parameter specifies the event object class the Binary Input is assigned.
The selections are:
- None
- Class 1
- Class 2
- Class 3
The Debounce parameter limits the frequency of change events. The input must remain in the same
state for the debounce time for a change of state to be detected. Note that the input is sampled every
0.1s. Changes shorter than the sample time cannot be detected. Valid values are 0 to 65535 tenths of
seconds. The value 0 means no debounce. The default value is 0.
The Allow Duplicate Modbus Addresses checkbox determines if the Modbus I/O database
addresses assigned to the DNP data points must be unique. Check this box if you want to allow more
than one point to use the same Modbus address.
Click the OK button to accept the Binary Input parameters and close the DNP Settings dialog.
Click the Cancel button to close the dialog without saving any changes.
Click the Add button to add the current Binary Input to the DNP configuration.
Click the Copy button to copy the current Binary Input parameters to the next DNP Address.
Click the Delete button to delete the current Binary Input.
Click the Move Up button to move the current Binary Input up one position in the tree control
branch.
Click the Move Down button to move the current Binary Input down one position in the tree control
branch.
8.6.8 Binary Outputs Configuration
The Binary Outputs property page is selected for editing by clicking Binary Outputs in the tree
control section of the DNP Settings window. When selected the Binary Outputs property page is
active.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
658
Binary Outputs parameters are viewed in this property page.
The Number of Points displays the number of binary outputs reported by this RTU. This value will
increment with the addition of each configured Binary Output point. The maximum number of points
is 9999. The maximum number of actual points will depend on the memory available in the
controller.
The Starting Address parameter specifies the starting DNP address of the first Binary Output point.
The Allow Duplicate Modbus Addresses checkbox determines if the Modbus I/O database
addresses assigned to the DNP data points must be unique. Check this box if you want to allow more
than one point to use the same Modbus address.
8.6.8.1 Adding Binary Outputs
Binary Outputs are added to the DNP configuration using the Binary Output property page. To add a
Binary Output:
- Select Binary Outputs in the tree control section of the DNP Settings window.
- Click the Add button in the Binary Outputs property page.
- The Binary Output property page is now displayed.
- Edit the Binary Output parameters as required and then click the Add button.
As Binary Outputs are defined they are added as leaves to the Binary Outputs branch of the tree
control. When Binary Outputs are defined the Binary Outputs branch will display a collapse / expand
control to the left of the branch. Click this control to display all defined Binary Outputs.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
659
The Binary Output parameters are described in the following paragraphs.
The DNP Address window displays the DNP Binary Output address of the point. Each Binary
Output is assigned a DNP address as they are defined. The DNP point address starts at the value
defined in the Binary Outputs dialog and increments by one with each defined Output.
The Modbus Address 1 parameter specifies the Modbus address of the Binary Output assigned to
the DNP Address. The SCADAPack and Micro16 controllers use Modbus addressing for all digital
outputs. Refer to the I /O Database Registers section of the TelePACE Ladder Logic Reference
Manual for complete information on digital output addressing in the SCADAPack and Micro16
controllers. Valid Modbus addresses are:
- 00001 through 09999
The Modbus Address 2 parameter specifies the second Modbus address of the second Binary
Output assigned to the DNP Address when the Paired control type is selected. This selection is not
active when the control type is Not Paired. Valid Modbus addresses are:
- 00001 through 09999
The Control Type parameter specifies whether the Binary Output is a paired control or not. If it is a
paired control, i.e. trip/close output type, this means that the DNP address is associated to two
physical control outputs and requires two Modbus addresses per DNP address. Control type
selections are:
- Paired
- Not Paired
The Allow Duplicate Modbus Addresses checkbox determines if the Modbus I/O database
addresses assigned to the DNP data points must be unique. Check this box if you want to
allow more than one point to use the same Modbus address.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
660
Click the OK button to accept the Binary Output parameters and close the DNP Settings dialog.
Click the Cancel button to close the dialog without saving any changes.
Click the Add button to add the current Binary Output to the DNP configuration.
Click the Copy button to copy the current Binary Output parameters to the next DNP Address.
Click the Delete button to delete the current Binary Output.
Click the Move Up button to move the current Binary Output up one position in the tree control
branch.
Click the Move Down button to move the current Binary Output down one position in the tree
control branch.
8.6.9 16Bit Analog Inputs Configuration
The 16-Bit Analog Inputs property page is selected for editing by clicking 16-Bit Analog Inputs in
the tree control section of the DNP Settings window. When selected the 16-Bit Analog Inputs
property page is active.
16-Bit Analog Inputs parameters are set in this property page. Each parameter is described in the
following paragraphs.
The Number of Points displays the number of 16 bit analog inputs reported by the RTU. This value
will increment with the addition of each configured 16-Bit Analog Input point. The maximum
number of points is 9999. The maximum number of actual points will depend on the memory
available in the controller.
The Starting Address parameter specifies the DNP address of the first 16-bit Analog Input point.
The Event Reporting Method selection specifies how 16-bit Analog Input events are reported. A
Change Of Stateevent is an event object, without time, that is generated when the point changes
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
661
state. Only one event is retained in the buffer for each point. If a subsequent event occurs for a point,
the previous event object will be overwritten. The main purpose of this mode is to allow a master
station to efficiently poll for changed data. A Log All Events event object with absolute time will be
generated when the point changes state. All events will be retained. The main purpose of this mode is
to allow a master station to obtain a complete historical data log. The selections are:
- Change of State
- Log All Events
The Event Buffer Size parameter specifies the maximum number of 16-Bit Analog Input change
events buffered by the RTU. The buffer holds all 16-Bit Analog Input events, regardless of the class
to which they are assigned. If the buffer is completely full the RTU will lose the oldest events and
retain the newest; the Event Buffer Overflowed IIN flag will also be set to indicate that the buffer
has overflowed. The Event Buffer size should be at least equivalent to the number of 16-Bit Analog
Inputs defined as Change of State type. That will allow all 16-Bit Analog Inputs to exceed the
deadband simultaneously without losing any events. The value of this parameter is dependent on
how often 16-Bit Analog Input events occur and the rate at which the events are reported to the
master station. The valid values for this parameter are 0 - 65535. Default value is 16.
For SCADAPack 32 and SCADAPack 32P controllers analog input events are processed by the DNP
driver at a rate of 100 events every 100 ms. If more than 100 analog input events need to be
processed they are processed sequentially in blocks of 100 until all events are processed. This allows
the processing of 1000 analog input events per second.
For SCADASense Series of controllers, SCADAPack 100, SCADAPack LP, SCADAPack and
Micro16 controllers analog input events are processed by the DNP driver at a rate of 20 events every
100 ms. If more than 20 analog input events need to be processed they are processed sequentially in
blocks of 20 until all events are processed. This allows the processing of 200 analog input events per
second.
The Allow Duplicate Modbus Addresses checkbox determines if the Modbus I/O database
addresses assigned to the DNP data points must be unique. Check this box if you want to allow more
than one point to use the same Modbus address.
8.6.9.1 Adding 16-Bit Analog Inputs
16-Bit Analog Inputs are added to the DNP configuration using the 16-Bit Analog Input property
page. To add a 16-Bit Analog Input:
- Select 16-Bit Analog Inputs in the tree control section of the DNP Settings window.
- Click the Add button in the 16-Bit Analog Inputs property page.
- The 16-Bit Analog Input property page is now displayed.
- Edit the 16-Bit Analog Input parameters as required and then click the Add button.
As 16-Bit Analog Inputs are defined they are added as leaves to the 16-Bit Analog Inputs branch of
the tree control. When 16-Bit Analog Inputs are defined the 16-Bit Analog Inputs branch will display
a collapse / expand control to the left of the branch. Click this control to display all defined 16-Bit
Analog Inputs.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
662
The 16-Bit Analog Input parameters are described in the following paragraphs.
The DNP Address window displays the DNP 16-Bit Analog Input address of the point. Each 16-Bit
Analog Input is assigned a DNP address as they are defined. The DNP point address starts at the
value set in the 16-bit Analog Input configuration dialog and increments by one with each defined
16-Bit Analog Input.
The Modbus Address parameter specifies the Modbus address of the 16-Bit Analog Input assigned
to the DNP Address. The SCADAPack and Micro16 controllers use Modbus addressing for all
analog inputs. Refer to the I /O Database Registers section of the TelePACE Ladder Logic
Reference and User Manual for complete information on analog input addressing in the
SCADAPack and Micro16 controllers. Valid Modbus addresses are:
- 30001 through 39999
- 40001 through 49999
The Class of Event Object parameter specifies the event object class assigned to the 16-Bit Analog
Input is assigned. If Unsolicited reporting is not required for a point, it is recommended to set its
Class to None. All data points automatically become members of Class 0 or None (static data). The
selections are:
- None
- Class 1
- Class 2
- Class 3
The Deadband parameter specifies the minimum number of counts that the 16-Bit Analog Input
must change since it was last reported in order to generate an event. Valid deadband values are 0 to
65535. A deadband of zero will cause any change to create an event.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
663
The Allow Duplicate Modbus Addresses checkbox determines if the Modbus I/O database
addresses assigned to the DNP data points must be unique. Check this box if you want to allow more
than one point to use the same Modbus address.
Click the OK button to accept the 16-Bit Analog Input parameters and close the DNP Settings
dialog.
Click the Cancel button to close the dialog without saving any changes.
Click the Add button to add the current 16-Bit Analog Input to the DNP configuration.
Click the Copy button to copy the current 16-Bit Analog Input parameters to the next DNP Address.
Click the Delete button to delete the current 16-Bit Analog Input.
Click the Move Up button to move the current 16-Bit Analog Input up one position in the tree
control branch.
Click the Move Down button to move the current 16-Bit Analog Input down one position in the tree
control branch.
8.6.10 32-Bit Analog Inputs Configuration
The 32-Bit Analog Inputs property page is selected for editing by clicking 32-Bit Analog Inputs in
the tree control section of the DNP Settings window. When selected the 32-Bit Analog Inputs
property page is active.
32-Bit Analog Inputs parameters are set in this property page. Each parameter is described in the
following paragraphs.
The Number of Points displays the number of 32- bit analog inputs reported by the RTU. This value
will increment with the addition of each configured 32-Bit Analog Input point. The maximum
number of points is 9999. The maximum number of actual points will depend on the memory
available in the controller.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
664
The Starting Address parameter specifies the DNP address of the first 32-bit Analog Input point.
The Event Reporting Method selection specifies how 32-bit Analog Input events are reported. A
Change Of Stateevent is an event object, without time, that is generated when the point changes
state. Only one event is retained in the buffer for each point. If a subsequent event occurs for a point,
the previous event object will be overwritten. The main purpose of this mode is to allow a master
station to efficiently poll for changed data. A Log All Events is event object with absolute time will
be generated when the point changes state. All events will be retained. The main purpose of this
mode is to allow a master station to obtain a complete historical data log. The selections are:
- Change of State
- Log All Events
The Event Buffer Size parameter specifies the maximum number of 32-Bit Analog Input change
events buffered by the RTU. The buffer holds all 32-Bit Analog Input events, regardless of the class
to which they are assigned. If the buffer is completely full the RTU will lose the oldest events and
retain the newest; the Event Buffer Overflowed IIN flag will also be set to indicate that the buffer
has overflowed. The Event Buffer size should be at least equivalent to the number of 32-Bit Analog
Inputs defined as Change of State type. That will allow all 32-Bit Analog Inputs to exceed the
deadband simultaneously without losing any events. The value of this parameter is dependent on
how often 32-Bit Analog Input events occur and the rate at which the events are reported to the
master station. The valid values for this parameter are 0 - 65535. Default value is 16.
For SCADAPack 32 and SCADAPack 32P controllers analog input events are processed by the DNP
driver at a rate of 100 events every 100 ms. If more than 100 analog input events need to be
processed they are processed sequentially in blocks of 100 until all events are processed. This allows
the processing of 1000 analog input events per second.
For SCADASense Series of controllers, SCADAPack 100, SCADAPack LP, SCADAPack and
Micro16 controllers analog input events are processed by the DNP driver at a rate of 20 events every
100 ms. If more than 20 analog input events need to be processed they are processed sequentially in
blocks of 20 until all events are processed. This allows the processing of 200 analog input events per
second.
The Word Order selection specifies the word order of the 32-bit value. The selections are:
- TelePACE Least Significant Word in first register.
- ISaGRAF Most Significant Word in first register.
The Allow Duplicate Modbus Addresses checkbox determines if the Modbus I/O database
addresses assigned to the DNP data points must be unique. Check this box if you want to allow more
than one point to use the same Modbus address.
8.6.10.1 Adding 32-Bit Analog Inputs
32-Bit Analog Inputs are added to the DNP configuration using the 16-Bit Analog Input property
page. To add a 32-Bit Analog Input:
- Select 32-Bit Analog Inputs in the tree control section of the DNP Settings window.
- Click the Add button in the 32-Bit Analog Inputs property page.
- The 32-Bit Analog Input property page is now displayed.
- Edit the 32-Bit Analog Input parameters as required and then click the Add button.
As 32-Bit Analog Inputs are defined they are added as leaves to the 32-Bit Analog Inputs branch of
the tree control. When 32-Bit Analog Inputs are defined the 32-Bit Analog Inputs branch will display
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
665
a collapse / expand control to the left of the branch. Click this control to display all defined 32-Bit
Analog Inputs.
The 32-Bit Analog Input parameters are described in the following paragraphs.
The DNP Address window displays the DNP 32-Bit Analog Input address of the point. Each 32-Bit
Analog Input is assigned a DNP address as they are defined. The DNP point address starts at the
value set in the 32-bit Analog Input configuration dialog and increments by one with each defined
32-Bit Analog Input.
The Modbus Address parameter specifies the Modbus addresses of the 32-Bit Analog Input
assigned to the DNP Address. 32-Bit Analog Inputs use two consecutive Modbus registers for each
assigned DNP Address, the address that is entered in this box and the next consecutive Modbus
register. The SCADAPack and Micro16 controllers use Modbus addressing for all analog inputs.
Refer to the I /O Database Registers section of the TelePACE Ladder Logic Reference and User
Manual for complete information on analog input addressing in the SCADAPack and Micro16
controllers. Valid Modbus addresses are:
- 30001 through 39998
- 40001 through 49998
The Class of Event Object parameter specifies the event object class the 32-Bit Analog Input is
assigned. If Unsolicited reporting is not required for a DNP point, it is recommended to set its Class
0 or None. All data points automatically become members of Class 0 or None (static data).The
selections are:
- None
- Class 1
- Class 2
- Class 3
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
666
The Deadband parameter specifies whether the RTU generates events. The value entered is the
minimum number of counts that the 32-Bit Analog Input must change since it was last reported.
Valid deadband values are 0 to 4,294,967,295. A deadband of zero will cause any change to create
an event.
The Allow Duplicate Modbus Addresses checkbox determines if the Modbus I/O database
addresses assigned to the DNP data points must be unique. Check this box if you want to allow more
than one point to use the same Modbus address.
Click the OK button to accept the 32-Bit Analog Input parameters and close the DNP Settings
dialog.
Click the Cancel button to close the dialog without saving any changes.
Click the Add button to add the current 32-Bit Analog Input to the DNP configuration.
Click the Copy button to copy the current 32-Bit Analog Input parameters to the next DNP Address.
Click the Delete button to delete the current 32-Bit Analog Input.
Click the Move Up button to move the current 32-Bit Analog Input up one position in the tree
control branch.
Click the Move Down button to move the current 32-Bit Analog Input down one position in the tree
control branch.
8.6.11 Short Floating Point Analog Inputs
The Short Floating Point Analog Inputs property page is selected for editing by clicking Short
Floating Point Analog Inputs in the tree control section of the DNP Settings window. When selected
the Short Floating Point Analog Inputs property page is active.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
667
Short Floating Point Analog Input parameters are set in this property page. Each parameter is
described in the following paragraphs.
The Number of Points displays the number of Short Floating Point Analog Inputs reported by the
RTU. This value will increment with the addition of each configured Short Floating Point Analog
Input point. The maximum number of points is 9999. The maximum number of actual points will
depend on the memory available in the controller.
The Starting Address parameter specifies the DNP address of the first Short Floating Point Analog
Input point.
The Event Reporting Method selection specifies how Short Floating Point Analog Input events are
reported. A Change Of Stateevent is an event object, without time, that is generated when the point
changes state. Only one event is retained in the buffer for each point. If a subsequent event occurs for
a point, the previous event object will be overwritten. The main purpose of this mode is to allow a
master station to efficiently poll for changed data. A Log All Events is event object with absolute
time will be generated when the point changes state. All events will be retained. The main purpose of
this mode is to allow a master station to obtain a complete historical data log. The selections are:
- Change of State
- Log All Events
The Event Buffer Size parameter specifies the maximum number of Short Floating Point Analog
Input change events buffered by the RTU. The buffer holds all Short Floating Point analog input
events, regardless of the class to which they are assigned. If the buffer is completely full the RTU
will lose the oldest events and retain the newest; the Event Buffer Overflowed IIN flag will also be
set to indicate that the buffer has overflowed. The Event Buffer size should be at least equivalent to
the number of Short Floating point analog inputs defined as Change of State type. That will allow all
Short Floating Analog Point Inputs to exceed the deadband simultaneously without losing any
events. The value of this parameter is dependent on how often Short Floating Point Analog Input
events occur and the rate at which the events are reported to the master station. The valid values for
this parameter are 0 - 65535. Default value is 16.
For SCADAPack 32 and SCADAPack 32P controllers analog input events are processed by the DNP
driver at a rate of 100 events every 100 ms. If more than 100 analog input events need to be
processed they are processed sequentially in blocks of 100 until all events are processed. This allows
the processing of 1000 analog input events per second.
For SCADASense Series of controllers, SCADAPack 100, SCADAPack LP, SCADAPack and
Micro16 controllers analog input events are processed by the DNP driver at a rate of 20 events every
100 ms. If more than 20 analog input events need to be processed they are processed sequentially in
blocks of 20 until all events are processed. This allows the processing of 200 analog input events per
second.
The Word Order selection specifies the word order of the 32-bit value. The selections are:
- TelePACE / ISaGRAF (MSW First) Most Significant Word in first register.
- Reverse (LSW First) Least Significant Word in first register.
The Allow Duplicate Modbus Addresses checkbox determines if the Modbus I/O database
addresses assigned to the DNP data points must be unique. Check this box if you want to allow more
than one point to use the same Modbus address.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
668
8.6.11.1 Adding Short Floating Point Analog Inputs
Short Floating Point Analog Inputs are added to the DNP configuration using the 16-Bit Analog
Input property page. To add a Short Floating Point Analog Input:
- Select Short Floating Point Analog Input in the tree control section of the DNP Settings
window.
- Click the Add button in the Short Floating Point Analog Inputs property page.
- The Short Floating Point Analog Input property page is now displayed.
- Edit the Short Floating Point Analog Input parameters as required and then click the Add button.
As Short Floating Point Analog Inputs are defined they are added as leaves to the Short Floating
Point Analog Inputs branch of the tree control. When Short Floating Point Analog Inputs are defined
the Short Floating Point Analog Inputs branch will display a collapse / expand control to the left of
the branch. Click this control to display all defined Short Floating Point Analog Inputs.
The Short Floating Point Analog Input parameters are described in the following paragraphs.
The DNP Address window displays the DNP Short Floating Point Analog Input address of the
point. Each Short Floating Point Analog Input is assigned a DNP address as they are defined. The
DNP point address starts at the value set in the Short Floating Point Analog Input configuration
dialog and increments by one with each defined Short Floating Point Analog Input.
The Modbus Address parameter specifies the Modbus addresses of the Short Floating Point Analog
Input assigned to the DNP Address. Short Floating Point Analog Inputs use two consecutive Modbus
registers for each assigned DNP Address, the address that is entered in this box and the next
consecutive Modbus register. The SCADAPack and Micro16 controllers use Modbus addressing for
all analog inputs. Refer to the I /O Database Registers section of the TelePACE Ladder Logic
Reference and User Manual for complete information on analog input addressing in the
SCADAPack and Micro16 controllers. Valid Modbus addresses are:
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
669
- 30001 through 39998
- 40001 through 49998
The Class of Event Object parameter specifies the event object class the Short Floating Point Analog
Input is assigned. If Unsolicited reporting is not required for a DNP point, it is recommended to set
its Class 0 or None. The selections are:
- None
- Class 1
- Class 2
- Class 3
The Deadband parameter specifies whether the RTU generates events. The value entered is the
minimum number of counts that the Short Floating Point Analog Input must change since it was last
reported. Setting this value to zero disables generating events for the Short Floating Point Analog
Inputs.
The Allow Duplicate Modbus Addresses checkbox determines if the Modbus I/O database
addresses assigned to the DNP data points must be unique. Check this box if you want to allow more
than one point to use the same Modbus address.
Click the OK button to accept the Short Floating Point Analog Input parameters and close the DNP
Settings dialog.
Click the Cancel button to close the dialog without saving any changes.
Click the Add button to add the current Short Floating Point Analog Input to the DNP configuration.
Click the Copy button to copy the current Short Floating Point Analog Input parameters to the next
DNP Address.
Click the Delete button to delete the current Short Floating Point Analog Input.
Click the Move Up button to move the current Short Floating Point Analog Input up one position in
the tree control branch.
Click the Move Down button to move the current Short Floating Point Analog Input down one
position in the tree control branch.
8.6.12 16-Bit Analog Outputs Configuration
The 16-Bit Analog Outputs property page is selected for editing by clicking 16-Bit Analog Outputs
in the tree control section of the DNP Settings window. When selected the 16-Bit Analog Outputs
property page is active.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
670
16-Bit Analog Outputs parameters are viewed in this property page.
The Number of Points displays the number of 16-Bit Analog Outputs reported by this RTU. This
value will increment with the addition of each configured 16-Bit Analog Input point. The maximum
number of points is 9999. The maximum number of actual points will depend on the memory
available in the controller.
The Starting Address parameter specifies the DNP address of the first 16-bit Analog Output point.
The Allow Duplicate Modbus Addresses checkbox determines if the Modbus I/O database
addresses assigned to the DNP data points must be unique. Check this box if you want to allow more
than one point to use the same Modbus address.
8.6.12.1 Adding 16-Bit Analog Outputs
16-Bit Analog Outputs are added to the DNP configuration using the 16-Bit Analog Outputs
property page. To add a 16-Bit Analog Output:
- Select 16-Bit Analog Outputs in the tree control section of the DNP Settings window.
- Click the Add button in the 16-Bit Analog Outputs property page.
- The 16-Bit Analog Output property page is now displayed.
- Edit the 16-Bit Analog Outputs parameters as required and then click the Add button.
As 16-Bit Analog Outputs are defined they are added as leaves to the 16-Bit Analog Output branch
of the tree control. When 16-Bit Analog Outputs are defined the 16-Bit Analog Outputs branch will
display a collapse / expand control to the left of the branch. Click this control to display all defined
16-Bit Analog Outputs.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
671
The 16-Bit Analog Outputs parameters are described in the following paragraphs.
The DNP Address window displays the DNP 16-Bit Analog Output address of the point. Each 16-
Bit Analog Output is assigned a DNP address as they are defined. The DNP point address starts at
the value set in the 16-bit Analog Output configuration dialog and increments by one with each
defined 16-Bit Analog Output.
The Modbus Address parameter specifies the Modbus address of the 16-Bit Analog Output assigned
to the DNP Address. The SCADAPack and Micro16 controllers use Modbus addressing for all
analog outputs. Refer to the I /O Database Registers section of the TelePACE Ladder Logic
Reference and User Manual for complete information on analog output addressing in the
SCADAPack and Micro16 controllers. Valid Modbus addresses are:
- 40001 through 49999
The Allow Duplicate Modbus Addresses checkbox determines if the Modbus I/O database
addresses assigned to the DNP data points must be unique. Check this box if you want to allow more
than one point to use the same Modbus address.
Click the OK button to accept the 16-Bit Analog Output parameters and close the DNP Settings
dialog.
Click the Cancel button to close the dialog without saving any changes.
Click the Add button to add the current 16-Bit Analog Output to the DNP configuration.
Click the Copy button to copy the current 16-Bit Analog Output parameters to the next DNP
Address.
Click the Delete button to delete the current 16-Bit Analog Output.
Click the Move Up button to move the current 16-Bit Analog Output up one position in the tree
control branch.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
672
Click the Move Down button to move the current 16-Bit Analog Output down one position in the
tree control branch.
8.6.13 32-Bit Analog Outputs Configuration
The 32-Bit Analog Outputs property page is selected for editing by clicking 32-Bit Analog Outputs
in the tree control section of the DNP Settings window. When selected the 32-Bit Analog Outputs
property page is active.
32-Bit Analog Outputs parameters are viewed in this property page.
The Number of Points displays the number of 32-Bit Analog Outputs reported by this RTU. This
value will increment with the addition of each configured 32-Bit Analog Output point. The
maximum number of points is 9999. The maximum number of actual points will depend on the
memory available in the controller.
The Starting Address parameter specifies the DNP address of the first 16-bit Analog Output point.
The Word Order selection specifies the word order of the 32-bit value. The selections are:
- TelePACE Least Significant Word in first register.
- ISaGRAF Most Significant Word in first register.
The Allow Duplicate Modbus Addresses checkbox determines if the Modbus I/O database
addresses assigned to the DNP data points must be unique. Check this box if you want to allow more
than one point to use the same Modbus address.
8.6.13.1 Adding 32-Bit Analog Outputs
32-Bit Analog Outputs are added to the DNP configuration using the 32-Bit Analog Outputs
property page. To add a 32-Bit Analog Output:
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
673
- Select 32-Bit Analog Outputs in the tree control section of the DNP Settings window.
- Click the Add button in the 16-Bit Analog Outputs property page.
- The 32-Bit Analog Output property page is now displayed.
- Edit the 32-Bit Analog Outputs parameters as required and then click the Add button.
As 32-Bit Analog Outputs are defined they are added as leaves to the Binary Inputs branch of the
tree control. When 32-Bit Analog Outputs are defined the 32-Bit Analog Outputs branch will display
a collapse / expand control to the left of the branch. Click this control to display all defined 32-Bit
Analog Outputs.
The 32-Bit Analog Outputs parameters are described in the following paragraphs.
The DNP Address window displays the DNP 32-Bit Analog Output address of the point. Each 16-
Bit Analog Output is assigned a DNP address s they are defined. The DNP point address starts at the
value set in the 32-bit Analog Output configuration dialog and increments by one with each defined
32-Bit Analog Output.
The Modbus Address parameter specifies the Modbus address of the 32-Bit Analog Output assigned
to the DNP Address. 32-Bit Analog Outputs use two consecutive Modbus registers for each assigned
DNP Address, the address that is entered in this box and the next consecutive Modbus register. The
SCADAPack and Micro16 controllers use Modbus addressing for all analog outputs. Refer to the I /O
Database Registers section of the TelePACE Ladder Logic Reference and User Manual for
complete information on analog output addressing in the SCADAPack and Micro16 controllers.
Valid Modbus addresses are:
- 40001 through 49998
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
674
The Allow Duplicate Modbus Addresses checkbox determines if the Modbus I/O database
addresses assigned to the DNP data points must be unique. Check this box if you want to allow more
than one point to use the same Modbus address.
Click the OK button to accept the 16-Bit Analog Output parameters and close the DNP Settings
dialog.
Click the Cancel button to close the dialog without saving any changes.
Click the Add button to add the current 32-Bit Analog Output to the DNP configuration.
Click the Copy button to copy the current 32-Bit Analog Output parameters to the next DNP
Address.
Click the Delete button to delete the current 32-Bit Analog Output.
Click the Move Up button to move the current 32-Bit Analog Output up one position in the tree
control branch.
Click the Move Down button to move the current 32-Bit Analog Output down one position in the
tree control branch.
8.6.14 Short Floating Point Analog Outputs
The Short Floating Point Analog Outputs property page is selected for editing by clicking Short
Floating Point Analog Outputs in the tree control section of the DNP Settings window. When
selected the Short Floating Point Analog Outputs property page is active.
Short Floating Point Analog Output parameters are set in this property page. Each parameter is
described in the following paragraphs.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
675
The Number of Points displays the number of Short Floating Point Analog Outputs reported by the
RTU. This value will increment with the addition of each configured Short Floating Point Analog
Input point. The maximum number of points is 9999. The maximum number of actual points will
depend on the memory available in the controller.
The Starting Address parameter specifies the DNP address of the first Short Floating Point Analog
Output point.
The Word Order selection specifies the word order of the 32-bit value. The selections are:
- TelePACE / ISaGRAF (MSW First) Most Significant Word in first register.
- Reverse (LSW First) Least Significant Word in first register.
The Allow Duplicate Modbus Addresses checkbox determines if the Modbus I/O database
addresses assigned to the DNP data points must be unique. Check this box if you want to allow more
than one point to use the same Modbus address.
8.6.14.1 Adding Short Floating Point Analog Outputs
Short Floating Point Analog Outputs are added to the DNP configuration using the Short Floating
Point Analog Output property page. To add a Short Floating Point Analog Output:
- Select Short Floating Point Analog Output in the tree control section of the DNP Settings
window.
- Click the Add button in the Short Floating Point Analog Inputs property page.
- The Short Floating Point Analog Output property page is now displayed.
- Edit the Short Floating Point Analog Output parameters as required and then click the Add
button.
As Short Floating Point Analog Outputs are defined they are added as leaves to the Short Floating
Point Analog Outputs branch of the tree control. When Short Floating Point Analog Outputs are
defined the Short Floating Point Analog Outputs branch will display a collapse / expand control to
the left of the branch. Click this control to display all defined Short Floating Point Analog Outputs.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
676
The Short Floating Point Analog Output parameters are described in the following paragraphs.
The DNP Address window displays the DNP Short Floating Point Analog Output address of the
point. Each Short Floating Point Analog Output is assigned a DNP address as they are defined. The
DNP point address starts at the value set in the Short Floating Point Analog Output configuration
dialog and increments by one with each defined Short Floating Point Analog Output.
The Modbus Address parameter specifies the Modbus addresses of the Short Floating Point Analog
Output assigned to the DNP Address. Short Floating Point Analog Outputs use two consecutive
Modbus registers for each assigned DNP Address, the address that is entered in this box and the next
consecutive Modbus register. The SCADAPack and Micro16 controllers use Modbus addressing for
all analog inputs. Refer to the I /O Database Registers section of the TelePACE Ladder Logic
Reference and User Manual for complete information on analog input addressing in the
SCADAPack and Micro16 controllers. Valid Modbus addresses are:
- 30001 through 39998
- 40001 through 49998
The Allow Duplicate Modbus Addresses checkbox determines if the Modbus I/O database
addresses assigned to the DNP data points must be unique. Check this box if you want to allow more
than one point to use the same Modbus address.
Click the OK button to accept the Short Floating Point Analog Input parameters and close the DNP
Settings dialog.
Click the Cancel button to close the dialog without saving any changes.
Click the Add button to add the current Short Floating Point Analog Input to the DNP configuration.
Click the Copy button to copy the current Short Floating Point Analog Input parameters to the next
DNP Address.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
677
Click the Delete button to delete the current Short Floating Point Analog Input.
Click the Move Up button to move the current Short Floating Point Analog Input up one position in
the tree control branch.
Click the Move Down button to move the current Short Floating Point Analog Input down one
position in the tree control branch.
8.6.15 16Bit Counter Inputs Configuration
The 16-Bit Counter Inputs property page is selected for editing by clicking 16-Bit Counter Inputs in
the tree control section of the DNP Settings window. When selected the 16-Bit Counter Inputs
property page is active.
16-Bit Counter Inputs parameters are set in this property page. Each parameter is described in the
following paragraphs.
The Number of Points displays the number of 16-Bit Counter Inputs reported by the RTU. This
value will increment with the addition of each configured 16-Bit Counter Inputs point. The
maximum number of points is 9999. The maximum number of actual points will depend on the
memory available in the controller.
The Starting Address parameter specifies the DNP address of the first 16-Bit Counter Input point.
The Event Reporting Method selection specifies how 16-Bit Counter Input events are reported. A
Change Of Stateevent is an event object, without time, that is generated when the point changes
state. Only one event is retained in the buffer for each point. If a subsequent event occurs for a point,
the previous event object will be overwritten. The main purpose of this mode is to allow a master
station to efficiently poll for changed data. A Log All Events is event object with absolute time will
be generated when the point changes state. All events will be retained. The main purpose of this
mode is to allow a master station to obtain a complete historical data log. The selections are:
- Change of State
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
678
- Log All Events
The Event Buffer Size parameter specifies the maximum number of 16-Bit Counter Input change
without time events buffered by the RTU. The buffer holds all 16-Bit Counter Input events,
regardless of the class to which they are assigned. If the buffer fills to 90 percent the RTU will send a
buffer overflow event to the master station. If the buffer is completely full the RTU will lose the
oldest events and retain the newest. The Event Buffer size should be at least equivalent to the
number of 16-Bit Analog Inputs defined as Change of State type. That will allow all 16-Bit Counter
Inputs to exceed the threshold simultaneously without losing any events. The value of this parameter
is dependent on how often 16-Bit Counter Input events occur and the rate at which the events are
reported to the master station. The valid values for this parameter are 0 - 65535. Default value is 16.
For SCADAPack 32 and SCADAPack 32P controllers counter input events are processed by the
DNP driver at a rate of 100 events every 100 ms. If more than 100 counter input events need to be
processed they are processed sequentially in blocks of 100 until all events are processed. This allows
the processing of 1000 counter input events per second.
For SCADASense Series of controllers, SCADAPack 100, SCADAPack LP, SCADAPack and
Micro16 controllers counter input events are processed by the DNP driver at a rate of 20 events
every 100 ms. If more than 20 counter input events need to be processed they are processed
sequentially in blocks of 20 until all events are processed. This allows the processing of 200 counter
input events per second.
The Allow Duplicate Modbus Addresses checkbox determines if the Modbus I/O database
addresses assigned to the DNP data points must be unique. Check this box if you want to allow more
than one point to use the same Modbus address.
8.6.15.1 Adding 16-Bit Counter Inputs
16-Bit Counter Inputs are added to the DNP configuration using the 16-Bit Counter Inputs property
page. To add a 16-Bit Counter Input:
- Select 16-Bit Counter Inputs in the tree control section of the DNP Settings window.
- Click the Add button in the 16-Bit Counter Inputs property page.
- The 16-Bit Counter Input property page is now displayed.
- Edit the 16-Bit Counter Inputs parameters as required and then click the Add button.
As 16-Bit Counter Inputs are defined they are added as leaves to the 16-Bit Counter Inputs branch of
the tree control. When 16-Bit Counter Inputs are defined the 16-Bit Counter Inputs branch will
display a collapse / expand control to the left of the branch. Click this control to display all defined
16-Bit Counter Inputs.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
679
The 16-Bit Counter Input parameters are described in the following paragraphs.
The DNP Address window displays the DNP 16-Bit Counter Input address of the point. Each 16-Bit
Counter Input is assigned a DNP address s they are defined. The DNP point address starts at the
value set in the 16-Bit Counter Input configuration dialog and increments by one with each defined
16-Bit Counter Input.
The Modbus Address parameter specifies the Modbus address of the 16-Bit Counter Input assigned
to the DNP Address. The SCADAPack and Micro16 controllers use Modbus addressing for all
counter inputs. Refer to the I /O Database Registers section of the TelePACE Ladder Logic
Reference and User Manual for complete information on analog input addressing in the
SCADAPack and Micro16 controllers. Valid Modbus addresses are:
- 30001 through 39999
- 40001 through 49999
The Class of Event Object parameter specifies the event object class the 16-Bit Counter Input is
assigned. If Unsolicited reporting is not required for a DNP point, it is recommended to set its Class
0 or None. The selections are:
- None
- Class 1
- Class 2
- Class 3
The Threshold parameter specifies whether the RTU generates events. The value entered is the
minimum number of counts that the 16-Bit Counter Input must change since it was last reported.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
680
Setting this value to zero disables generating events for the 16-Bit Counter Input point. Valid
deadband values are 0 to 65535.
The Allow Duplicate Modbus Addresses checkbox determines if the Modbus I/O database
addresses assigned to the DNP data points must be unique. Check this box if you want to allow more
than one point to use the same Modbus address.
Click the OK button to accept the 16-Bit Analog Counter parameters and close the DNP Settings
dialog.
Click the Cancel button to close the dialog without saving any changes.
Click the Add button to add the current 16-Bit Analog Input to the DNP configuration.
Click the Copy button to copy the current 16-Bit Analog Input parameters to the next DNP Address.
Click the Delete button to delete the current 16-Bit Analog Input.
Click the Move Up button to move the current 16-Bit Analog Input up one position in the tree
control branch.
Click the Move Down button to move the current 16-Bit Analog Input down one position in the tree
control branch.
8.6.16 32-Bit Counter Inputs Configuration
The 32-Bit Counter Inputs property page is selected for editing by clicking 32-Bit Counter Inputs in
the tree control section of the DNP Settings window. When selected the 32-Bit Counter Inputs
property page is active.
32-Bit Counter Inputs parameters are set in this property page. Each parameter is described in the
following paragraphs.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
681
The Number of Points displays the number of 32-Bit Counter Inputs reported by the RTU. This
value will increment with the addition of each configured 32-Bit Counter Inputs point. The
maximum number of points is 9999. The maximum number of actual points will depend on the
memory available in the controller.
The Starting Address parameter specifies the DNP address of the first 32-Bit Counter Input point.
The Event Reporting Method selection specifies how 32-Bit Counter Input events are reported. A
Change Of Stateevent is an event object, without time, that is generated when the point changes
state. Only one event is retained in the buffer for each point. If a subsequent event occurs for a point,
the previous event object will be overwritten. The main purpose of this mode is to allow a master
station to efficiently poll for changed data. A Log All Events is event object with absolute time will
be generated when the point changes state. All events will be retained. The main purpose of this
mode is to allow a master station to obtain a complete historical data log. The selections are:
- Change of State
- Log All Events
The Event Buffer Size parameter specifies the maximum number of 32-Bit Counter Input change
events buffered by the RTU. The buffer holds all 32-Bt Counter Input events, regardless of the class
to which they are assigned. If the buffer is completely full the RTU will lose the oldest events and
retain the newest; the Event Buffer Overflowed IIN flag will also be set to indicate that the buffer
has overflowed. The Event Buffer size should be at least equivalent to the number of 32-Bit Counter
Inputs defined as Change of State type. That will allow all 32-Bit Counter Inputs to exceed the
deadband simultaneously without losing any events. The value of this parameter is dependent on
how often 32-Bit Counter Input events occur and the rate at which the events are reported to the
master station. The valid values for this parameter are 0 - 65535. Default value is 16.
For SCADAPack 32 and SCADAPack 32P controllers counter input events are processed by the
DNP driver at a rate of 100 events every 100 ms. If more than 100 counter input events need to be
processed they are processed sequentially in blocks of 100 until all events are processed. This allows
the processing of 1000 counter input events per second.
For SCADASense Series of controllers, SCADAPack 100, SCADAPack LP, SCADAPack and
Micro16 controllers counter input events are processed by the DNP driver at a rate of 20 events
every 100 ms. If more than 20 counter input events need to be processed they are processed
sequentially in blocks of 20 until all events are processed. This allows the processing of 200 counter
input events per second.
The Word Order selection specifies the word order of the 32-bit value. The selections are:
- TelePACE Least Significant Word in first register.
- ISaGRAF Most Significant Word in first register.
The Allow Duplicate Modbus Addresses checkbox determines if the Modbus I/O database
addresses assigned to the DNP data points must be unique. Check this box if you want to allow more
than one point to use the same Modbus address.
8.6.16.1 Adding 32-Bit Counter Inputs
32-Bit Counter Inputs are added to the DNP configuration using the 16-Bit Counter Input property
page. To add a 32-Bit Analog Input:
- Select 32-Bit Counter Inputs in the tree control section of the DNP Settings window.
- Click the Add button in the 32-Bit Counter Inputs property page.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
682
- The 32-Bit Counter Input property page is now displayed.
- Edit the 32-Bit Counter Input parameters as required and then click the Add button.
As 32-Bit Counter Inputs are defined they are added as leaves to the 32-Bit Counter Inputs branch of
the tree control. When 32-Bit Counter Inputs are defined the 32-Bit Counter Inputs branch will
display a collapse / expand control to the left of the branch. Click this control to display all defined
32-Bit Counter Inputs.
The 32-Bit Counter Input parameters are described in the following paragraphs.
The DNP Address window displays the DNP 32-Bit Counter Input address of the point. Each 32-Bit
Counter Input is assigned a DNP address as they are defined. The DNP point address starts at the
value set in the 32-Bit Counter Input configuration dialog and increments by one with each defined
32-Bit Counter Input.
The Modbus Address parameter specifies the Modbus addresses of the 32-Bit Counter Input
assigned to the DNP Address. 32-Bit Counter Inputs use two consecutive Modbus registers for each
assigned DNP Address, the address that is entered in this box and the next consecutive Modbus
register. The SCADAPack and Micro16 controllers use Modbus addressing for all counter inputs.
Refer to the I /O Database Registers section of the TelePACE Ladder Logic Reference and User
Manual for complete information on analog input addressing in the SCADAPack and Micro16
controllers. Valid Modbus addresses are:
- 30001 through 39998
- 40001 through 49998
The Class of Event Object parameter specifies the event object class the 32-Bit Counter Input is
assigned. If Unsolicited reporting is not required for a DNP point, it is recommended to set its Class
0 or None. The selections are:
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
683
- None
- Class 1
- Class 2
- Class 3
The Threshold parameter specifies whether the RTU generates events. The value entered is the
minimum number of counts that the 32-Bit Counter Input must change since it was last reported.
Setting this value to zero disables generating events for the 32-Bit Counter Input point. Valid
threshold values are 0 to 4,294,967,295.
The Allow Duplicate Modbus Addresses checkbox determines if the Modbus I/O database
addresses assigned to the DNP data points must be unique. Check this box if you want to allow more
than one point to use the same Modbus address.
Click the OK button to accept the 32-Bit Counter Input parameters and close the DNP Settings
dialog.
Click the Cancel button to close the dialog without saving any changes.
Click the Add button to add the current 32-Bit Counter Input to the DNP configuration.
Click the Copy button to copy the current 32-Bit Counter Input parameters to the next DNP Address.
Click the Delete button to delete the current 32-Bit Counter Input.
Click the Move Up button to move the current 32-Bit Counter Input up one position in the tree
control branch.
Click the Move Down button to move the current 32-Bit Counter Input down one position in the
tree control branch.
8.7 DNP Diagnostics
DNP Diagnostics provide Master station and Outstation DNP diagnostics. The diagnostics provide
detailed information on the status of DNP communication and DNP data points. This information is
useful when debugging DNP station and network problems that may arise.
DNP diagnostics are available for local DNP information using the DNP Status command.
- For TelePACE applications select Controller >> DNP Status from the menu bar. See Chapter
8.7 for information on DNP Status diagnostics.
- For ISaGRAF applications select Tools >> Controller >> DNP Status from the program
window menu bar.
SCADAPack 32 controllers support DNP master operations. DNP diagnostics are available for
master stations using the DNP Master Status command.
- For TelePACE applications select Controller >> DNP Master Status from the menu bar. See
section 8.7.2 for information on DNP Master Status diagnostics.
- For ISaGRAF applications select Tools >> Controller >> DNP Master Status from the
program window menu bar.
DNP Diagnostics require firmware version 2.20 or newer for SCADAPack controllers and firmware
version 1.50 or newer for SCADAPack 32 controllers. When an attempt is made to select the DNP
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
684
Status or DNP Master Status command for controllers with firmware that does not support the
commands an error message is displayed. An example of the error message is shown below.
To enable the use of DNP diagnostics you will need to upgrade the firmware in the controller to the
newer version.
8.7.1 DNP Status
When the DNP Status command is selected the DNP Status dialog is displayed. This dialog shows
the run-time DNP diagnostics and current data values for the local DNP points.
The DNP Status dialog has a number of selectable tabs and opens with the Overview tab selected.
The following tabs are displayed.
- Overview
- Binary In (binary inputs information)
- Binary Out (binary outputs information)
- AIN-16 (16-bit analog inputs information)
- AIN-32 (32-bit analog inputs information)
- AIN-Float (short float analog inputs information)
- AOUT-16 (16-bit analog outputs information)
- AOUT-32 (32-bit analog outputs information)
- AOUT-Float (short float analog outputs information)
- Counter-16 (16-bit counter inputs information)
- Counter-32 (32-bit counter inputs information)
Clicking on any tab opens the tab and displays the selected information.
8.7.1.1 Overview Tab
The Overview Tab displays the run-time diagnostics for the local DNP station. The Overview
display is divided into five areas of diagnostic information: DNP Status, Internal Indications,
Communication Statistics, Last Message and Event Buffer. Each of these is explained in the
following paragraphs.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
685
The DNP Status window provides information on the status of the DNP protocol running in the
controller. Depending on the status the window may contain the following text.
- Enabled or Disabled indicates whether the controller firmware supports DNP protocol.
- Configured or Not Configured indicates whether the controller has been configured with DNP
protocol on at least one communications port.
- Running or Not Running indicates whether the DNP tasks are running in the controller.
The Internal Indications window displays the current state of the DNP internal indications (IIN)
flags in the controller. For a detailed description of the IIN flags see the section 8.1.1.1.1 of this
manual. Note that bits 0 7 (the first octet) are displayed on the left, then bits 8 - 15 (second octet)
on the right.
The Communication Statistics window displays the message statistics for each DNP
communication port. The statistics include the total number of messages transmitted and received
and the total number of successes, failures, and failures since last success (which will only be
updated for messages sent by this controller) for each communication port. The counters increment
whenever a new DNP message is sent or received on the port, and roll over after 65535 messages.
- Click the Reset button to reset the counters to zero.
The Last Message window displays information about the most recent DNP message. The
information is updated each time a new message is received or transmitted. The Last Message
window contains the following information.
- Direction displays whether the message was received or transmitted.
- Time displays the time at which the message was received or sent.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
686
- Port displays which communication port was used for the message.
- Source displays the source DNP station address for the message.
- Dest displays the destination DNP station address for the message.
- Length displays the message length in bytes.
- Link Func displays the Link Layer function code.
- Appl Func displays the Application Layer function code.
- IIN displays the Internal indications received with the last message
The Event Buffers window displays the number of events in each type of event buffer and the
allocated buffer size. The event buffers displayed are:
- Binary In (binary inputs)
- AIN-16 (16-bit analog inputs)
- AIN-32 (32-bit analog inputs)
- AIN-Float (floating point analog inputs)
- Counter-16 (16-bit counter inputs)
- Counter-32 (32-bit counter inputs)
- Class 1 (class 1 events)
- Class 2 (class 2 events)
- Class 3 (class 3 events)
8.7.1.2 Point Status Tabs
The point status tabs display the state of each point of the selected type in the controller. The
following tabs are displayed.
- Binary In (binary inputs information)
- Binary Out (binary outputs information)
- AIN-16 (16-bit analog inputs information)
- AIN-32 (32-bit analog inputs information)
- AIN-Float (short float analog inputs information)
- AOUT-16 (16-bit analog outputs information)
- AOUT-32 (32-bit analog outputs information)
- AOUT-Float (short float analog outputs information)
- Counter-16 (16-bit counter inputs information)
- Counter-32 (32-bit counter inputs information)
Each of the tabs displays information in the same format. The example below shows the appearance
of the binary input page.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
687
The DNP Address column shows the DNP address of the point.
The Modbus Address column shows the Modbus register address of the point.
The Value column shows the value of the point. Binary points are shown as OFF or ON. Numeric
points show the numeric value of the point.
8.7.2 DNP Master Status
When the DNP Master Status command is selected the DNP Master Status dialog is displayed. This
dialog shows the run-time DNP diagnostics and status of the DNP outstations and current data values
for the DNP points in these outstations.
The DNP Master Status dialog has a number of selectable tabs and opens with the All Stations tab
selected. The following tabs are displayed.
- All Stations
- Remote Overview
- Binary In (binary inputs information)
- Binary Out (binary outputs information)
- AIN-16 (16-bit analog inputs information)
- AIN-32 (32-bit analog inputs information)
- AIN-Float (short float analog inputs information)
- AOUT-16 (16-bit analog outputs information)
- AOUT-32 (32-bit analog outputs information)
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
688
- AOUT-Float (short float analog outputs information)
- Counter-16 (16-bit counter inputs information)
- Counter-32 (32-bit counter inputs information)
8.7.2.1 All Stations Tab
The All Stations tab displays the run-time communications diagnostics for all outstations polled by
the master or outstations reporting unsolicited data to the master.
The Communication Statistics window displays a list of all outstations and the communication
statistics for each station in the list. The statistics counters increment whenever a new DNP message
is sent or received, and roll over after 65535 messages. The following statistics are displayed.
- DNP Address displays the DNP address of the outstation.
- Successes display the number of successful message transactions between this master and the
corresponding remote station. This number includes master polls to the remote station and
unsolicited responses from the outstation.
- Fails displays the number of failed message transactions between this master and the
corresponding remote station. This counter increments by 1 for a failed message transaction
irrespective of the number of application layer retries.
- FailsNew displays the number failed message transactions between this master and the
corresponding remote station since the last successful poll.
- Msgs Rx displays the number of DNP packets (frames) received from the outstation station. This
number includes frames containing unsolicited responses from the outstation.
- Last Rx Msg Time displays the time the last DNP packet (frame) was received from the
outstation.
- Msgs Tx displays the number of DNP packets (frames) sent to the outstation.
- Last Tx Msg Time displays the time the last DNP packet (frame) was sent to the outstation.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
689
Note: The Msgs Tx and Msgs Rx counters could be greater than or equal to the Successes and
Fails counters.
8.7.2.2 Remote Overview Tab
The Remote Overview tab displays the run-time diagnostics and current data values for a selected
remote station. The data shown is from the image of the data in the master station.
The Remote Station window is where the DNP address of the remote station is entered. When the
Remote station field is changed all data fields on this tab and the following I/O tabs are updated with
the values for the newly selected Remote Station.
The Internal Indications window displays the current state of the DNP internal indications (IIN)
flags for the selected remote station. For a detailed description of the IIN flags see the section
8.1.1.1.1 of this manual.
The Communication Statistics window displays communication statistics for the remote station
selected. The statistics counters increment whenever a new DNP message is sent or received, and roll
over after 65535 messages. The following statistics are displayed.
- Successes displays the number of successful messages received in response to master polls sent
to the station. This number includes unsolicited responses from the outstation.
- Fails displays the number of failed or no responses to master polls sent to the outstation.
- FailsNew displays the number failed or no responses to master polls sent to the outstation since
the last successful poll.
- Msgs Rx displays the number of messages received from the outstation station. This number
includes unsolicited responses from the outstation.
- Last Rx Msg Time displays the time the last message was received from the outstation.
- Msgs Tx displays the number of messages sent to the outstation station.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
690
- Last Tx Msg Time displays the time the last message was sent to the outstation.
Click Reset to reset the counters to zero.
Event Buffers shows the number of events in each type of event buffer and the allocated buffer size.
The buffers shown are for binary inputs, 16-bit analog inputs, 32-bit analog inputs, Floating point
analog inputs, 16-bit counter inputs, and 32-bit counter inputs, and Class 1, 2, and 3 events.
The Event Buffers window displays the number of events in each type of event buffer and the
allocated buffer size for the selected remote station. The event buffers displayed are:
- Binary In (binary inputs)
- AIN-16 (16-bit analog inputs)
- AIN-32 (32-bit analog inputs)
- AIN-Float (floating point analog inputs)
- Counter-16 (16-bit counter inputs)
- Counter-32 (32-bit counter inputs)
- Class 1 (class 1 events)
- Class 2 (class 2 events)
- Class 3 (class 3 events)
Note: Due to a limitation of the DNP3 protocol, an Unsolicited message from an outstation is not
capable of including information stating which data class generated the message. As a result,
all Unsolicited events when received by the master will be counted as Class 1 events. Events
which are polled by the master, however, do contain class information and will be counted in
the Event Buffer for the appropriate class.
8.7.2.3 Remote Point Status Tabs
The point status tabs show the state of each point of the selected type in the remote station selected
on the Remote Overview tab. The values shown are from the image of the remote station in the
master station.
Note: Class 0 polling of an outstation must be enabled in the master in order to allow that
outstations DNP points to be listed on these tabs. This is the only way for the master to
retrieve a complete list of all points in an outstation.
The example below shows the appearance of the Binary In tab.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
691
The DNP Address column shows the DNP address of the point.
The Modbus Address column shows the Modbus register address of the point. This is only relevant
for points that have an address mapping in the master station. For points that have an address
mapping, this will show the Modbus register address of the point. For points which do not have an
address mapping, this will show ---.
The Value column shows the value of the point. Binary points are shows as OFF or ON. Numeric
points show the numeric value of the point.
8.8 DNP Master Device Profile Document
DNP v3.00
DEVICE PROFILE DOCUMENT
Vendor Name: Control Microsystems Inc.
Device Name: SCADAPack controllers
Highest DNP Level Supported:
For Requests 2
For Responses 2
Device Function:
Master Slave
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
692
Notable objects, functions, and/or qualifiers supported in addition to the Highest DNP Levels
Supported (the complete list is described in the attached table):
- Function code 14 (warm restart)
- Function code 20 (Enable Unsolicited Messages) for class 1, 2, 3 objects only.
- Function code 21 (Disable Unsolicited Messages) for class 1, 2, 3 objects only.
- Object 41, variation 1 (32-bit analog output block)
Maximum Data Link Frame Size (octets):
Transmitted 292
Received (must be 292)
Maximum Application Fragment Size (octets):
Transmitted 2048
Received 2048
Maximum Data Link Re-tries:
None
Fixed at
Configurable, range 0 to 255
Maximum Application Layer Re-tries:
None
Configurable, range 0 to 255
Requires Data Link Layer Confirmation:
Never
Always
Sometimes If 'Sometimes', when?
Configurable for Always or Never
Requires Application Layer Confirmation:
Never
Always (not recommended)
When reporting Event Data (Slave devices only)
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
693
When sending multi-fragment responses (Slave devices only)
Sometimes If 'Sometimes', when?
______________________________________________
Configurable for always or only when Reporting Event Data and Unsolicited Messages
Timeouts while waiting for:
Data Link Confirm None Fixed at _________ Variable Configurable
Complete Appl. Fragment None Fixed at _________ Variable Configurable
Application Confirm None Fixed at _________ Variable Configurable
Complete Appl. Response None Fixed at _________ Variable Configurable
Others __________________________________________________________________________
Sends/Executes Control Operations:
WRITE Binary Outputs Never Always Sometimes Configurable
SELECT/OPERATE Never Always Sometimes Configurable
DIRECT OPERATE Never Always Sometimes Configurable
DIRECT OPERATE - NO ACK Never Always Sometimes Configurable
Count > 1 Never Always Sometimes Configurable
Pulse On Never Always Sometimes Configurable
Pulse Off Never Always Sometimes Configurable
Latch On Never Always Sometimes Configurable
Latch Off Never Always Sometimes Configurable
Queue Never Always Sometimes Configurable
Clear Queue Never Always Sometimes Configurable
FILL OUT THE FOLLOWING ITEM FOR MASTER DEVICES ONLY:
Expects Binary Input Change Events:
Either time-tagged or non-time-tagged for a single event
Both time-tagged and non-time-tagged for a single event
Configurable (attach explanation)
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
694
FILL OUT THE FOLLOWING ITEMS FOR SLAVE DEVICES ONLY:
Reports Binary Input Change Events when no
specific variation requested:
Never
Only time-tagged
Only non-time-tagged
Configurable to send both, one or the
other (attach explanation)
Reports time-tagged Binary Input Change Events
when no specific variation requested:
Never
Binary Input Change With Time
Binary Input Change With Relative Time
Configurable (attach explanation)
Sends Unsolicited Responses:
Never
Configurable by class
Only certain objects
Sometimes (attach explanation)
ENABLE/DISABLE UNSOLICITED
Sends Static Data in Unsolicited Responses:
Never
When Device Restarts
When Status Flags Change
No other options are permitted.
Default Counter Object/Variation:
No Counters Reported
Configurable (attach explanation)
Default Object 20
Default Variation 05
Point-by-point list attached
Counters Roll Over at:
No Counters Reported
Configurable (attach explanation)
16 Bits
32 Bits
16 Bits for 16-bit counters
32 Bits for 32-bit counters
Point-by-point list attached
Sends Multi-Fragment Responses: Yes No
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
695
DNP V3.00
DEVICE PROFILE DOCUMENT
IMPLEMENTATION OBJECT
This table describes the objects, function codes and qualifiers used in the device:
OBJECT
REQUEST
(slave must parse)
RESPONSE
(master must parse)
Obj
Var
Description
Func
Codes
(dec)
Qual
Codes
(hex)
Func
Codes
Qual
Codes
(hex)
1
0
Binary Input - All Variations
1
06
1
1
Binary Input
129, 130
00, 01
1
2
Binary Input with Status
129, 130
00, 01
2
0
Binary Input Change - All Variations
1
06,07,08
2
1
Binary Input Change without Time
1
06,07,08
129, 130
17, 28
2
2
Binary Input Change with Time
1
06,07,08
129, 130
17, 28
2
3
Binary Input Change with Relative Time
1
06,07,08
129, 130
17, 28
10
0
Binary Output - All Variations
1
06
10
1
Binary Output
10
2
Binary Output Status
129, 130
00, 01
12
0
Control Block - All Variations
12
1
Control Relay Output Block
3, 4, 5,
6
17, 28
129
echo of
request
12
2
Pattern Control Block
12
3
Pattern Mask
20
0
Binary Counter - All Variations
1, 7, 8,
9, 10
06
20
1
32-Bit Binary Counter
129, 130
00, 01
20
2
16-Bit Binary Counter
129, 130
00, 01
20
3
32-Bit Delta Counter
20
4
16-Bit Delta Counter
20
5
32-Bit Binary Counter without Flag
129, 130
00, 01
20
6
16-Bit Binary Counter without Flag
129, 130
00, 01
20
7
32-Bit Delta Counter without Flag
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
696
DNP V3.00
DEVICE PROFILE DOCUMENT
IMPLEMENTATION OBJECT
This table describes the objects, function codes and qualifiers used in the device:
OBJECT
REQUEST
(slave must parse)
RESPONSE
(master must parse)
Obj
Var
Description
Func
Codes
(dec)
Qual
Codes
(hex)
Func
Codes
Qual
Codes
(hex)
20
8
16-Bit Delta Counter without Flag
21
0
Frozen Counter - All Variations
1
06
21
1
32-Bit Frozen Counter
129, 130
00, 01
21
2
16-Bit Frozen Counter
129, 130
00, 01
21
3
32-Bit Frozen Delta Counter
21
4
16-Bit Frozen Delta Counter
21
5
32-Bit Frozen Counter with Time of Freeze
21
6
16-Bit Frozen Counter with Time of Freeze
21
7
32-Bit Frozen Delta Counter with Time of
Freeze
21
8
16-Bit Frozen Delta Counter with Time of
Freeze
21
9
32-Bit Frozen Counter without Flag
129, 130
00, 01
21
10
16-Bit Frozen Counter without Flag
129, 130
00, 01
21
11
32-Bit Frozen Delta Counter without Flag
21
12
16-Bit Frozen Delta Counter without Flag
22
0
Counter Change Event - All Variations
1
06,07,08
22
1
32-Bit Counter Change Event without Time
129, 130
17, 28
22
2
16-Bit Counter Change Event without Time
129, 130
17, 28
22
3
32-Bit Delta Counter Change Event without
Time
22
4
16-Bit Delta Counter Change Event without
Time
22
5
32-Bit Counter Change Event with Time
22
6
16-Bit Counter Change Event with Time
22
7
32-Bit Delta Counter Change Event with Time
22
8
16-Bit Delta Counter Change Event with Time
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
697
DNP V3.00
DEVICE PROFILE DOCUMENT
IMPLEMENTATION OBJECT
This table describes the objects, function codes and qualifiers used in the device:
OBJECT
REQUEST
(slave must parse)
RESPONSE
(master must parse)
Obj
Var
Description
Func
Codes
(dec)
Qual
Codes
(hex)
Func
Codes
Qual
Codes
(hex)
23
0
Frozen Counter Event - All Variations
23
1
32-Bit Frozen Counter Event without Time
23
2
16-Bit Frozen Counter Event without Time
23
3
32-Bit Frozen Delta Counter Event without Time
23
4
16-Bit Frozen Delta Counter Event without Time
23
5
32-Bit Frozen Counter Event with Time
23
6
16-Bit Frozen Counter Event with Time
23
7
32-Bit Frozen Delta Counter Event with Time
23
8
16-Bit Frozen Delta Counter Event with Time
30
0
Analog Input - All Variations
1
06
30
1
32-Bit Analog Input
129, 130
00, 01
30
2
16-Bit Analog Input
129, 130
00, 01
30
3
32-Bit Analog Input without Flag
129, 130
00, 01
30
4
16-Bit Analog Input without Flag
129, 130
00, 01
30
5
Short Floating Point Analog Input
129, 130
00, 01
31
0
Frozen Analog Input - All Variations
31
1
32-Bit Frozen Analog Input
31
2
16-Bit Frozen Analog Input
31
3
32-Bit Frozen Analog Input with Time of Freeze
31
4
16-Bit Frozen Analog Input with Time of Freeze
31
5
32-Bit Frozen Analog Input without Flag
31
6
16-Bit Frozen Analog Input without Flag
32
0
Analog Change Event - All Variations
1
06,07,08
32
1
32-Bit Analog Change Event without Time
129,130
17,28
32
2
16-Bit Analog Change Event without Time
129,130
17,28
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
698
DNP V3.00
DEVICE PROFILE DOCUMENT
IMPLEMENTATION OBJECT
This table describes the objects, function codes and qualifiers used in the device:
OBJECT
REQUEST
(slave must parse)
RESPONSE
(master must parse)
Obj
Var
Description
Func
Codes
(dec)
Qual
Codes
(hex)
Func
Codes
Qual
Codes
(hex)
32
3
32-Bit Analog Change Event with Time
129,130
17,28
32
4
16-Bit Analog Change Event with Time
129,130
17,28
32
5
Short Floating Point Analog Change Event
without Time
129,130
17,28
33
0
Frozen Analog Event - All Variations
33
1
32-Bit Frozen Analog Event without Time
33
2
16-Bit Frozen Analog Event without Time
33
3
32-Bit Frozen Analog Event with Time
33
4
16-Bit Frozen Analog Event with Time
40
0
Analog Output Status - All Variations
1
06
40
1
32-Bit Analog Output Status
129, 130
00, 01
40
2
16-Bit Analog Output Status
129, 130
00, 01
40
3
Short Floating Point Analog Output Status
129, 130
00, 01
41
0
Analog Output Block - All Variations
41
1
32-Bit Analog Output Block
3, 4, 5,
6
17, 28
129
echo of
request
41
2
16-Bit Analog Output Block
3, 4, 5,
6
17, 28
129
echo of
request
41
3
Short Floating Point Analog Output Block
3, 4, 5,
6
17, 28
129
echo of
request
50
0
Time and Date - All Variations
50
1
Time and Date
2 (see
4.14)
07 where
quantity = 1
50
2
Time and Date with Interval
51
0
Time and Date CTO - All Variations
51
1
Time and Date CTO
129, 130
07,
quantity=1
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
699
DNP V3.00
DEVICE PROFILE DOCUMENT
IMPLEMENTATION OBJECT
This table describes the objects, function codes and qualifiers used in the device:
OBJECT
REQUEST
(slave must parse)
RESPONSE
(master must parse)
Obj
Var
Description
Func
Codes
(dec)
Qual
Codes
(hex)
Func
Codes
Qual
Codes
(hex)
51
2
Unsynchronized Time and Date CTO
129, 130
07,
quantity=1
52
0
Time Delay - All Variations
52
1
Time Delay Coarse
129
07,
quantity=1
52
2
Time Delay Fine
129
07,
quantity=1
60
0
60
1
Class 0 Data
1
06
60
2
Class 1 Data
1
20,21
06,07,08
06
60
3
Class 2 Data
1
20,21
06,07,08
06
60
4
Class 3 Data
1
20,21
06,07,08
06
70
1
File Identifier
80
1
Internal Indications
2
00
index=7
81
1
Storage Object
82
1
Device Profile
83
1
Private Registration Object
83
2
Private Registration Object Descriptor
90
1
Application Identifier
100
1
Short Floating Point
100
2
Long Floating Point
100
3
Extended Floating Point
101
1
Small Packed Binary-Coded Decimal
101
2
Medium Packed Binary-Coded Decimal
101
3
Large Packed Binary-Coded Decimal
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
700
DNP V3.00
DEVICE PROFILE DOCUMENT
IMPLEMENTATION OBJECT
This table describes the objects, function codes and qualifiers used in the device:
OBJECT
REQUEST
(slave must parse)
RESPONSE
(master must parse)
Obj
Var
Description
Func
Codes
(dec)
Qual
Codes
(hex)
Func
Codes
Qual
Codes
(hex)
No Object
13
No Object
14
No Object
23
(see
4.14)
DNP V3.00
TIME SYNCHRONISATION PARAMETERS
This table describes the worst-case time parameters relating to time synchronisation,
as required by DNP Level 2 Certification Procedure section 8.7
PARAMETER
VALUE
Time base drift
+/- 1 minute/month at 25C
+1 / -3 minutes/month 0 to 50C
Time base drift over a 10-minute interval
+/- 14 milliseconds at 25C
+14 / -42 milliseconds 0 to 50C
Maximum delay measurement error
+/- 100 milliseconds
Maximum internal time reference error when set
from the protocol
+/- 100 milliseconds
Maximum response time
100 milliseconds
8.9 DNP Slave Device Profile Document
DNP v3.00
DEVICE PROFILE DOCUMENT
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
701
Vendor Name: Control Microsystems Inc.
Device Name: SCADAPack controllers
Highest DNP Level Supported:
For Requests 2
For Responses 2
Device Function:
Master Slave
Notable objects, functions, and/or qualifiers supported in addition to the Highest DNP Levels
Supported (the complete list is described in the attached table):
Function code 14 (warm restart)
Function code 20 (Enable Unsolicited Messages) for class 1, 2, 3 objects only.
Function code 21 (Disable Unsolicited Messages) for class 1, 2, 3 objects only.
Object 41, variation 1 (32-bit analog output block)
Maximum Data Link Frame Size (octets):
Transmitted 292
Received (must be 292)
Maximum Application Fragment Size (octets):
Transmitted 2048
Received 2048
Maximum Data Link Re-tries:
None
Fixed at
Configurable, range 0 to 255
Maximum Application Layer Re-tries:
None
Configurable, range 0 to 255
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
702
Requires Data Link Layer Confirmation:
Never
Always
Sometimes If 'Sometimes', when?
Configurable for Always or Never
Requires Application Layer Confirmation:
Never
Always (not recommended)
When reporting Event Data (Slave devices only)
When sending multi-fragment responses (Slave devices only)
Sometimes If 'Sometimes', when?
______________________________________________
Configurable for always or only when Reporting Event Data and Unsolicited Messages
Timeouts while waiting for:
Data Link Confirm None Fixed at _________ Variable
Configurable
Complete Appl. Fragment None Fixed at _________ Variable Configurable
Application Confirm None Fixed at _________ Variable Configurable
Complete Appl. Response None Fixed at _________ Variable Configurable
Others __________________________________________________________________________
Sends/Executes Control Operations:
WRITE Binary Outputs Never Always Sometimes Configurable
SELECT/OPERATE Never Always Sometimes Configurable
DIRECT OPERATE Never Always Sometimes Configurable
DIRECT OPERATE - NO ACK Never Always Sometimes Configurable
Count > 1 Never Always Sometimes Configurable
Pulse On Never Always Sometimes Configurable
Pulse Off Never Always Sometimes Configurable
Latch On Never Always Sometimes Configurable
Latch Off Never Always Sometimes Configurable
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
703
Queue Never Always Sometimes Configurable
Clear Queue Never Always Sometimes Configurable
FILL OUT THE FOLLOWING ITEM FOR MASTER DEVICES ONLY:
Expects Binary Input Change Events:
Either time-tagged or non-time-tagged for a single event
Both time-tagged and non-time-tagged for a single event
Configurable (attach explanation)
FILL OUT THE FOLLOWING ITEMS FOR SLAVE DEVICES ONLY:
Reports Binary Input Change Events when no
specific variation requested:
Never
Only time-tagged
Only non-time-tagged
Configurable to send both, one or the
other (attach explanation)
Reports time-tagged Binary Input Change Events
when no specific variation requested:
Never
Binary Input Change With Time
Binary Input Change With Relative Time
Configurable (attach explanation)
Sends Unsolicited Responses:
Never
Configurable by class
Only certain objects
Sometimes (attach explanation)
ENABLE/DISABLE UNSOLICITED
Sends Static Data in Unsolicited Responses:
Never
When Device Restarts
When Status Flags Change
No other options are permitted.
Default Counter Object/Variation:
No Counters Reported
Configurable (attach explanation)
Default Object 20
Default Variation 05
Point-by-point list attached
Counters Roll Over at:
No Counters Reported
Configurable (attach explanation)
16 Bits
32 Bits
16 Bits for 16-bit counters
32 Bits for 32-bit counters
Point-by-point list attached
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
704
Sends Multi-Fragment Responses: Yes No
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
705
DNP V3.00
DEVICE PROFILE DOCUMENT
IMPLEMENTATION OBJECT
This table describes the objects, function codes and qualifiers used in the device:
OBJECT
REQUEST
(slave must parse)
RESPONSE
(master must parse)
Obj
Var
Description
Func
Codes
(dec)
Qual
Codes
(hex)
Func
Codes
Qual
Codes
(hex)
1
0
Binary Input - All Variations
1
06
1
1
Binary Input
129, 130
00, 01
1
2
Binary Input with Status
129, 130
00, 01
2
0
Binary Input Change - All Variations
1
06,07,08
2
1
Binary Input Change without Time
1
06,07,08
129, 130
17, 28
2
2
Binary Input Change with Time
1
06,07,08
129, 130
17, 28
2
3
Binary Input Change with Relative Time
1
06,07,08
129, 130
17, 28
10
0
Binary Output - All Variations
1
06
10
1
Binary Output
10
2
Binary Output Status
129, 130
00, 01
12
0
Control Block - All Variations
12
1
Control Relay Output Block
3, 4, 5,
6
17, 28
129
echo of
request
12
2
Pattern Control Block
12
3
Pattern Mask
20
0
Binary Counter - All Variations
1, 7, 8,
9, 10
06
20
1
32-Bit Binary Counter
129, 130
00, 01
20
2
16-Bit Binary Counter
129, 130
00, 01
20
3
32-Bit Delta Counter
20
4
16-Bit Delta Counter
20
5
32-Bit Binary Counter without Flag
129, 130
00, 01
20
6
16-Bit Binary Counter without Flag
129, 130
00, 01
20
7
32-Bit Delta Counter without Flag
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
706
DNP V3.00
DEVICE PROFILE DOCUMENT
IMPLEMENTATION OBJECT
This table describes the objects, function codes and qualifiers used in the device:
OBJECT
REQUEST
(slave must parse)
RESPONSE
(master must parse)
Obj
Var
Description
Func
Codes
(dec)
Qual
Codes
(hex)
Func
Codes
Qual
Codes
(hex)
20
8
16-Bit Delta Counter without Flag
21
0
Frozen Counter - All Variations
1
06
21
1
32-Bit Frozen Counter
129, 130
00, 01
21
2
16-Bit Frozen Counter
129, 130
00, 01
21
3
32-Bit Frozen Delta Counter
21
4
16-Bit Frozen Delta Counter
21
5
32-Bit Frozen Counter with Time of Freeze
21
6
16-Bit Frozen Counter with Time of Freeze
21
7
32-Bit Frozen Delta Counter with Time of
Freeze
21
8
16-Bit Frozen Delta Counter with Time of
Freeze
21
9
32-Bit Frozen Counter without Flag
129, 130
00, 01
21
10
16-Bit Frozen Counter without Flag
129, 130
00, 01
21
11
32-Bit Frozen Delta Counter without Flag
21
12
16-Bit Frozen Delta Counter without Flag
22
0
Counter Change Event - All Variations
1
06,07,08
22
1
32-Bit Counter Change Event without Time
129, 130
17, 28
22
2
16-Bit Counter Change Event without Time
129, 130
17, 28
22
3
32-Bit Delta Counter Change Event without
Time
22
4
16-Bit Delta Counter Change Event without
Time
22
5
32-Bit Counter Change Event with Time
22
6
16-Bit Counter Change Event with Time
22
7
32-Bit Delta Counter Change Event with Time
22
8
16-Bit Delta Counter Change Event with Time
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
707
DNP V3.00
DEVICE PROFILE DOCUMENT
IMPLEMENTATION OBJECT
This table describes the objects, function codes and qualifiers used in the device:
OBJECT
REQUEST
(slave must parse)
RESPONSE
(master must parse)
Obj
Var
Description
Func
Codes
(dec)
Qual
Codes
(hex)
Func
Codes
Qual
Codes
(hex)
23
0
Frozen Counter Event - All Variations
23
1
32-Bit Frozen Counter Event without Time
23
2
16-Bit Frozen Counter Event without Time
23
3
32-Bit Frozen Delta Counter Event without Time
23
4
16-Bit Frozen Delta Counter Event without Time
23
5
32-Bit Frozen Counter Event with Time
23
6
16-Bit Frozen Counter Event with Time
23
7
32-Bit Frozen Delta Counter Event with Time
23
8
16-Bit Frozen Delta Counter Event with Time
30
0
Analog Input - All Variations
1
06
30
1
32-Bit Analog Input
129, 130
00, 01
30
2
16-Bit Analog Input
129, 130
00, 01
30
3
32-Bit Analog Input without Flag
129, 130
00, 01
30
4
16-Bit Analog Input without Flag
129, 130
00, 01
30
5
Short Floating Point Analog Input
129, 130
00, 01
31
0
Frozen Analog Input - All Variations
31
1
32-Bit Frozen Analog Input
31
2
16-Bit Frozen Analog Input
31
3
32-Bit Frozen Analog Input with Time of Freeze
31
4
16-Bit Frozen Analog Input with Time of Freeze
31
5
32-Bit Frozen Analog Input without Flag
31
6
16-Bit Frozen Analog Input without Flag
32
0
Analog Change Event - All Variations
1
06,07,08
32
1
32-Bit Analog Change Event without Time
129,130
17,28
32
2
16-Bit Analog Change Event without Time
129,130
17,28
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
708
DNP V3.00
DEVICE PROFILE DOCUMENT
IMPLEMENTATION OBJECT
This table describes the objects, function codes and qualifiers used in the device:
OBJECT
REQUEST
(slave must parse)
RESPONSE
(master must parse)
Obj
Var
Description
Func
Codes
(dec)
Qual
Codes
(hex)
Func
Codes
Qual
Codes
(hex)
32
3
32-Bit Analog Change Event with Time
129,130
17,28
32
4
16-Bit Analog Change Event with Time
129,130
17,28
32
5
Short Floating Point Analog Change Event
without Time
129,130
17,28
33
0
Frozen Analog Event - All Variations
33
1
32-Bit Frozen Analog Event without Time
33
2
16-Bit Frozen Analog Event without Time
33
3
32-Bit Frozen Analog Event with Time
33
4
16-Bit Frozen Analog Event with Time
40
0
Analog Output Status - All Variations
1
06
40
1
32-Bit Analog Output Status
129, 130
00, 01
40
2
16-Bit Analog Output Status
129, 130
00, 01
40
3
Short Floating Point Analog Output Status
129, 130
00, 01
41
0
Analog Output Block - All Variations
41
1
32-Bit Analog Output Block
3, 4, 5,
6
17, 28
129
echo of
request
41
2
16-Bit Analog Output Block
3, 4, 5,
6
17, 28
129
echo of
request
41
3
Short Floating Point Analog Output Block
3, 4, 5,
6
17, 28
129
echo of
request
50
0
Time and Date - All Variations
50
1
Time and Date
2 (see
4.14)
07 where
quantity = 1
50
2
Time and Date with Interval
51
0
Time and Date CTO - All Variations
51
1
Time and Date CTO
129, 130
07,
quantity=1
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
709
DNP V3.00
DEVICE PROFILE DOCUMENT
IMPLEMENTATION OBJECT
This table describes the objects, function codes and qualifiers used in the device:
OBJECT
REQUEST
(slave must parse)
RESPONSE
(master must parse)
Obj
Var
Description
Func
Codes
(dec)
Qual
Codes
(hex)
Func
Codes
Qual
Codes
(hex)
51
2
Unsynchronized Time and Date CTO
129, 130
07,
quantity=1
52
0
Time Delay - All Variations
52
1
Time Delay Coarse
129
07,
quantity=1
52
2
Time Delay Fine
129
07,
quantity=1
60
0
60
1
Class 0 Data
1
06
60
2
Class 1 Data
1
20,21
06,07,08
06
60
3
Class 2 Data
1
20,21
06,07,08
06
60
4
Class 3 Data
1
20,21
06,07,08
06
70
1
File Identifier
80
1
Internal Indications
2
00
index=7
81
1
Storage Object
82
1
Device Profile
83
1
Private Registration Object
83
2
Private Registration Object Descriptor
90
1
Application Identifier
100
1
Short Floating Point
100
2
Long Floating Point
100
3
Extended Floating Point
101
1
Small Packed Binary-Coded Decimal
101
2
Medium Packed Binary-Coded Decimal
101
3
Large Packed Binary-Coded Decimal
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
710
DNP V3.00
DEVICE PROFILE DOCUMENT
IMPLEMENTATION OBJECT
This table describes the objects, function codes and qualifiers used in the device:
OBJECT
REQUEST
(slave must parse)
RESPONSE
(master must parse)
Obj
Var
Description
Func
Codes
(dec)
Qual
Codes
(hex)
Func
Codes
Qual
Codes
(hex)
No Object
13
No Object
14
No Object
23
(see
4.14)
DNP V3.00
TIME SYNCHRONISATION PARAMETERS
This table describes the worst-case time parameters relating to time synchronization,
as required by DNP Level 2 Certification Procedure section 8.7
PARAMETER
VALUE
Time base drift
+/- 1 minute/month at 25C
+1 / -3 minutes/month 0 to 50C
Time base drift over a 10-minute interval
+/- 14 milliseconds at 25C
+14 / -42 milliseconds 0 to 50C
Maximum delay measurement error
+/- 100 milliseconds
Maximum internal time reference error when set
from the protocol
+/- 100 milliseconds
Maximum response time
100 milliseconds
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
711
9 TeleBUS DF1 Protocol Overview
TeleBUS communication protocols provide a standard communication interface to the
controller. The protocols operate on a wide variety of serial data links. These include
RS-232 serial ports, RS-485 serial ports, radios, leased line modems, and dial up modems.
The protocols are generally independent of the communication parameters of the link, with a
few exceptions.
TeleBUS protocol commands may be directed to a specific device, identified by its station
number, or broadcast to all devices. Up to 255 devices may connect to one communication
network.
The TeleBUS protocols provide full access to the I/O database in the controller. The I/O
database contains user-assigned registers and general purpose registers. Assigned registers
map directly to the I/O hardware or system parameter in the controller. General purpose
registers can be used by ladder logic and C application programs to store processed
information, and to receive information from a remote device.
Application programs can initiate communication with remote devices. A multiple port
controller can be a data concentrator for remote devices, by polling remote devices on one
port and responding as a slave on another port.
The protocol type, communication parameters and station address are configured separately
for each serial port on a controller. One controller can appear as different stations on
different communication networks. The port configuration can be set from an application
program, from the TelePACE programming software, or from another Modbus or DF1
compatible device.
9.1 Compatibility
There are four TeleBUS DF1 protocols:
- The TeleBUS DF1 Full-Duplex BCC protocol is compatible with the DF1 Full-
Duplex data link layer protocol with block check character (BCC) error checking.
- The TeleBUS DF1 Full-Duplex CRC protocol is compatible with the DF1 Full-
Duplex data link layer protocol with 16-bit cyclic redundancy check (CRC-16)
error checking.
- The TeleBUS DF1 Half-Duplex BCC protocol is compatible with the DF1 Half-
Duplex data link layer protocol with block check character (BCC) error checking.
- The TeleBUS DF1 Half-Duplex CRC protocol is compatible with the DF1 Half-
Duplex data link layer protocol with 16-bit cyclic redundancy check (CRC-16)
error checking.
Compatibility refers to communication only. The protocol defines communication aspects
such as commands, syntax, message framing, error handling and addressing. The controllers
do not mimic the internal functioning of any programmable controller. Device specific
functions those that relate to the hardware or programming of a specific programmable
controller are not implemented.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
712
9.2 Serial Port Configuration
9.2.1 Communication Parameters
The TeleBUS DF1 protocols are, in general, independent of the serial communication
parameters. The baud rate and parity may be chosen to suit the host computer and the
characteristics of the data link.
The port configuration can be set in four ways:
- using the TelePACE program;
- using the set_port function from a C application program;
- writing to the I/O database from a C or ladder logic application program; or
- writing to the I/O database remotely from a Modbus or DF1 compatible device.
To configure a serial port through the I/O database, add the module, CNFG Serial port
settings, to the Register Assignment.
9.2.1.1 Protocol Parameters
The TeleBUS DF1 protocols are eight bit character-oriented protocols. The table below
shows possible and recommended communication parameters.
Parameter Possible Settings Recommended
Setting
Baud Rate see Baud Rate
section below
see Baud Rate
section below
Data Bits 8 data bits 8 data bits
Parity none
even
odd
none
Stop bits 1 stop bit
2 stop bits
1
1 stop bit
Flow
control
disabled disabled
Duplex see Duplex
section below
see Duplex section
below
1
Not applicable on the SCADAPack 33x or SCADAPack 350.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
713
9.2.1.2 Baud Rate
The baud rate sets the communication speed. The possible settings are determined by the
type of serial data link used. The table below shows the possible settings for the controller.
Note that not all port types and baud rates are available on all controller ports.
Port
Type
Possible
Settings
Recommended Setting
RS-232
or
RS-232
Dial-up
modem
75 baud
110 baud
150 baud
300 baud
600 baud
1200 baud
2400 baud
4800 baud
9600 baud
19200 baud
38400 baud
57600 baud
115200 baud
Use the highest rate
supported by all devices
on the network.
RS-485 75 baud
110 baud
150 baud
300 baud
600 baud
1200 baud
2400 baud
4800 baud
9600 baud
19200 baud
38400 baud
Use the highest rate
supported by all devices
on the network.
9.2.1.3 Duplex
The TeleBUS DF1 protocols communicate in one direction at a time. However the duplex
setting is determined by the type of serial data link used. The table below shows the possible
settings for the controller. Note that not all port types are available on all controllers.
Port
Type
Possible
Settings
Recommended Setting
RS-232
or
RS-232
Dial-up
modem
half duplex
full duplex
Use full duplex wherever
possible.
Use half duplex for most
external modems.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
714
Port
Type
Possible
Settings
Recommended Setting
RS-485 half duplex
full duplex
Slave stations always use
half duplex.
Master stations can use
full duplex only on 4 wire
systems.
9.2.2 Protocol Parameters
The TeleBUS DF1 protocols operate independently on each serial port. Each port may set
the protocol type, station number, protocol task priority and store-and-forward messaging
options.
The protocol configuration can be set in four ways:
- using the TelePACE or ISaGRAF programs;
- using the set_protocol function from a C application program;
- writing to the I/O database from a C or ladder logic application program; or
- writing to the I/O database remotely from a Modbus or DF1 compatible device.
To configure protocol settings through the I/O database, add the module, CNFG Protocol
settings, to the Register Assignment.
9.2.2.1 Protocol Type
The protocol type may be set to emulate the DF1 or Modbus protocols, or it may be
disabled. When the protocol is disabled, the port functions as a normal serial port.
9.2.2.2 Station Number
The TeleBUS DF1 protocols allow up to 255 devices on a network. Station numbers identify
each device. A device responds to commands addressed to it, or to commands broadcast to
all stations.
The station number is in the range 0 to 254. Address 255 indicates a command broadcast to
all stations, and cannot be used as a station number. Each serial port may have a unique
station number.
9.2.2.3 Task Priority
A task is responsible for monitoring each serial port for messages. The real time operating
system (RTOS) schedules the tasks with the application program tasks according to the task
priority. The priority can be changed only with the set_protocol function from a C
application program.
The default task priority is 3. Changing the priority is not recommended.
9.2.2.4 Store and Forward Messaging
Store and forward messaging is not supported by the TeleBUS DF1 protocols.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
715
9.2.3 Default Parameters
All ports are configured at reset with default parameters when the controller is started in
SERVICE mode. The ports use user-defined parameters when the controller is reset in the
RUN mode. The default parameters are listed below.
Parameter com1 com2 Com3 com4
Baud rate 9600 9600 9600 9600
Parity none none None none
Data bits 8 8 8 8
Stop bits 1 1 1 1
Duplex full full Half half
Protocol Modbu
s RTU
Modbu
s RTU
Modbu
s RTU
Modbu
s RTU
Station 1 1 1 1
Rx flow
control
none none Rx
disable
Rx
disable
Tx flow
control
none none None none
Serial time
out
60 s 60 s 60 s 60 s
Type RS-232 RS-232 RS-232 RS-232
Minimum
Protected
DF1 Address
0 0 0 0
Maximum
Protected
DF1 Address
11534 11534 11534 11534
Notes
com3 is supported only when the SCADAPack Lower I/O module is installed. com4 is
supported only when the SCADAPack Upper I/O module is installed.
To optimize performance, minimize the length of messages on com3 and com4. Examples of
recommended uses for com3 and com4 are for local operator display terminals, and for
programming and diagnostics using the TelePACE program.
9.3 I/O Database
The TeleBUS protocols read and write information from the I/O database. The I/O database
is an area of memory that can be accessed by C programs, Ladder Logic programs,
ISaGRAF programs and communication protocols. The I/O database allows data to be
shared between these programs. The I/O database contains user-assigned registers and
general purpose registers.
User-assigned registers map directly to the I/O hardware or system parameter in the
controller. Assigned registers are initialized to the default hardware state or system
parameter when the controller is reset. Assigned output registers do not maintain their values
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
716
during power failures. However, output registers do retain their values during application
program loading.
General purpose registers are used by ladder logic, ISaGRAFand C application programs to
store processed information, and to receive information from remote devices. General
purpose registers retain their values during power failures and application program loading.
The values change only when written by an application program or a communication
protocol.
9.3.1 Coil and Status Registers
Coil and status registers contain one bit of information, that is whether a signal is off or on.
For TelePACE firmware coil registers are single bits, which the protocols can read and
write. There are 4096 coil registers located in the digital output section of the I/O database.
Coil registers are contained within the DF1 16-bit addresses 0 to 255.
For TelePACE firmware status registers are single bits, which the protocols can read. There
are 4096 status registers located in the digital input section of the I/O database. Status
registers are contained within the DF1 16-bit addresses 256 to 511.
For ISaGRAF firmware coil registers are single bits, which the protocols can read and write.
There are 9999 coil registers located in the digital output section of the I/O database. Coil
registers are contained within the DF1 16-bit addresses 0 to 624.
For ISaGRAF firmware status registers are single bits, which the protocols can read. There
are 9999 status registers located in the digital input section of the I/O database. Status
registers are contained within the DF1 16-bit addresses 625 to 1249.
Coil and status registers are accessed 16 at a time or individually (in some commands) using
a bitmask. Writing a one to a bit within the 16-bit address turns the bit on. Writing zero to
the bit turns the bit off. If the register is assigned to an I/O module, the bit status is written to
the module output hardware or parameter.
Reading a coil or status register returns 1 if the bit is on, or 0 if the bit is off. The stored
value is returned from general purpose registers. The I/O module point status is returned
from assigned registers.
9.3.2 Input and Holding Registers
Input and holding registers contain 16-bit values.
Input registers are 16-bit registers, which the protocol can read. For TelePACE firmware,
there are 1024 input registers located in the analog input section of the I/O database. Input
registers are contained within the DF1 addresses 512 to 1535.
For ISaGRAF firmware there are 9999 input registers located in the analog input section of
the I/O database. Input registers are contained within the DF1 addresses 1250 to 11247.
Holding registers are 16-bit registers that the protocol can read and write. For TelePACE
firmware there are 9999 holding registers located in the analog output section of the I/O
database. Holding registers are contained within the DF1 addresses 1536 to 11534.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
717
For ISaGRAF firmware there are 9999 holding registers located in the analog output section
of the I/O database. Holding registers are contained within the DF1 addresses 11248 to
21247.
Writing any value to a general purpose register stores the value in the register. Writing a
value to an assigned register, writes the value to the assigned I/O module.
Reading a general purpose register returns the value stored in the register. Reading an
assigned register returns the value read from the I/O module.
9.3.3 Accessing the I/O Database Using TelePACE
Ladder logic programs access the I/O database through function blocks. All function blocks
can access the I/O database. The function blocks in ladder logic use only the Modbus
addressing scheme. Refer to the TelePACE Ladder Logic Reference and User Manual for
details.
C language programs access the I/O database with two functions. The dbase function reads
a value from the I/O database. The setdbase function writes a value to the I/O database.
These functions use either Modbus or DF1 physical addressing. Refer to the TelePACE C
Tools Reference and User Manual for full details on these functions.
9.3.3.1 Modbus Addressing
Modbus addressing is used in all ladder logic program functions. The controllers Register
Assignment is also configured using Modbus addresses. The C functions dbase and
setdbase support Modbus addressing. When the specified port is configured for one of the
Modbus protocols, the function master_message uses Modbus addressing.
The range of Modbus registers available depends on the controller being used. The
following sections list the Modbus registers available for each controller type.
9.3.3.1.1 SCADAPack, SCADAPack 100: 1024K and SCADASense 4202 Series
Coil registers are single bit addresses ranging from 00001 to 04096.
Status registers are single bit addresses ranging from 10001 to 14096.
Input registers are 16-bit addresses in the range 30001 to 31024.
Holding registers are 16-bit addresses in the range 40001 to 49999.
9.3.3.1.2 SCADAPack 100: 256K Controllers
Coil registers are single bit addresses ranging from 00001 to 04096.
Status registers are single bit addresses ranging from 10001 to 14096.
Input registers are 16-bit addresses in the range 30001 to 30512.
Holding registers are 16-bit addresses in the range 40001 to 44000.
9.3.3.1.3 SCADAPack 330, SCADAPack 334, SCADAPack 350, SCADAPack 32, and
SCADASense 4203 Series
Coil registers are single bit addresses ranging from 00001 to 04096.
Status registers are single bit addresses ranging from 10001 to 14096.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
718
Input registers are 16-bit addresses in the range 30001 to 39999.
Holding registers are 16-bit addresses in the range 40001 to 49999.
9.3.3.2 DF1 Addressing
DF1 addressing is used by the MSTR ladder logic function when the specified port is
configured for one of the DF1 protocols. Modbus addressing must be used in all other ladder
logic program functions.
DF1 addressing is used by function master_message when the specified port is configured
for one of the DF1 protocols. The functions dbase, setdbase, setABConfiguration and
getABConfiguration also support DF1 addressing.
All DF1 addresses are absolute word addresses beginning with the first 16-bit register in the
I/O database at address 0.
9.3.3.3 Converting Modbus to DF1 Addresses
I/O database registers are assigned within the controllers Register Assignment using
Modbus addressing. When polling the controller from a DF1 device it is necessary to know
the DF1 address corresponding to each assigned register. Refer to the section for the
controller type being used.
9.3.3.3.1 SCADAPack, SCADAPack 100: 1024K and SCADASense 4202 Series
In general, the cross-reference between Modbus and DF1 addressing is shown in the
following table. DF1 addresses in this table are described in the format word/bit where
word is the address of a 16-bit word and bit is the bit within that word. The bit address is
optional.
Address Range Description
Modbu
s
DF1
00001 to 04096
0/0 to 255/15
Digital Output Database
(single bit registers)
Modbu
s
DF1
10001 to 14096
256/0 to 511/15
Digital Input Database
(single bit registers)
Modbu
s
DF1
30001 to 31024
512 to 1535
Analog Input Database
(16-bit registers)
Modbu
s
DF1
40001 to 49999
1536 to 11534
Analog Output Database
(16-bit registers)
9.3.3.3.1.1 Coil Registers
To convert a Modbus coil register, ModbusCoil, to a DF1 address word/bit:
word = ( ModbusCoil - 00001 ) / 16
bit = remainder of { ( ModbusCoil - 00001 ) / 16 }
9.3.3.3.1.2 Status Registers
To convert a Modbus status register, ModbusStatus, to a DF1 address word/bit:
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
719
word = ( ModbusStatus - 10001 ) / 16 + 256
bit = remainder of { ( ModbusStatus - 10001 ) / 16 }
9.3.3.3.1.3 Input Registers
To convert a Modbus input register, ModbusInput, to a DF1 address word:
word = ( ModbusInput - 30001 ) + 512
9.3.3.3.1.4 Holding Registers
To convert a Modbus holding register, ModbusHolding, to a DF1 address word:
word = ( ModbusHolding - 40001 ) + 1536
9.3.3.3.1.5 Example
In this example the equivalent DF1 addresses are shown next to a sample SCADAPack
Register Assignment specified with Modbus addresses.
Module
Start
Register
End
Register
DF1 Address
Range
SCADAPack
5601 I/O module
digital outputs
digital inputs
analog inputs
00001
10001
30001
00012
10016
30008
0/0 to 0/11
256/0 to 256/15
512 to 519
DIN Controller digital inputs 10017 10019 257/0 to 257/2
DIAG Force LED 10020 10020 257/3
SCADAPack AOUT module 40001 40002 1536 to 1537
9.3.3.3.2 SCADAPack 330, SCADAPack 334, SCADAPack 350 and SCADAPack 32
Controllers
In general, the cross-reference between Modbus and DF1 addressing is shown in the
following table. DF1 addresses in this table are described in the format word/bit where
word is the address of a 16-bit word and bit is the bit within that word. The bit address is
optional.
Address Range Description
Modbus
DF1
00001 to 04096
0/0 to 255/15
Digital Output Database
(single bit registers)
Modbus
DF1
10001 to 14096
256/0 to 511/15
Digital Input Database
(single bit registers)
Modbus
DF1
30001 to 39999
512 to 10510
Analog Input Database
(16-bit registers)
Modbus
DF1
40001 to 49999
10511 to 20511
Analog Output Database
(16-bit registers)
9.3.3.3.2.1 Coil Registers
To convert a Modbus coil register, ModbusCoil, to a DF1 address word/bit:
word = ( ModbusCoil - 00001 ) / 16
bit = remainder of { ( ModbusCoil - 00001 ) / 16 }
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
720
9.3.3.3.2.2 Status Registers
To convert a Modbus status register, ModbusStatus, to a DF1 address word/bit:
word = ( ModbusStatus - 10001 ) / 16 + 256
bit = remainder of { ( ModbusStatus - 10001 ) / 16 }
9.3.3.3.2.3 Input Registers
To convert a Modbus input register, ModbusInput, to a DF1 address word:
word = ( ModbusInput - 30001 ) + 512
9.3.3.3.2.4 Holding Registers
To convert a Modbus holding register, ModbusHolding, to a DF1 address word:
word = ( ModbusHolding - 40001 ) + 10511
9.3.3.3.2.5 Example
In this example the equivalent DF1 addresses are shown next to a sample SCADAPack
Register Assignment specified with Modbus addresses.
Module
Start
Register
End
Register
DF1 Address
Range
SCADAPack
5601 I/O module
digital outputs
digital inputs
analog inputs
00001
10001
30001
00012
10016
30008
0/0 to 0/11
256/0 to 256/15
512 to 519
DIN Controller digital inputs 10017 10019 257/0 to 257/2
DIAG Force LED 10020 10020 257/3
SCADAPack AOUT module 40001 40002 10511 to 10512
9.3.4 Accessing the I/O Database Using ISaGRAF
ISaGRAF programs access the I/O database through function blocks. The function blocks in
ISaGRAF may use the Modbus addressing scheme when a Network Address is defined for a
variable. Refer to the I EC 61131 User Manual for details.
C language programs access the I/O database with two functions. The dbase function reads
a value from the I/O database. The setdbase function writes a value to the I/O database.
These functions use either Modbus or DF1 physical addressing. Refer to the I EC 61131
User Manual for full details on these functions.
9.3.4.1 Modbus Addressing
Modbus addressing can be used in ISaGRAF program functions.
The C functions dbase and setdbase support Modbus addressing. When the specified port is
configured for one of the Modbus protocols, the function master_message uses Modbus
addressing.
Modbus addresses coil registers with a single bit address ranging from 00001 to 09999.
Status registers are also addressed with single bit addresses ranging from 10001 to 19999.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
721
Input registers are addressed with 16-bit addresses in the range 30001 to 39999. And holding
registers are addressed with a 16-bit address in the range 40001 to 49999.
9.3.4.2 DF1 Addressing
DF1 addressing is used by the master function when the specified port is configured for one
of the DF1 protocols. Modbus addressing must be used in all other ladder logic program
functions.
DF1 addressing is used by function master_message when the specified port is configured
for one of the DF1 protocols. The functions dbase, setdbase, setABConfiguration and
getABConfiguration also support DF1 addressing.
All DF1 addresses are absolute word addresses beginning with the first 16-bit register in the
I/O database at address 0 and ending at address 21247.
9.3.4.3 Converting Modbus to DF1 Addresses
I/O database registers are assigned within the controllers Register Assignment using
Modbus addressing. When polling the controller from an DF1 device it is necessary to know
the DF1 address corresponding to each assigned register.
In general, the cross-reference between Modbus and DF1 addressing is shown in the
following table. DF1 addresses in this table are described in the format word/bit where
word is the address of a 16-bit word and bit is the bit within that word. The bit address is
optional.
Address Range Description
Modbu
s
DF1
00001 to 09999
0/0 to 624/15
Digital Output Database
(single bit registers)
Modbu
s
DF1
10001 to 19999
625/0 to
1249/15
Digital Input Database
(single bit registers)
Modbu
s
DF1
30001 to 39999
1250 to 11248
Analog Input Database
(16-bit registers)
Modbu
s
DF1
40001 to 49999
11249 to 21247
Analog Output Database
(16-bit registers)
9.3.4.3.1 Coil Registers
To convert a Modbus coil register, ModbusCoil, to an DF1 address word/bit:
word = ( ModbusCoil - 00001 ) / 16
bit = remainder of { ( ModbusCoil - 00001 ) / 16 }
9.3.4.3.2 Status Registers
To convert a Modbus status register, ModbusStatus, to an DF1 address word/bit:
word = ( ModbusStatus - 10001 ) / 16 + 625
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
722
bit = remainder of { ( ModbusStatus - 10001 ) / 16 }
9.3.4.3.3 Input Registers
To convert a Modbus input register, ModbusInput, to an DF1 address word:
word = ( ModbusInput - 30001 ) + 1250
9.3.4.3.4 Holding Registers
To convert a Modbus holding register, ModbusHolding, to an DF1 address word:
word = ( ModbusHolding - 40001 ) + 11249
9.3.4.3.5 Example
In this example the equivalent DF1 addresses are shown next to a sample SCADAPack
Register Assignment specified with Modbus addresses.
Module
Start
Register
End
Register
DF1 Address
Range
SCADAPack
5601 I/O module
digital outputs
digital inputs
analog inputs
00001
10001
30001
00012
10016
30008
0/0 to 0/11
625/0 to 625/15
1250 to 1257
DIN Controller digital
inputs
10017 10019 626/0 to 626/2
DIAG Force LED 10020 10020 626/3
SCADAPack AOUT
module
40001 40002 11249 to 111250
9.4 Slave Mode
The TeleBUS DF1 protocols operate in slave and master modes simultaneously. In slave
mode the controller responds to commands sent by another device. Commands may be sent
to a specific device or broadcast to all devices.
The TeleBUS DF1 protocols emulate the protocol functions required for communication
with a host device which uses the Non-Privileged commands from the DF1 Basic Command
Set. These functions are described below.
Consult the DF1 I/O driver documentation included with the SCADA package, or specific
DF1 documentation, for details on these commands. In most cases a knowledge of the actual
commands is not required to set up the host system.
9.4.1 Broadcast Messages
A broadcast message is sent to all devices on a network. Each device executes the command.
No device responds to a broadcast command. The device sending the command must query
each device to determine if the command was received and processed. Broadcast messages
are supported for function codes that write information.
A broadcast message is sent to station number 255.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
723
9.4.2 Function Codes
The table summarizes the implemented function codes. Note that slave commands at the
protocol layer access the I/O database in physical byte addresses. However, in master mode
the interface to the TeleBUS DF1 protocol accesses the I/O database in physical 16-bit word
addresses. The interface function block MSTR and C function master_message are
described in the Master Mode section below.
The maximum number of 16-bit words that can be read or written with one slave command
message is shown in the maximum column.
Functio
n
Name Description Maximu
m
00 Protected
Write
Writes words of data to limited
areas of the database.
121
01 Unprotected
Read
Reads words of data from any
area of the database.
122
02 Protected Bit
Write
Sets or resets individual bits
within limited areas of the
database.
30
05 Unprotected
Bit Write
Sets or resets individual bits in
any area of the database.
30
08 Unprotected
Write
Writes words of data to any
area of the database.
121
Functions 0, 2, 5 and 8 support broadcast messages. The functions are described in detail
below.
9.4.2.1 Protected Write
The Protected Write function writes 8 bit values into limited areas of the I/O database.
Access to the I/O database is limited to the protected address range.
Any number of bytes may be written up to the maximum number. The write may start at any
byte address, provided the entire block is within the protected address range.
The protected address range is set using the setABConfiguration function from a C
application program.
9.4.2.2 Unprotected Read
The Unprotected Read function reads 8 bit values from any area of the I/O database. Access
to the I/O database is limited to the unprotected address range.
Any number of bytes may be read up to the maximum number. The read may start at any
byte address, provided the entire block is within the unprotected address range.
9.4.2.3 Protected Bit Write
The Protected Bit Write function sets or resets individual bits within limited areas of the I/O
database. Access to the I/O database is limited to the protected address range.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
724
Bits are accessed one byte at a time and may be written up to the maximum number of bytes.
The write may start at any byte address, provided the entire block is within the protected
address range.
9.4.2.4 Unprotected Bit Write
The Unprotected Bit Write function sets or resets individual bits in any area of the I/O
database. Access to the I/O database is limited to the unprotected address range.
Bits are accessed one byte at a time and may be written up to the maximum number of bytes.
The write may start at any byte address, provided the entire block is within the unprotected
address range.
9.4.2.5 Unprotected Write
The Unprotected Write function writes 8 bit values into any area of the I/O database. Access
to the I/O database is limited to the unprotected address range.
Any number of bytes may be written up to the maximum number. The write may start at any
byte address, provided the entire block is within the unprotected address range.
9.5 Master Mode
The TeleBUS DF1 protocols may act as a communication master on any serial port. In
master mode, the controller sends commands to other devices on the network. Simultaneous
master messages may be active on all ports.
9.5.1 Function Codes
The table shows the implemented function codes. Note that slave commands at the protocol
layer access the I/O database in physical byte addresses. However, in master mode the
interface to the TeleBUS DF1 protocol accesses the I/O database in physical 16-bit word
registers. The interface function block MSTR and C function master_message are
described in the Sending Messages section below.
The maximum number of 16-bit registers that can be read or written with one message is
shown in the maximum column. The slave device may support fewer registers than shown;
consult the manual for the device for details.
Functio
n
Name Description Maximum
00 Protected
Write
Writes words of data to
limited areas of the
database.
121
01 Unprotected
Read
Reads words of data from
any area of the database.
122
02 Protected Bit
Write
Sets or resets individual bits
within limited areas of the
database.
1
05 Unprotected
Bit Write
Sets or resets individual bits
in any area of the database.
1
08 Unprotected
Write
Writes words of data to any
area of the database.
121
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
725
9.5.1.1 Protected Write
The Protected Write function writes 16-bit values into the I/O database of the slave device.
Access to the I/O database is limited to the protected address range of the slave device. The
data may come from any area of the master I/O database within its unprotected address
range.
Any number of 16-bit registers may be written up to the maximum number supported by the
slave device or the maximum number above, which ever is less. The write may start at any
16-bit register, provided the entire block is within the protected address range of the slave
device.
9.5.1.2 Unprotected Read
The Unprotected Read function reads 16-bit values from any area of the I/O database of the
slave device. Access to the I/O database is limited to the unprotected address range of the
slave device. Data can be written into any area of the master I/O database within its
unprotected address range.
Any number of 16-bit registers may be read up to the maximum number supported by the
slave device or the maximum number above, which ever is less. The read may start at any
16-bit register, provided the entire block is within the unprotected address range of the slave
device.
9.5.1.3 Protected Bit Write
The Protected Bit Write function sets or resets individual bits in the I/O database of the slave
device. Access to the I/O database is limited to the protected address range of the slave
device. The data may come from any area of the master I/O database within the unprotected
address range.
One 16-bit register with a bitmask is used to write up to 16 bits of data. The register must be
within the protected address range of the slave device.
9.5.1.4 Unprotected Bit Write
The Unprotected Bit Write function sets or resets individual bits in any area of the I/O
database of the slave device. Access to the I/O database is limited to the unprotected address
range of the slave device. The data may come from any area of the master I/O database
within its unprotected address range.
One 16-bit register with a bitmask is used to write up to 16 bits of data. The register must be
within the unprotected address range of the slave device.
9.5.1.5 Unprotected Write
The Unprotected Write function writes 16-bit values into any area of the I/O database of the
slave device. Access to the I/O database is limited to the unprotected address range of the
slave device. The data may come from any area of the master I/O database within its
unprotected address range.
Any number of 16-bit registers may be written up to the maximum number supported by the
slave device or the maximum number above, which ever is less. The write may start at any
16-bit register, provided the entire block is within the unprotected address range of the slave
device.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
726
9.5.2 Sending Messages
A master message is initiated in two ways:
- using the master_message function from a C application program; or
- using the MSTR function block from a ladder logic program.
These functions specify the port on which to issue the command, the function code, the slave
station number, and the location and size of the data in the slave and master devices. The
protocol driver, independent of the application program, receives the response to the
command.
The application program detects the completion of the transaction by:
- calling the get_protocol_status function in a C application program; or
- using the output of the MSTR function block in a ladder logic program.
A communication error has occurred if the slave does not respond within the expected
maximum time for the complete command and response. The application program is
responsible for detecting this condition. When errors occur, it is recommended that the
application program retry several times before indicating a communication failure.
The completion time depends on the length of the message, the length of the response, the
number of transmitted bits per character, the transmission baud rate, and the maximum
message turn-around time. One to three seconds is usually sufficient. Radio systems may
require longer delays.
9.5.2.1 Polling DF1 PLCs
All DF1 PLCs, except the PLC-5/VME, will support some portion of the basic commands
implemented.
AB PLC Unprotected
Read
Unprotected
Write
Protected
Write
Protected
Bit Write
Unprotected
Bit Write
MicroLogix
1000
4
\ \
SLC500
1,3
\ \
SLC5/01
1,3
\ \
SLC5/02
1,2,3
\ \
SLC5/03
2,3
\ \
SLC5/04
2,3
\ \
1774-PLC
\ \ \ \ \
PLC-2
\ \ \ \ \
PLC-3
5
\ \ \ \ \
PLC-5
5
\ \ \ \ \
PLC-5/250
5
\ \ \ \
PLC-5/VME
9.5.2.1.1 Notes
1
At the protocol level these commands convert and send the slave word address as a byte
address. The SLC500, 5/01 (and 5/02, prior to Series C FRN 3) treat this byte address as if it
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
727
were a word address in the SLC500. This means that the (desired word address)/2 must be
specified for the Slave Register Address in MSTR or master_message. Note that this always
results in an even starting word address in the slave SLC. (E.g. Slave word address of 7
specified in MSTR accesses SLC word address 14.)
2
The SLC5/02, 5/03 and 5/04 have a status selection bit (S:2/8) which allows selection of
either word or byte addressing when interpreting only these commands. (Setting SLC bit
S:2/8 = 1 selects byte addressing so that, for example, a slave word address of 7 specified in
MSTR accesses SLC word address 7.)
3
These commands can access SLC memory only in the CIF or Common Interface File: N9.
See further details in section 12-15 of the SLC500 Instruction Set manual.
4
These commands can access MicroLogix memory only in the CIF or Common Interface
File: N7. See further details in section 12-15 of the MicroLogix 1000 Instruction Set
manual.
5
These commands can access memory only in the CIF or PLC-2 compatibility file: N7.
See further details in section 16-7 of the PLC-5 manual.
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
728
10 Modem Commands
The DIAL and INIM elements, and the TelePACE program dial-up connection operate with
Hayes AT command set compatible external modems. The commands specify how the
modem behaves. Each modem manufacturer has a different set of modem commands
required to initialize the modem.
This appendix lists modem initialization command strings for a number of modems. If your
modem is not on the list try the generic modem settings.
10.1 Modem Settings
If generic modem settings do not work, fill out the table below by looking up the commands
in your modem manual. Construct a command string from the results. Your modem may not
require all the commands or may require additional commands. Please contact our Technical
Support department if you require assistance.
Command Description
reset modem to factory or default settings
(This command should be sent first.)
select extended result code set
return verbal responses
do not echo characters in command state
return actual state of carrier detect (CD) signal
hang up when DTR signal is dropped
disable (local) flow control
Communicate at a constant speed between DTE and modem
answer incoming calls on the first ring
carrier wait time = 50 seconds
Note that command strings do not begin with AT. The AT will be inserted automatically
when the commands are sent to the modem.
10.2 Generic Modem
This command string works with many Hayes compatible modems.
String X4 V1 E0 &C1 &D2 S0=1 S7=50
Command Description
X4 select extended result code set
V1 return verbal responses
E0 do not echo characters in command state
&C1 return actual state of carrier detect (CD) signal
&D2 hang up when DTR signal is dropped
S0=1 answer incoming calls on the first ring
S7=50 carrier wait time = 50 seconds
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
729
10.3 5901 High Speed Dial-up Modem
Command Description
&F0 reset modem to factory or default settings
(This command should be sent first.)
X4 select extended result code set
V1 return verbal responses
E0 do not echo characters in command state
&C1 return actual state of carrier detect (CD) signal
&D2 hang up when DTR signal is dropped
&K0 disable (local) flow control
Nn and
S37
see user
manual
Communicate at a constant speed between DTE and modem
S0=1 answer incoming calls on the first ring
S7=50 carrier wait time = 50 seconds
10.4 ATI 14400 ETC-Express
String &F0 X4 &C1 &D2 &K0 &Q0
Command Description
&F0 recall factory (configuration) profile 0
X4 select extended result code set
&C1 return actual state of carrier detect (CD) signal
&D2 hang up when DTR signal is dropped
&K0 disable flow control
&Q0 select direct asynchronous operation
10.5 ATI 14400 ETC-E, ETC-I
String &F0 &B1 &C1 &D2 &E0
Command Description
&F0 recall factory (configuration) profile 0
&B1 DTE speed equals default value or the AT command speed
&C1 return actual state of carrier detect (CD) signal
&D2 hang up when DTR signal is dropped
&E0 Automatic retrying disabled
10.6 Hayes Smartmodem 1200
String F1 Q0 V1 X1
Command Description
F1 full duplex
Q0 result codes sent
V1 result codes transmitted as words (verbal)
X1 extended result code set
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
730
10.7 Hayes ACCURA 96, 144 and 288 Modems
String &F &C1 &D2 &K0 &Q6
Command Description
&F recall factory configuration
&C1 return actual state of carrier detect (CD) signal
&D2 hang up when DTR signal is dropped
&K0 disable local flow control
&Q6 Communicate in asynchronous mode with automatic speed
buffering (constant speed between DTE and modem)
10.8 Kama 2400 EI
String &F &C1 &D2
Command Description
&F factory settings
&C1 DCD asserted when carrier detected
&D2 DTR controls the modem
10.9 Megahertz XJ4288 28.8 PC Card Modem
String &F0 &Q0 %C0 S7=60
Command Description
&F0 recall factory profile 0
&Q0 select direct asynchronous mode
%C0 disable data compression
S7=60 wait time for carrier = 60 seconds
10.10 Multitech 224E7B
String F Q0 V1 X4 &C1 &D2 &E3
Command Description
F factory settings
Q0 send result codes
V1 verbal result codes
X4 extended result code set
&C1 DCD asserted when carrier detected
&D2 DTR controls the modem
&E3 no flow control correction
TelePACE Ladder Logic User and Reference Manual
April 24, 2008
731
10.11 TeleSAFE 6901 Bell 212 Modem
10.11.1.1 Strin
g
Command Description Default
S0 register Rings to answer 1
S2 register CTS-on delay
measured in units of 8.3 ms.
14
(116 ms)
S3 register Anti-streaming timer
measured in 10s of seconds.
0
(disabled)
S4 register CTS-off delay
measured in units of 8.3 ms.
4
(33 ms)
S6 register Dial tone wait time
measured in 10ths of a second.
30
(3 seconds)
S7 register Carrier wait time
measured in seconds.
15
(15 seconds)
S9 register Carrier detect delay time
measured in units of 8.3 ms.
10
(83 ms)
S10 register Carrier loss time
measured in units of 8.3 ms.
10
(83 ms)
S11 register Tone dial speed
measured in 0.050 seconds.
2
(5 p/p
second)
10.12 US Robotics Sportster 28,800
String &F1 &A0 &H0 &K0 &M0 &R1 &B1 S0=1
Command Description
&F1 generic factory configuration
&A0 ARQ result codes disabled
&K0 data compression disabled
&M0 error control (ARQ) disabled
&B1 fixed serial port rate
&H0 Flow control disabled
&R1 Modem ignores RTS
S0=1 answer phone on first ring (optional)