CPM2A_PROGRAMMING MANUAL (W353-E1-2) (986750), страница 30
Текст из файла (страница 30)
Temperature data will not be converted correctly if the temperature range does not match the sensor.! CautionDo not set the temperature range to any values other than those for which temperature ranges are given in the following table. An incorrect setting may causeoperating errors.CPM1A-TS001/002CPM2C-TS001SettingInputtype0K12J34 to F1823-2---RangeRange(°C)(°F)–200 to–300 to1,3002,3000.0 to0.0 to500.0900.0–100 to–100 to8501,5000.0 to0.0 to400.0750.0Setting not possibleCPM1A-TS101/102CPM2C-TS101InputtypePt100JPt100-------RangeRange(°C)(°F)–200.0 to –300.0 to650.01,200.0–200.0 to –300.0 to650.01,200.0Setting not possibleSectionTemperature Sensor Units3-23-2-6 Connecting Temperature SensorsCPM1A/CPM2A Temperature Sensor UnitsThermocouplesCPM1A-TS001Either K or J thermocouples can be connected, but both of the thermocouplesmust be of the same type and the same input range must be used for each.Input 0+Input 0–Input 1+Input 1–NCNCNCNCNCNCNCNCTemperature input 0Temperature input 1Cold junction compensatorCPM1A-TS002Either K or J thermocouples can be connected, but all four of the thermocouplesmust be of the same type and the same input range must be used for each.Input 0+Input 0–Input 1+Input 1–Input 2+NCNCTemperatureinput 0Temperatureinput 1NCInput 3+Input 2–NCInput 3–Temperatureinput 2Cold junctioncompensatorTemperatureinput 3Note When using a Temperature Sensor Unit with a thermocouple input, observe thefollowing precautions:• Do not remove the cold junction compensator attached at the time of delivery.
If the cold junction compensator is removed, the Unit will not be able tomeasure temperatures correctly.• Each of the input circuits is calibrated with the cold junction compensatorattached to the Unit. If the Unit is used with the cold junction compensatorfrom other Units, the Unit will not be able to measure temperatures correctly.• Do not touch the cold junction compensator. Doing so may result in incorrect temperature measurement.183SectionTemperature Sensor Units3-2Platinum ResistanceThermometersCPM1A-TS101Either Pt100 or JPt100 platinum resistance thermometers can be connected,but both of the thermometers must be of the same type and the same input rangemust be used for each.Input 0AInput 0BInput 1AInput 0BPtNCInput 1BInput 1BNCNCNCNCNCNCNCPtTemperature input 0Temperature input 1CPM1A-TS102Either Pt100 or JPt100 platinum resistance thermometers can be connected,but all four of the thermometers must be of the same type and the same inputrange must be used for each.Input 0AInput 0BInput 1AInput 0BPtTemperatureinput 0Input 1BPtTemperatureinput 1Input 2ANCInput 1BNCInput 2BInput 3AInput 2BPtTemperatureinput 2Note Do not connect anything to terminals not used for inputs.184Input 3BInput 3BPtTemperatureinput 3SectionTemperature Sensor Units3-2CPM2C Temperature Sensor UnitsCPM2C-TS001 (Thermocouples)Either K or J thermocouples can be connected, but both of the thermocouplesmust be of the same type and the same input range must be used for each.0+0–Temperature input 0NC1+1–Temperature input 1NCCold junctioncompensatorNote When using a Temperature Sensor Unit with a thermocouple input, observe thefollowing precautions:• Do not touch the cold junction compensator.
Doing so may result in incorrect temperature measurement.CPM2C-TS101 (Platinum Resistance Thermometers)Either Pt100 or JPt100 platinum resistance thermometers can be connected,but both of the thermometers must be of the same type and the same input rangemust be used for each.0APtTemperature input 00B0B1APtTemperature input 11BNC3-2-7 Ladder ProgrammingConverted TemperatureDataThe temperature data will be stored in the input words allocated to the Temperature Sensor Unit in 4-digit hexadecimal.CPM1A-TS001/TS101 and CPM2C-TS001/TS101“m” is the last word allocated to the CPU Unit, Expansion I/O Unit, or ExpansionUnit connected immediately before the Temperature Sensor Unit.WordContentsm+1Converted temperature data from input 0m+2Converted temperature data from input 1CPM1A-TS002/TS102“m” is the last word allocated to the CPU Unit, Expansion I/O Unit, or ExpansionUnit connected immediately before the Temperature Sensor Unit.WordContentsm+1Converted temperature data from input 0m+2Converted temperature data from input 1m+3Converted temperature data from input 2m+4Converted temperature data from input 3All Temperature Sensor UnitsNegative values are stored as 2’s complements.
Data for range codes that in-185SectionTemperature Sensor Units3-2clude one digit after the decimal point are stored without the decimal point, i.e.,10 times the actual value is stored. Some examples are provided in the followingtable.InputData conversion examplesUnit: 1°K or JUnit: 0.1°K, J, Pt or JPt850° → 0352 Hex–200° → FF38 Hex×10500.0° → 5000 → 1388 Hex–20.0° → –200 → FF38 Hex–200.0° → –2000 → F830 HexIf the input temperature exceeds the range that can be converted, the convertedtemperature data will be held at the maximum or minimum value in the range. Ifthe input temperature exceeds the range by more than a specified amount, theopen-circuit detection function will detect an open-circuit and the converted temperature data will be set to 7FFF.
The open-circuit detection function will alsooperate if the cold junction compensator is faulty. The open-circuit detectionfunction will be automatically cleared and normal input temperature conversionwill begin automatically when the input temperature returns to the convertiblerange.After power is turned ON, it will require approximately 1 s before the first data isconverted. The following instructions can be placed at the beginning of the program and then IR 02000 can be used to delay reading converted data until conversion is actually begun.Startup Operation25313(Always ON Flag)CMP (20)001#7FFEUser flag indicating that temperature dataconversion has begun.25506 (=)02000User-defined flag indicating that initialization has been completedNote Input data will be 7FFF until actual conversion starts.Handling Unit ErrorsIf an error occurs in an Expansion Unit, the Error Flags in AR 0200 to AR 0204will be turned ON ( AR 0200 to AR 0202 for the CPM1A/CPM2A).
Refer to page544 for details. The addresses of the Error Flags are in order that the ExpansionUnits are connected in the PC, with AR 0200 used for the Expansion Unit closestto the CPU Unit. Use these flags in the program when it is necessary to detecterrors.When an error occurs in a Temperature Sensor Unit, converted temperaturedata will be 7FFF.Note The status of AR 0200 to AR 0204 will not change for the open-circuit detectionfunction.Programming Example 1186The following programming example shows how to convert the input data from 2temperature sensor inputs to BCD and store the result in DM 0000 andDM 0001. The following system configuration is used.SectionTemperature Sensor Units20-point CPU UnitInputsIR 000OutputsIR 0103-2Temperature Sensor UnitInputsIR 001IR 002OutputsNoneTemperature unit setting:Two-decimal-place Mode:Input range setting:Temperature input 0 storage word:Temperature input 1 storage word:OFF (°C)OFF (normal)1 (K2, 0.0 to 500.0°C)IR 001IR 002187SectionTemperature Sensor Units3-225313(Always ON Flag)Detects completion of input 0 initialization.CMP (20)001#7FFE25506(=)02000ON when input 0 has been initialized25313(Always ON Flag)Detects completion of input 1 initialization.CMP (20)002#7FFE255060200102000ON when input 1 has been initializedExecution conditionCMP (20)001Detects an open-circuit alarm or Unit error by checking converted temperature data for the error code7FFF.#7FFF25506(=)01000CMP (20)001ON when an open-circuit alarm or Unit error has beendetected for input 0.Checks to see if the temperature data in IR 001 hasexceeded 500.0°C (1388 Hex without decimal point).#138825505(>)01001ON for an input 0 temperature error25507(<)BCD (24)001Converts the contents of IR 001 (temperature datafor input 0) to BCD and stores the result inDM 0000.DM000002001Execution conditionCMP (20)002#7FFF25506(=)01002CMP (20)002Detects an open-circuit alarm or Unit error by checking converted temperature data for the error code7FFF.ON when an open-circuit alarm or Unit error has beendetected for input 1.Checks to see if the temperature data in IR 002 hasexceeded 500.0°C (1388 Hex without decimal point).#138825505(>)01003ON for an input 1 temperature error25507(<)BCD (24)002DM0001188Converts the contents of IR 002 (temperature datafor input 1) to BCD and stores the result inDM 0001.SectionTemperature Sensor UnitsProgramming Example 220-point CPU UnitInputsIR 000OutputsIR 0103-2The following programming example shows how to convert the data for temperature input 0 to BCD and store the result in DM 0000 and DM 0001.