Class Ssab_CO4uP
Version 1.0
Modified 06-OCT-2005 14:45:53.00
 Configuration of a PSS9000 counter card CO4uP.

 The Co_CO4uP object is positioned below a SSAB_Rack object in the node configuration.
 The channel objects are already configured with internal ChanCo objects in the card object.

Console


 The card has a terminal port that can be used to view the signal values of the card and to
 trace trouble. To use the terminal port you
 - connect the serial port of the computer to the terminal port of the card.
 - open a consol window on the screen of the computer from the popup menu of the background,
   menu item 'PSS Kort'.
 - view information and help with (Shift) '?'.
 - view the signal values of the card with 'R'.
 For more information about the console program, follow the link below.

See hardware specification



RtBody attributes pwr_sClass_Ssab_CO4uP
String80 Description   Optional description.
UInt32 ErrorCount   Error counter, incremented for every failed read or write operation of the card.
When the error counter reaches ErrorSoftLimit, a message is sent to the console log.
When it reaches ErrorHardLimit, all IO handling is aborted.
UInt32 ErrorSoftLimit   Value of the error counter, when a message is sent to the console log.
UInt32 ErrorHardLimit   Value of the error counter, when all IO handling is aborted.
Mask ConvMask   The conversion mask specifies which channel values that are transfered to signal values.
UInt16 MaxNoOfCounters   Maximum number of channels.
Array of Boolean COAbsFlag   An extended 32-bit absolute value of the counter is calculated and stored.
Array of SsabCoNoOfBitsEnum NoOfBits   Number of bits, 16 or 24.
Array of Boolean COWrFlag   Internal flag.
Array of SsabCoMulCountEnum MulCount   The number of pulses is multiplied with this factor. 2 or 4.
Array of SsabCoDivCountEnum DivCount   The number of pulses is divided with 16. No (0) or 16.
Array of Boolean CopWrRough   Copy the value in SyncRawValue to the counter value, when rough sync is detected.
Array of Boolean CopWrFine   Copy the value in SyncRawValue to the counter value, when fine sync is detected.
Array of Boolean LoadWrReg   Copy the value in SyncRawValue to the write register and to the counter value.
Array of Boolean LengthMeasurement   Length measurement, triggered by the rough sync signal.
Array of Boolean SpeedMeasurement   Speed measurement, pulses per second.
Array of UInt32 SyncRawValue   Value copied to the counter value when rough or fine sync is detected.
UInt32 RegAddress   QBUS address of the card.
UInt32 SwitchSettings   Settings of the address switch on the board.
The value is filled in when the object is created, calculated
from the current position of the object in the rack. If the
positions is changed the settings can be updated with the SetAddress
method in the popup menu.

The settings are presented with an integer value, and leading zeros
are missing.
IoProcessMask Process   Process that handles the card. Plc(1), rt_io_comm(2) or application process(4).
Objid ThreadObject   Plc thread that handles the card.
URL DataSheet   A URL to the data sheet for the equipment in this object.
ChanCo Ch1   Channel object array.
ChanCo Ch2  
ChanCo Ch3  
ChanCo Ch4  


Template Object
ConvMask 65535
MaxNoOfCounters 4
COAbsFlag[0] 1
COAbsFlag[1] 1
COAbsFlag[2] 1
COAbsFlag[3] 1
NoOfBits[0] 24
NoOfBits[1] 24
NoOfBits[2] 24
NoOfBits[3] 24
MulCount[0] 4
MulCount[1] 4
MulCount[2] 4
MulCount[3] 4
CopWrRough[0] 1
CopWrRough[1] 1
CopWrRough[2] 1
CopWrRough[3] 1
CopWrFine[0] 1
CopWrFine[1] 1
CopWrFine[2] 1
CopWrFine[3] 1
Process 1
DataSheet $pwr_lang/dsh/ssab_co4up.pdf
Ch1.ConversionOn 1
Ch1.SensorPolyType 1
Ch2.ConversionOn 1
Ch2.SensorPolyType 1
Ch3.ConversionOn 1
Ch3.SensorPolyType 1
Ch4.ConversionOn 1
Ch4.SensorPolyType 1


Attributes detail


Description Attribute
Klass Attribute
Typ String80
Flags
Kropp RtBody
Optional description.

ErrorCount Attribute
Klass Attribute
Typ UInt32
Flags State|Noedit
Kropp RtBody
Error counter, incremented for every failed read or write operation of the card.
When the error counter reaches ErrorSoftLimit, a message is sent to the console log.
When it reaches ErrorHardLimit, all IO handling is aborted.

ErrorSoftLimit Attribute
Klass Attribute
Typ UInt32
Flags
Kropp RtBody
Value of the error counter, when a message is sent to the console log.

ErrorHardLimit Attribute
Klass Attribute
Typ UInt32
Flags
Kropp RtBody
Value of the error counter, when all IO handling is aborted.

ConvMask Attribute
Klass Attribute
Typ Mask
Flags
Kropp RtBody
The conversion mask specifies which channel values that is transfered to signal values.
If value of a channel, read from the card, should not be used, the corresponding bit in
the conversion mask is set to 0. The value can then be set from the runtime navigator.

MaxNoOfCounters Attribute
Klass Attribute
Typ UInt16
Flags Const|Noedit
Kropp RtBody
Maximum number of channels.

COAbsFlag Attribute
Klass Attribute
Typ Array of Boolean
Flags Array
Elements 4
Kropp RtBody
An extended 32-bit absolute value of the counter is calculated and stored.
The extended value is convenient to use if there is any risk of overflow.
It is fetched into the plc program with the PIX output of the GetPi object.

NoOfBits Attribute
Klass Attribute
Typ Array of SsabCoNoOfBitsEnum
Flags Array
Elements 4
Kropp RtBody
Number of bits, 16 or 24.
If NoOfBits is 16, bit 12 is set in the configuration word of the counter.

COWrFlag Attribute
Klass Attribute
Typ Array of Boolean
Flags Array
Elements 4
Kropp RtBody
Internal flag.

MulCount Attribute
Klass Attribute
Typ Array of SsabCoMulCountEnum
Flags Array
Elements 4
Kropp RtBody
The number of pulses is multiplied with this factor. 2 or 4.
If MulCount is 2, bit 11 is set in the configuration word of the counter.

DivCount Attribute
Klass Attribute
Typ Array of SsabCoDivCountEnum
Flags Array
Elements 4
Kropp RtBody
The number of pulses is divided with 16. No (0) or 16.
If DivCount is 16, bit 9 is set in the configuration word of the counter.

CopWrRough Attribute
Klass Attribute
Typ Array of Boolean
Flags Array
Elements 4
Kropp RtBody
Copy the value in SyncRawValue to the counter value, when rough sync is detected.
Actually, it is the write register that is copied to the counter value, and the
SyncRawValue is copied to the write register as system startup.
If CopWrRough is true, bit 13 is set in the configuration word of the counter.

CopWrFine Attribute
Klass Attribute
Typ Array of Boolean
Flags Array
Elements 4
Kropp RtBody
Copy the value in SyncRawValue to the counter value, when fine sync is detected.
Actually, it is the write register that is copied to the counter value, and the
SyncRawValue is copied to the write register as system startup.
If CopWrFine is true, bit 14 is set in the configuration word of the counter.

LoadWrReg Attribute
Klass Attribute
Typ Array of Boolean
Flags Array
Elements 4
Kropp RtBody
Copy the value in SyncRawValue to the write register and to the counter value.
If LoadWrReg is false, the value in SyncRawValue is copied to the write register, but
not the the counter value.
Bit 15 in the configuration word of the counter is set, if LoadWrReg is true.

LengthMeasurement Attribute
Klass Attribute
Typ Array of Boolean
Flags Array
Elements 4
Kropp RtBody
Length measurement, triggered by the rough sync signal.
If CopWrRough is true, the counter value will be reset when rough sync is detected,
if false, count will start from the previous value.
Bit 10 in the configuration word of the counter is set.

SpeedMeasurement Attribute
Klass Attribute
Typ Array of Boolean
Flags Array
Elements 4
Kropp RtBody
Speed measurement, pulses per second.
Bit 8 in the configuration word of the counter is set.

If both LengthMeasurement and SpeedMeasurement is set, the counter is only
affected in one direction.

SyncRawValue Attribute
Klass Attribute
Typ Array of UInt32
Flags Array
Elements 4
Kropp RtBody
Value copied to the counter value when rough or fine sync is detected.
The value in SyncRawValue is copied to the write register at system startup.
Due to values of CoWrRough an CoWrFine the value in the write register is
copied to the counter value, when a rough or fine sync is detected.

RegAddress Attribute
Klass Attribute
Typ UInt32
Flags
Kropp RtBody
QBUS address of the card.
The value is set with address switches on the card.
NoteThe value in RegAddress is a decimal value

	Card number	Octal address	Decimal address
	1		176300		4193472
	2		176320		4193488
	3		176340		4193504
	4		176360		4193520

The value is filled in when the object is created, calculated
from the current position of the object in the rack. If the
positions is changed the address can be updated with the SetAddress
method in the popup menu.

SwitchSettings Attribute
Klass Attribute
Typ UInt32
Flags
Kropp RtBody
Settings of the address switch on the board.
The value is filled in when the object is created, calculated
from the current position of the object in the rack. If the
positions is changed the settings can be updated with the SetAddress
method in the popup menu.

The settings are presented with an integer value, and leading zeros
are missing.

Process Attribute
Klass Attribute
Typ IoProcessMask
Flags
Kropp RtBody
Process that handles the card.

1: The card is read by the plc process, and is handled by a specific
   thread in the plc, which is specified in the ThreadObject attribute.
2: The card is read by the rt_io_comm process.
4: The card is handled by an application program.

ThreadObject Intern
Klass Intern
Typ Objid
Flags
Kropp RtBody
The PlcThread object of the plc thread that handles the card.
The card read to with the scantime of the thread.

DataSheet Attribute
Klass Attribute
Typ URL
Flags
Kropp RtBody
 A URL to the data sheet for the equipment of this object.
 The data sheet can be displayed from the popup menu for this object.

Ch1 Attribute
Klass Attribute
Typ ChanCo
Flags Class
Kropp RtBody
 Array with channel objects.

Ch2 Attribute
Klass Attribute
Typ ChanCo
Flags Class
Kropp RtBody

Ch3 Attribute
Klass Attribute
Typ ChanCo
Flags Class
Kropp RtBody

Ch4 Attribute
Klass Attribute
Typ ChanCo
Flags Class
Kropp RtBody