CPM2A_PROGRAMMING MANUAL (W353-E1-2) (986750), страница 27
Текст из файла (страница 27)
When“m” is the last allocated input word and “n” the last allocated output word on theCPU Unit, or previous Expansion Unit or Expansion I/O Unit, the allocation willbe as follows:Analog I/O Unit(m + 1)(m + 2)2 analog inputs1 analog output(n + 1)For example, in the following diagram an Analog I/O Unit is connected to a CPUUnit with 30 I/O points.Input addressIR 000IR 00130-point CPUUnitOutput addressIR 010IR 011IR 002IR 003Analog I/OUnitIR 012159SectionAnalog I/O Units3-1Wiring Analog I/O DevicesAnalog Input Wiring2-core shieldedtwisted-pair cableAnalogoutputdevicevoltageoutputAnalogoutputdevicecurrentoutputAnalog I/O Unit250 Ω10 kΩ250 Ω10 kΩAnalog Output WiringVoltage OutputsAnalog I/O Unit2-core shieldedtwisted-pair cableAnaloginputdevicevoltageinputCurrent OutputsAnalog I/O Unit2-core shieldedtwisted-pair cableAnalogoutputdevicecurrentinputFor analog outputs it is possible to use both voltage outputs and current outputsat the same time, but the total current output must not exceed 21 mA.Note1.2.3.4.5.6.Use 2-core shielded twisted-pair cables.Wire away from power lines (AC power supply wires, power lines, etc.)When an input is not being used, short V IN and I IN to the COM terminal.Use crimp terminals.
(Tighten terminals to a torque of 0.5 N⋅m.)When using current inputs, short V IN to I IN.When there is noise in the power supply line, install a noise filter on the inputsection and the Power Supply Unit.Ladder ProgramSpecifying the Range CodeSpecify the I/O signal range by writing the range code to the Analog I/O Unit’soutput word from the ladder program in the first cycle of program execution. TheAnalog I/O Unit will start to convert analog I/O values once the range code hasbeen specified. (Refer to page 158.)Write the range code to the Analog I/O Unit’s output word in the first cycle of operation; the Analog I/O Unit’s output word is “n+1” when “n” is the last word allo-160SectionAnalog I/O Units3-1cated to the CPU Unit, or previous Expansion Unit or Expansion I/O Unit in theconfiguration.Reading Converted Analog Input ValuesA ladder program can be used to read the memory area where the convertedvalues are stored.
Values are output to the next two words (m + 1, m + 2) following the last input word (m) allocated to the CPU Unit, or previous Expansion Unitor Expansion I/O Unit.(m + 1)0000000Analog input 1Open-circuitDetection FlagAnalog input 1 conversion value (Hex: 00 to FF)0: Normal1: Open-circuit(m + 2)0000000Analog input 2 conversion value (Hex: 00 to FF)Analog input 2Open-circuitDetection Flag0: Normal1: Open-circuitNote The Open-circuit Detection Flag is turned ON when the input signal range is setto 1 to 5 V or 4 to 20 mA and the input signal falls below 1 V or 4 mA.
(Open circuits are not detected when the input signal range is set to 0 to 10 V.)Writing Analog Output Set ValuesA ladder program can be used to write data to the output word where the set value is stored. The output word will be “n+1” when “n” is the last output word allocated to the CPU Unit, or previous Expansion Unit or Expansion I/O Unit.(n + 1)0000000Sign bit(Used when the output signal range is –10 to 10 V.)1, 2, 3...Set value (Hex: 00 to FF)1.
The set value range is 0000 to 00FF when the output signal range is 0 to10 V/4 to 20 mA.2. The set value range is divided into two parts: 80FF to 8000 (–10 to 0 V) and0000 to 00FF (0 to 10 V) when the output signal range is –10 to 10 V.ExampleAnalog Input Program ExampleAnalog I/O Unit ConnectionIn this example, an Analog I/O Unit is connected to a CPU Unit with 30 I/O points.I/O words are allocated to the Analog I/O Unit beginning with the next word address following the last words allocated to the CPU Unit.Input wordsOutput wordsIR 000IR 001IR 002IR 003CPU Unit with30 I/O pointsAnalog I/OUnitIR 010IR 011IR 012161SectionAnalog I/O UnitsAnalog I/O WiringUsing analog input 1 as a voltage inputUsing analog input 2 as a current inputCommon (–)Current input 2 (+)Common (–)Voltage input 1 (+)Using analog output as a voltage outputCommon (–)Voltage output (+)Analog I/O SettingsInput 1 signal range:0 to 10 VInput 2 signal range:4 to 20 mAOutput signal range:0 to 10 VRange Code Setting:FF04IR 012Range code: FF04ProgramSR 25315(First Cycle ON Flag)(21)4Writes the range code (FF04) to the Unit.Execution condition(21)Reads analog input 1’s converted value.Execution condition(21)Reads analog input 2’s converted value.Execution condition(21)The content of DM0010 is written to the outputword as the analog output set value.1623-1SectionAnalog I/O Units3-13-1-2 CPM2C Analog I/O UnitsA maximum of 5 Expansion Units or Expansion I/O Units, including up to 4CPM2C-MAD11 Analog I/O Units, can be connected to a CPM2C PC.
One Analog I/O Unit allows 2 analog inputs and 1 analog output. With the maximum of 4Analog I/O Units connected, 8 analog inputs and 4 analog outputs are possible.• The analog input range can be set to 0 to 5 VDC, 1 to 5 VDC, 0 to 10 VDC, –10to 10 VDC, 0 to 20 mA, or 4 to 20 mA. The inputs have a resolution of 1/6000.• An open-circuit detection function can be used with the 1 to 5 VDC and 4 to20 mA settings.• The analog output range can be set to 1 to 5 VDC, 0 to 10 VDC, –10 to 10 VDC,0 to 20 mA, or 4 to 20 mA. The outputs have a resolution of 1/6000.CPU UnitCPM2C Analog I/O UnitsExpansion I/O UnitTwo analog inputs and oneanalog output for each UnitItemAnalogInputSectionNumber of inputsInput signal rangeMax. rated inputExternal input impedanceResolutionOverall accuracy25°C0 to 55°CA/D conversion dataAnalogOutputSectionAveraging functionOpen-circuit detection functionNumber of outputsOutput signal rangeAllowable external output loadresistanceExternal output impedanceResolutionOverall accuracy25°C0 to 55°CSet data (D/A conversion)Conversion timeIsolation methodVoltage I/O2 inputs (2 words allocated)0 to 5 VDC, 1 to 5 VDC,0 to 10 VDC, or –10 to 10 VDC±15 V1 MΩ min.1/6000 (full scale)0.3% full scale0.6% full scale16-bit binary (4-digit hexadecimal)Current I/O0 to 20 mA or 4 to 20 mA±30 mA250 Ω0.4% full scale0.8% full scaleFull scale for –10 to 10 V: F448 to 0BB8 HexFull scale for other ranges: 0000 to 1770 HexSupported (Settable for individual inputs via DIP switch)Supported1 output (1 word allocated)1 to 5 VDC, 0 to 10 VDC, or0 to 20 mA or 4 to 20 mA–10 to 10 VDC,1 kΩ min.600 Ω max.0.5 Ω max.1/6000 (full scale)0.4% full scale0.8% full scale16-bit binary (4-digit hexadecimal)---Full scale for –10 to 10 V: F448 to 0BB8 HexFull scale for other ranges: 0000 to 1770 Hex2 ms/point (6 ms/all points)Photocoupler isolation between analog I/O terminals and internal circuits.No isolation between analog I/O signals.163SectionAnalog I/O Units3-1Analog I/O Signal RangesAnalog I/O signal ranges are digitally converted as described in this section.Analog Input SignalRangesThe Analog I/O Unit converts analog input data to digital values.
The digital values depend on the input signal ranges, as shown in the following diagrams.When the input exceeds the specified range, the AD converted data will be fixedat either the lower limit or upper limit.–10 to 10 VThe –10- to 10-V range corresponds to the hexadecimal values F448 to 0BB8(–3000 to 3000). The entire data range is F31C to 0CE4 (–3300 to 3300). A negative voltage is expressed as a two’s complement.Converted DataHexadecimal (Decimal)0CE4 (3300)0BB8 (3000)–11 V –10 V0000 (0)0V10 V 11 VF448 (–3000)F31C (–3300)0 to 10 VThe 0- to 10-V range corresponds to the hexadecimal values 0000 to 1770 (0 to6000). The entire data range is FED4 to 189C (–300 to 6300).
A negative voltageis expressed as a two’s complement.Converted DataHexadecimal (Decimal)189C (6300)1770 (6000)0000 (0)–0.5 VFED4 (–300)1640V10 V 10.5 VSectionAnalog I/O Units3-10 to 5 VThe 0- to 5-V range corresponds to the hexadecimal values 0000 to 1770 (0 to6000). The entire data range is FED4 to 189C (–300 to 6300). A negative voltageis expressed as a two’s complement.Converted DataHexadecimal (Decimal)189C (6300)1770 (6000)0000 (0)–0.25 VFED4 (–300)0V5 V 5.25 V1 to 5 VThe 1- to 5-V range corresponds to the hexadecimal values 0000 to 1770 (0 to6000). The entire data range is FED4 to 189C (–300 to 6300).
Inputs between0.8 and 1 V are expressed as two’s complements. If the input falls below 0.8 V,open-circuit detection will activate and converted data will be 8000.Converted DataHexadecimal (Decimal)189C (6300)1770 (6000)0000 (0) 0.8 VFED4 (–300)1V5 V 5.2 V0 to 20 mAThe 0- to 20-mA range corresponds to the hexadecimal values 0000 to 1770 (0to 6000).
The entire data range is FED4 to 189C (–300 to 6300). A negative voltage is expressed as a two’s complement.Converted DataHexadecimal (Decimal)189C (6300)1770 (6000)0000 (0)–1 mAFED4 (–300)0 mA20 mA 21 mA165SectionAnalog I/O Units3-14 to 20 mAThe 4- to 20-mA range corresponds to the hexadecimal values 0000 to 1770 (0to 6000). The entire data range is FED4 to 189C (–300 to 6300). Inputs between3.2 and 4 mA are expressed as two’s complements. If the input falls below3.2 mA, open-circuit detection will activate and converted data will be 8000.Converted DataHexadecimal (Decimal)189C (6300)1770 (6000)3.2 mA0000 (0)4 mAFED4 (–300)20 mA 20.8 mA0 mAAnalog Output SignalRangesThe Analog I/O Unit converts the digital output data to analog values. The analogvalues depend on the output signal ranges, as shown in the following diagrams.–10 to 10 VThe hexadecimal values F448 to 0BB8 (–3000 to 3000) correspond to an analogvoltage range of –10 to 10 V.
The entire output range is –11 to 11 V. Specify anegative voltage as a two’s complement.11 V10 VF31C F4488000 (–3300) (–3000)0000 (0)0V0BB8 0CE4(3000) (3300)ConversionDataHexadecimal7FFF (Decimal)–10 V–11 V0 to 10 VThe hexadecimal values 0000 to 1770 (0 to 6000) correspond to an analog voltage range of 0 to 10 V. The entire output range is –0.5 to 10.5 V. Specify a negative voltage as a two’s complement.10.5 V10 V0V8000 FED4 (–300)–0.5 V1660000 (0)ConversionDataHexadecimal1770 189C(Decimal)(6000) (6300) 7FFFSectionAnalog I/O Units3-11 to 5 VThe hexadecimal values 0000 to 1770 (0 to 6000) correspond to an analog voltage range of 1 to 5 V. The entire output range is 0.8 to 5.2 V.5.2 V5V1V0.8 V0V8000 FED4(–300)0000 (0)1770 189C(6000) (6300)ConversionDataHexadecimal7FFF (Decimal)0 to 20 mAThe hexadecimal values 0000 to 1770 (0 to 6000) correspond to an analog current range of 0 to 20 mA.
The entire output range is 0 to 21 mA.21 mA20 mA0000(0)0 mA80001770 189C(6000) (6300)ConversionDataHexadecimal7FFF(Decimal)4 to 20 mAThe hexadecimal values 0000 to 1770 (0 to 6000) correspond to an analog current range of 4 to 20 mA. The entire output range is 3.2 to 20.8 mA.20.8 mA20 mA4 mA3.2 mA0 mA8000FED4 0000 (0)(–300)1770 189C(6000) (6300)ConversionDataHexadecimal7FFF (Decimal)Averaging Function forAnalog InputsThe averaging function can be enabled for inputs using the DIP switch.
Theaveraging function stores the average (a moving average) of the last eight inputvalues as the converted value. Use this function to smooth inputs that vary at ashort interval.Open-circuit DetectionFunction for AnalogInputsThe open-circuit detection function is activated when the input range is set to 1 to5 V and the voltage drops below 0.8 V, or when the input range is set to 4 to20 mA and the current drops below 3.2 mA. When the open-circuit detectionfunction is activated, the converted data will be set to 8000.167SectionAnalog I/O Units3-1The open-circuit detection function is enabled or cleared when data is converted.