SBC PCD2/3.W745 Temperature measuring module Owner's manual

  • Hello! I am an AI chatbot trained to assist you with the SBC PCD2/3.W745 Temperature measuring module Owner's manual. I’ve already reviewed the document and can help you find the information you need or explain it in simple terms. Just ask your questions, and providing more details will help me assist you more effectively!
Document 26-796 | Edition ENG06 │ 2018-10-12
Manual
PCD2.W745 and PCD3.W745
Saia-Burgess Controls AG
Manual for PCD2.W745 and PCD3.W745 Document 26-796 ENG06 │ 2018-10-12
Content
0-1
0
0 Content
0.1 Document History ...........................................................................................0-2
0.2 Brands and trademarks .................................................................................0-2
1 Hardware
1.1 Introduction .....................................................................................................1-1
1.1.1 General ...........................................................................................................1-1
1.1.2 Function and application .................................................................................1-2
1.1.3 Main characteristics ........................................................................................1-2
1.1.4 Typical areas of use ........................................................................................1-2
1.2 Technical Data ................................................................................................1-3
1.3 Terminals and meaning of LEDs .....................................................................1-5
1.4 Presentation ...................................................................................................1-6
2 Conguration
2.1 Congurationofthemodule ...........................................................................2-1
2.2 Operating modes ............................................................................................2-2
2.3 Conguration&connectionexamples ............................................................2-4
3 Programming
3.1 Programming with Saia PCD
®
Classic ............................................................ 3-1
3.1.1 Programming with Saia PG5
®
FBoxes ...........................................................3-1
3.1.2 Programming with FBs ...................................................................................3-4
3.2 Programmingwithseriesxx7 .........................................................................3-7
A Appendix
A.1 Icons ...............................................................................................................A-1
A.2 ProgrammingexamplesforSaiaPCD
®
Classic systems ...............................A-2
A.3 Programmingexamplesforxx7series(inpreparation) .................................. A-6
A.4 CongurationonPCD3.T760RIOModule .....................................................A-7
A.5 Contact ..........................................................................................................A-8
Saia-Burgess Controls AG
Manual for PCD2.W745 and PCD3.W745 Document 26-796 ENG06 │ 2018-10-12
Content
0-2
0
0.1 DocumentHistory
Date Version Changes Remarks
2003-12-01 pEN01 - Preliminary Edition
2005-05-01 EN01 - Published Edition
2005-09-19 EN02 - New picture:
1.4 Block diagram
2012-05-02 EN03 - RegistersforusinginPCD3.T760
2012-08-10 EN04 - AppendixA:Addedchapter4Congurationon
PCD3.T760RIOModule
2013-10-10 EN05 - New logo and new company name
2018-10-10 ENG06 Chapt. A- Newphonenumber(validfromFebruary2015)
0.2 Brandsandtrademarks
Saia PCD
®
and Saia PG5
®
are registered trademarks of Saia-Burgess Controls AG.
STEP7
®
,SIMATIC
®
,S7-300
®
,S7-400
®
, and Siemens
®
are registered trademarks of
Siemens AG.
Technicalmodicationsarebasedonthecurrentstate-of-the-arttechnology.
Saia-Burgess Controls AG, 2018.
©
Allrightsreserved.
Published in Switzerland
Saia-Burgess Controls AG
Manual for PCD2.W745 and PCD3.W745 Document 26-796 ENG06 │ 2018-10-12
Hardware
1-1
1
Introduction
1 Hardware
1.1 Introduction
1.1.1 General
ThePCDx.W745isaprecisionanalogueinputmodulefortemperaturemeasurement
application.Linearizationandeachkindofcompensationaswellasconversioninto
°C, °F and K are carried out on this module. The module has four input channels,
whichcanbeconguredindividually.
Supported temperature sensors are:
● Thermocouples–TCtypeJ,K
● Resistivetemperaturedetectors–RTD’stypePt100,Pt1000,Ni100,Ni1000
Further, the module supports all common measurement techniques:
ForRTDs:
● Twowiresensorconnection
● Threewiresensorconnection
● Fourwiresensorconnection
For Thermocouples:
● Internalcoldjunctioncompensation:Thesensorsaredirectlyconnectedtothe
module I/O terminal.
● Externalcoldjunctioncompensation:Anexternalisothermalblockcanbeused.
Thetemperatureoftheexternaljunctionismeasuredusingchannel0.
Thecongurationofthefourinputchannelsisdonebysoftware.Everychannelcan
be used independently of the others.
Diagnostics:
ThemodulePCDx.W745providespowerfulsensordiagnostics:
● Overrangedetection
● Underrangedetection
● Linebreakdetection
● ShortcircuitdetectionforRTD’s
Galvanic separation:
ThemodulehasgalvanicseparationbetweenSaiaPCD
®
ground and the sensor
interface(500VDC).
Saia-Burgess Controls AG
Manual for PCD2.W745 and PCD3.W745 Document 26-796 ENG06 │ 2018-10-12
Hardware
1-2
1
Introduction
1.1.2 Functionandapplication
ThePCDx.W745moduleisusedtomeasuretemperaturesinprecisionandwide
temperature range applications.
On the module, a micro controller controls the acquisition of the input signals. De-
pendingthecongurationthecontrolleradjuststhemeasurementamplier,multi-
plexesthecurrentsourcestothesensors,andcontrolsthesamplingoftheinput
channels.
Thelinearizationcurvesforthesupportedtemperaturesensorsarestoredonthe
module.Therefore,theCPUcandirectlyreadtemperaturevaluesfromthemodule.
The powerful sensor diagnostics allows to detect wiring errors. So the module indi-
cateswhenasensorlineisbrokenornotconnected.Further,overrangeandunder-
range diagnostics indicates misuse of the chosen sensor type.
1.1.3 Maincharacteristics
● Highprecisiontemperatureacquisitionsystem
● GalvanicseparationbetweenSaiaPCD
®
ground and input interface
● Themodulesupportsabignumberofsensortypes
● ThermocouplesandRTDsonthesamemodule
● Fourinputchannels,software–congurable
● Built–inreferencejunctionforthermocouples
● Possibilitytouseexternalreferencejunction
● RTDmeasurementtechniques:2-,3-,4-Wireconnection
● 4inputclampsperchannel
1.1.4 Typicalareasofuse
● Temperatureregulation/supervisioninindustrialapplications
● Measurementofveryhightemperaturesusingthermocouples
Saia-Burgess Controls AG
Manual for PCD2.W745 and PCD3.W745 Document 26-796 ENG06 │ 2018-10-12
Hardware
1-3
1
Technical Data
1.2 TechnicalData
Technical specication
Allspecicationsat25°Cambienttemperature,unlessotherwisenoted.
Sensor types TC Type J TC Type K
Pt100
Pt1000
Ni100
Ni1000
Input range for tempera-
ture sensors
-210…1200°C¹
DIN IEC 584
-270…1372°C¹
DIN IEC 584
-200…850°C
DINIEC751
-60…250°C
DINIEC43760
Measurement range -75mV…+75mV
Pt/Ni100:0…600Ω
Pt/Ni1000:0…5000Ω
Resolution
0.1°C 0.1°C
2.5μV
0.01Ω(600Ωrange)
0.10Ω(5000Ωrange)
Measuring error in % of
fullscalevalue²
0.05 % 0.05 %
Measuring error
in °C
Alternativetothe“measuringerrorin%”specicationabove:
-100…+100°C:<0.4°C
-150…+500°C:<0.7°C
-150…+1000°C:<1.0°C
-100…+100°C:<0.3°C
-150…+500°C:<0.4°C
-200…+850°C:<0.5°C
Temperaturecoecient
offullscalevalue²
10 ppm/K 80 ppm/K
Sampling time
per channel
250 ms
Measurement resolution 16 bit
50Hzrejection
60Hzrejection
>75dB
> 60 dB
Line break detection
Short circuit detection x x
Linearization on Board
Compensation of cold
junctiontemperature
on Board N/A
Coldjunctioninternal Yes³ N/A
Coldjunctionexternal Yes N/A
Connection techniques
forresistors(RTD’s)
N/A
2-wire
3-wire
4-wire
Galvanicisolation 500 VDC between Saia PCD
®
and analogue inputs
¹)Forthermocouples,thefullmeasurementrangeisoered.Thespecicationsofresolutionandaccu-
racyaregivenfortemperatureshigherthan-150°C.Forlowertemperaturesthan-150°C,thechar-
acteristicsofthermocouplesbecomeworse.Ifthermocouplesareusedinthisverylowtemperature
range,thetoleranceshouldbecalculatedusingthetolerancespecicationsforthe±75mVrangeand
the thermocouple characteristic.
²)Measuringerrorin%andtemperaturecoecientspecicationsmadeforthemeasurementranges
±75mV,600Ω,5000Ω.
³)Technicaldataoftheinternalcoldjunctionarespeciedinthefollowingsection.
Saia-Burgess Controls AG
Manual for PCD2.W745 and PCD3.W745 Document 26-796 ENG06 │ 2018-10-12
Hardware
1-4
1
Technical Data
General specications
PCD2.W745 Temperaturemodule,supportsthermocouplestypeJ,Kand
RTD’stypePt100,Pt1000,Ni100,Ni1000
→SuitableforPCD1&PCD2systems
PCD3.W745 Temperaturemodule,supportsthermocouplestypeJ,Kand
RTD’stypePt100,Pt1000,Ni100,Ni1000
→SuitableforPCD3systems
Ambient temperature Operation: 0...+50°Cwithoutforcedventilation
Storage: -25...+85°C
Power supply: Noexternalpowersupplynecessary
Internal power consumption
from+5Vbus:
200 mA
Wiregauge: max.0.5mm
²
(AWG20)
WireStripping: Remove10mmofisolation
Internal reference junction (internal cold junction)
Thebuilt-inReferenceJunctionisusedwhenthermocouplesaredirectlyconnected
to the module.
Built-in Temperature sensor
Operating temperature range: 0…55°C
Resolution: 0.1°C
Measuring error at 25°C: 0.8°C
DriftoveroperatingTemperatureRange(0…55°C): 0.05°C/°C
Stabilization time: 5 min.
TheCPUsPCD1/2/3andthebasicunitsPCD3providethefollowinginternalsupply:
Type +5 V V+
PCD3.Mxxxx 600 mA 100 mA
PCD3.C200 1000 mA 100 mA
PCD3.T76x 650 mA 100 mA
PCD2.M1xx 1600 mA 200 mA
PCD2.M48x 2000 mA 200 mA
PCD1.M1xx 750mA 100 mA
UsersofPCDx.W745modulesareurgedtochecktheoverallcurrentconsumptionof
allmodulesinaPCD1/2/3andinanyC100orT76xexpansionunitstoensurethat
thismaximumisnotexceeded.
Whenworkingwithanexpansionunitandupto8W745modules,itisbettertoplace
thePCDx.W745modulesinthebaseunitandtoplug“normal”I/Omodulesintothe
expansionunit.Thiswilleliminateanyinuencessuchasapossiblevoltagedrop
overtheconnectingcablefromtheexpansionunittothebaseunit.
Saia-Burgess Controls AG
Manual for PCD2.W745 and PCD3.W745 Document 26-796 ENG06 │ 2018-10-12
Hardware
1-5
1
TerminalsandmeaningofLED’s
1.3 TerminalsandmeaningofLEDs
The I/O connector block is numbered from 0 to 16, beginning on the right hand side.
Error
Sensor Error
Run
Rth3+
Sens3+
+
Sens3-
GND
Rth2+
Sens2+
+
Sens2
-
GND
Rth 1+
Sens1+
+
Sens1
-
GND
Rth0+
Sens0+
+
Sens0
-
GND
Input 3
Input 2
Input 1
Input 0
15
14
11
8
7
6
3
0
16
GND
Label description
Name Description
RthX+ ConstantcurrentoutputforRTDmeasurement
SensX+ Positivelineofthedierentialvoltageinput(Sense+)
SensX- Negativelineofthedierentialvoltageinput(Sense–)
GND SensorGround,galvanicseparatedfromSaiaPCD
®
Ground
X:InputNumber0…3
Meaning of the LEDs:
Run: TheRunLEDblinkswhenthedataacquisitionisrunning
Error: The Error LED indicates that the module
hasnovalidconguration.
Sensor Error: Indicates that at least one of the inputs detects:
● noconnection
● linebreak
● shortcircuit
Thismoduleincludescomponentsthataresensitivetoelectrostaticdischarges.
Saia-Burgess Controls AG
Manual for PCD2.W745 and PCD3.W745 Document 26-796 ENG06 │ 2018-10-12
Hardware
1-6
1
Presentation
1.4 Presentation
Assembled module
Bus interface
Bus connector
power supply
Optocoupler
A/D converter
Analogue circuitry
Input filtering (EMC)
Diagnostic LEDs
Input clamp terminal
Galvanic separated
Block diagram
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
16
EMC Filter
source
&
MUX
Temperature
sensor
CJC int.
Input
Multiplexer
Optocoupler
SPI interface
I/O Bus interfaceBus connector
DC/DC converter
Insulated power
supply
Constant current
Saia-Burgess Controls AG
Manual for PCD2.W745 and PCD3.W745 Document 26-796 ENG06 │ 2018-10-12
2
Conguration
2-1
Congurationofthemodule
2 Conguration
2.1 Congurationofthemodule
Themodulehasfourinputchannels,whichareindividuallycongurable:
Input ranges / sensor types:
Thermocouples(TC) TypeJ/KaccordingtoIEC584
ResistiveTemperaturedetectors(RTD)
Pt100/Pt1000accordingtoIEC751
Ni100/Ni1000accordingtoDIN43760
Sensor type Range Output value Units
TC
Type K
(NiCr-Ni)
-270…+1372°C
-454…+2501°F
+3…+1645K
-2700…+13720
-4540…+25010
+30…+16450
1/10°C
1/10°F
1/10 K
TypeJ
(Fe-CuNi)
-210…+1200°C
-346…+2192°F
+63…+1473K
-2100…+12000
-3460…+21920
+630…+14730
1/10°C
1/10°F
1/10 K
RTD
Pt100 -200…+850°C
-328…+1562°F
+73…+1123K
-2000…+8500
-3280…+15620
+730…+11230
1/10°C
1/10°F
1/10 K
Pt1000 -200…+850°C
-328…+1562°F
+73...+1123K
-2000…+8500
-3280…+15620
+730…+11230
1/10°C
1/10°F
1/10 K
Ni100 -60…+250°C
-76…+482°F
+213…+523K
-600…+2500
-760…+4820
+2130…+5230
1/10°C
1/10°F
1/10 K
Ni1000 -60…+250°C
-76…+482°F
+213…+523K
-600…+2500
-760…+4820
+2130…+5230
1/10°C
1/10°F
1/10 K
mV ±75mV -75…+75mV -30000…+30000 2.5μV*
Ohm
600Ω 0…600Ω 0…60000 10mΩ
5000Ω 0…5000Ω 0…50000 100mΩ
*mVrange:Outputvalue•2.5=voltageinμV
Connection & compensation techniques:
Connection / compensation techniques
RTD
Ohm
2–Wireconnection
3–Wireconnection
4–Wireconnection
TC
Internalreferencejunction(CJCint.)
Externalreferencejunction(CJCext.)**
mV Voltage measurement using sense inputs
**Inthisoperatingmode,input0isusedtomeasurethetemperatureofthe
externalreferencejunction.
Saia-Burgess Controls AG
Manual for PCD2.W745 and PCD3.W745 Document 26-796 ENG06 │ 2018-10-12
2
Conguration
2-2
Operating modes
Measurement unit:
Themeasurementunitfortemperaturesensorscanbeconguredpermodule:
°C: Temperature output in 1/10 °C
°F: Temperature output in 1/10 °F
K: Temperature output in 1/10 K
ForvoltageandOhminputranges,thiscongurationtakesnoeect.
2.2 Operatingmodes
RTD and resistance measurement
ThemodulesupportsdirectconnectionofResistiveTemperatureDetectors(RTDs).
For this purpose, a precision current source supplies the sensors with a measure-
mentcurrentof250μA.
2 – Wire connection
The wiring resistance can not be compensated.
PCD x.W745
RthX+
SensX+
SensX -
GND
3 – Wire connection
Thevoltagedropoveroneofthetwosupplylinesismeasured.Assumingthatboth
supplylineshavethesameresistance,thewiringerroriscalculatedandcompen-
sated.
• Usethesamewiretypeforbothsupplylines
• Besurethatthelength/temperaturedistributionoverbothsupplylinesisiden-
tical
PCD x.W745
RthX+
SensX+
SensX -
GND
RTD
Saia-Burgess Controls AG
Manual for PCD2.W745 and PCD3.W745 Document 26-796 ENG06 │ 2018-10-12
2
Conguration
2-3
Operating modes
4 – Wire connection
Inthisoperatingmode,theinuenceofthesupplylinesiscompletelyeliminated.The
eectivevoltageonthetemperaturesensorismeasuredusingtwohigh–impedance
sense lines.
PCD x.W745
RthX+
SensX+
SensX-
GND
RTD
Thermocouple measurement
ThemodulePCDx.W745canbeconguredtomeasuretemperatureusingthermo-
couples.
Physical principle (Seebeck voltage):
Thetwodierentmetalsofthethermocouplegenerateasmallvoltage,whenthe
measurementjunctiontemperatureisdierentfromthereferencejunctiontempera-
ture.Thisvoltageallowstodeterminethetemperaturedierencebetweenthetwo
junctions.
Tocalculatetheabsolutetemperature,thereferencejunctiontemperaturemustbe
known.
Internal reference junction (CJC int. – Cold Junction Compensation internal)
In this operating mode, the thermocouples are directly connected to the input clamp
ofthePCDx.W745.Themodulemeasuresthetemperatureoftheclampterminaland
calculatesthetemperatureofthemeasurementjunction.
Thetemperatureoftheinputclampterminalshouldnotbeinuencedfromexternally,
forexamplethroughforcedairventilationorheatsourcesclosetotheclampterminal.
External reference junction (CJC ext. – Cold Junction Compensation external)
Thismodeisusedwhenanexternalisothermalclampisused.Thethermocouples
areconnectedtotheisothermalclamp;thevoltagesignalfromthethermocouplesis
transmitted to the module using copper wires.
Tocalculatetheabsolutetemperatureatthemeasurementjunction,thetemperature
oftheexternalisothermalclampterminalmustbemeasured.OnthemodulePCDx.
W745,input0isusedtoacquirethistemperature.Allselectabletemperaturesensors
canbeusedforthemeasurementoftheexternalreferencejunctiontemperature.
Saia-Burgess Controls AG
Manual for PCD2.W745 and PCD3.W745 Document 26-796 ENG06 │ 2018-10-12
2
Conguration
2-4
Conguration&connectionexamples
Connection of thermocouples
PCD x.W745
RthX+
SensX+
SensX
-
GND
Voltage measurement
Connection of ± 75 mV signal sources
PCD x.W745
RthX+
SensX+
SensX
-
GND
Voltage source
75 mV)
2.3 Conguration&connectionexamples
General example for RTD and thermocouple connection:
Input 3
Sensor:
TC K
Comp.:
CJCint
Rth3+
Sens3+
Sens3 -
GND
Input 2
Sensor:
Pt100
Conn.:
3-wire
Rth2+
Sens2+
Sens2 -
GND
Input 1
Sensor:
Ni 1000
Conn.:
2-wire
Rth1+
Sens1+
Sens1-
GND
Input 0
Sensor:
Pt100
Conn.:
4-wire
Rth0+
Sens0+
Sens0
-
GND
RTD
Pt100
RTD
Pt100
RTD
Ni1000
PCDx.W745
Saia-Burgess Controls AG
Manual for PCD2.W745 and PCD3.W745 Document 26-796 ENG06 │ 2018-10-12
2
Conguration
2-5
Conguration&connectionexamples
Use of an external isothermal block (CJCext)
Input 0 temperature is used to make the
coldjunctioncompensationforallthermo-
coupleinputsconguredforCJCext.
(Inthissetupforchannel2)
Externalreferencejunction(CJCext.)
Isothermal block
RTD:Pt100/4-wire,usedtomeasurethe
temperature of the isothermal block
Input 3
Sensor:
TC J
Comp.:
CJCint
Rth3+
Sens3+
Sens3
-
GND
Input 2
Sensor:
TC K
Comp.:
CJCext
Rth2+
Sens2+
Sens2-
GND
Input 1
Sensor:
Ni 100
Conn.:
3-wire
Rth1+
Sens1+
Sens1-
GND
Input 0
Sensor:
Pt100
Conn.:
4-wire
Rth0+
Sens0+
Sens0
-
GND
Thermo
couple
type J
Thermocouple
type K
RTD
Ni100
PCDx.W745
Copper wires
Saia-Burgess Controls AG
Manual for PCD2.W745 and PCD3.W745 Document 26-796 ENG06 │ 2018-10-12
Programming
Programming with PCD Classic
3
3-1
3 Programming
3.1 ProgrammingwithSaiaPCD
®
Classic
3.1.1 ProgrammingwithSaiaPG5
®
FBoxes
Fortheeasyuseofthetemperaturemodule,anFBoxcalledPCD2.W745isincluded
inthestandardanalogueFBoxlibraryofSaiaPG5
®
.
Firstofall,thisFBoxallowsconguringthemoduleaccordingtotheindividualmeas-
urementsetup.OncetheFBoxhasconguredthemodule,itswitchesautomatically
indataacquisitionmode.Inadditiontothereadingoftheanaloguevaluesfromthe
W745,theFBoxdeliverspowerfuldiagnosticinformationaboutsensorfailures.
Forcorrectworking,theFBoxshouldbeplacedinacyclicorganisationblock(COB).
FBoxname: AnamecanoptionallybegiventotheFBox.
WhenseveralFBoxesareused,FBoxmusthaveanindividualname.
in0…in3: Analogueinputvalues(Format/Unit:Seechapter2)
Error: Channel errors, one byte per input channel:
Error register
Input 3 Input 2 Input 1 Input 0
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
x x x x x x x x x x x x x x x x
Comm. error Comm. error Comm. error Comm. error
Sensor error Sensor error Sensor error Sensor error
Underrange Underrange Underrange Underrange
Overrange Overrange Overrange Overrange
Overrange: Measuredvalueistoohighforselectedrange
Underrange: Measuredvalueistoolowforselectedrange
Sensor error: Line break / Open line / No sensor connected
Comm.error: Communicationerror(noresponsefrommoduleW745)
X: Notused
Add: Module base address
LED: Green: Everythingok
Red: Atleastoneerrorbitset
Saia-Burgess Controls AG
Manual for PCD2.W745 and PCD3.W745 Document 26-796 ENG06 │ 2018-10-12
Programming
Programming with PCD Classic
3
3-2
AdjustWindow:
Error Display of communication errors with the module.
Clear button Button to clear the error.
Initialize module Shows module initialization progress.
Init button Buttontoforcemanuallyacheckofthemoduleconguration.If
necessary,themodulewillberecongured.
Temperature unit
Selection of temperature unit:
-Celsius: Temperaturevaluesin1/10°C
-Fahrenheit: Temperaturevaluesin1/10°F
-Kelvin: Temperaturevaluesin1/10K
Channel 0 to 3:
Sensor type Selection of sensor type.
Conguration/Connection Selectionofinputconguration/connection.
Oset Optionalconstanttemperatureosettocorrectcablingorsensor
error.
Filter T2 OptiontoinsertaT2lter.Theuseofthelterrequires5supple-
mentary registers for each channel
Filter time Timeconstant(2timesthesamevalue)oftheT2lter.
Diagnose Diagnoseofthechannel.ShowsOverrange,Underrange,Sensor
failure and Communication error.
Saia-Burgess Controls AG
Manual for PCD2.W745 and PCD3.W745 Document 26-796 ENG06 │ 2018-10-12
Programming
Programming with PCD Classic
3
3-3
Conguration/Connection
Voltage 2 Wires 3 Wires 4 Wires Internal
comp
External
comp
Sensor type
Not Used
Pt100
Pt1000
Ni100
Ni1000
R600
R5000
K
J
Voltage
Remarks:
● WhenCJCextiscongured,thetemperatureoftheexternalreferencejunc
tionismeasuredusingchannel0.Therefore,channel0can’tbeconguredfor
CJCext.
● Ifawrongcongurationissenttothemodule,theNoCongindicatorbecomes
high and the module does not go in data acquisition mode.
Fordetailedinformationaboutconnectionanduseofthedierentsensortypes,
please refer to chapter 2.
Saia-Burgess Controls AG
Manual for PCD2.W745 and PCD3.W745 Document 26-796 ENG06 │ 2018-10-12
Programming
Programming with PCD Classic
3
3-4
3.1.2 ProgrammingwithFBs
TousethePCDx.W745inSaiaPCD
®
Classicsystems,FBsaredeliveredinthe
Saia PG5
®
package.
FB Init
The Init FB has the following parameter structure:
FB Init
Parameter Type Description
K 1…16 [K] input moduleNumberaccordingtoleD2W745_B.mba
TC_K* [K] input Sensor type CH0
CJCint* [K] input Conguration/connectionCH0
TC_K* [K] input Sensor type CH1
CJCint* [K] input Conguration/connectionCH1
TC_K* [K] input Sensor type CH2
CJCint* [K] input Conguration/connectionCH2
TC_K* [K] input Sensor type CH3
CJCint* [K] input Conguration/connectionCH3
Celsius* [K] input Measurement unit
InitError [F] output Initialization error indicator
WrongCong [F] output Noorwrongcongurationindicator
NoCalibration [F] output Internal module calibration check
*Seetablebelowforpredenedcongurationcodes.
Predenedcongurationcodesforthesupportedtemperaturesensors:
Conguration / Connection
CJCint CJCext R2wire R3wire R4wire Voltage NotUsed
Input range
TC_K
TC_J
Pt100
Ni100
Pt1000
Ni1000
U75mV
R600
R5000
NotUsed
● WhenCJCextiscongured,thetemperatureoftheexternalreferencejunction
ismeasuredusingchannel0.Therefore,channel0can’tbeconguredfor
CJCext.
● Ifawrongcongurationissenttothemodule,theNoCongindicatorbecomes
high and the module does not go in data acquisition mode.
Predenedcongurationcodesforthemeasurementunit:
Celsius Temperaturevaluein1/10°C
Themoduleconvertsthemeasuredvalue
in the selected measurement unit.
Fahrenheit Temperaturevaluein1/10°F
Kelvin Temperaturevaluein1/10K
Saia-Burgess Controls AG
Manual for PCD2.W745 and PCD3.W745 Document 26-796 ENG06 │ 2018-10-12
Programming
Programming with PCD Classic
3
3-5
Thetemperatureunithasnoinuencetovoltage/ohmmeasurementranges.
FB Exec
Parameter structure:
FB Exec
Parameter Type Description
K 1…16 [K] input ModuleNumberaccord.toleD2W745_B.mba
ValueCH0 [R]output MeasuredvalueCH0
OverR_0 [F] output OverRangeindicatorforinput0
UnderR_0 [F] output UnderRangeindicatorforinput0
SnsFail_0 [F] output Sensor fail indicator for input 0
T CH1 [R]output Temperaturevalueinput1in1/10[Unit]
OverR_1 [F] output OverRangeindicatorforinput1
UnderR_1 [F] output UnderRangeindicatorforinput1
SnsFail_1 [F] output Sensor fail indicator for input 1
T CH2 [R]output Temperaturevalueinput2in1/10[Unit]
OverR_2 [F] output OverRangeindicatorforinput2
UnderR_2 [F] output UnderRangeindicatorforinput2
SnsFail_2 [F] output Sensor fail indicator for input 2
T CH3 [R]output Temperaturevalueinput3in1/10[Unit]
OverR_3 [F] output OverRangeindicatorforinput3
UnderR_3 [F] output UnderRangeindicatorforinput3
SnsFail_3 [F] output Sensor fail indicator for input 3
NoResponse [F] output Module not ready indicator
Temperaturevalue:
SignedInteger,representsthemeasuredvalueaccordingtotheselectedinputrange.
Diagnosticags:
Overrange/Underrangeindicatorsbecomeactivewhenthemeasurementvalueis
outsideofthespeciedrangeforthechosensensortype.
Sensorfailindicateserrorsinsensorconnection.ForRTDs,shortsandopenscanbe
detectedonboth,supplylinesandsenselines.Forthermocouples,theagindicates
line break.
NoResponse:
NoresponsefromW745.Checkifthemoduleispresentonthechosenbasead-
dress.
FB Status
Parameter structure:
FB Status
Parameter Type Description
K 1...16 [K] input moduleNumberaccord.toleD2W745_B.mba
MeasRun [F] output High when data acquisition is running
DiagRun [F] output High when sensor diagnostic is running
ComRun [F] output HighwhencommunicationtoW745ok
Saia-Burgess Controls AG
Manual for PCD2.W745 and PCD3.W745 Document 26-796 ENG06 │ 2018-10-12
Programming
Programming with PCD Classic
3
3-6
MeasRunning:
High state indicates that the data acquisition is running.
Afterstart-up,thisindicatorstayslowduringtherstsamplingcycle.Atthetimeit
goeshigh,allofthefourinputchannelshaveanactualvaluewhichcanbereadout.
DiagRunning:
Highstatemeansthatthesensordiagnosticisrunning(Overrange/Underrange/
SensorFail)
Afterstart-up,theDiagRunningagstayslowduringtherstsensorfailcheckcycle.
Whenitswitchestohighstate,allsensorsarecheckedandthechanneldiagnostics
arevalid.
ComRunning:
Thisagbecomeshighwhenthecommunicationtothemoduleisok.
Installation of the FBs
Thefollowing3lesarenecessary:
● D2W745_B.src
● D2W745_B.equ
● D2W745_B.mba
Saia PG5
®
libraryles:
The*.srcandthe*.equlesshouldbeintheSaiaPG5
®
FB library:
C:\…\SBC\PG5xxx\Libs\FB\...
ModuleBaseAddressdenition:
The*.mbalemustbeaddedtotheSaiaPG5
®
project.Thislecanbemodiedby
theuseraccordingtothenumberofusedW745modulesandthecorrespondingbase
addresses.
Include the FBs:
TheleD2W745_B.equmustbeincludedintheprogramlebeforetheFBscanbe
called:
$INCLUDE D2W745_B.equ
Use in a cyclic organisation structure
ThesamplingtimeofthePCDx.W745moduleis250msperchannel.Toachievebest
systemperformance,itisrecommendedtoimplementa‘NoCommunication’timer.
IntheexampleintheAppendixa100mstimerisimplemented.SotheFBsExec
andStatusareexecutedinmaximumevery100ms.Thisreducesunnecessarydata
transfersontheI/OBusandimprovesthesystemperformance.
1/34