CM3 AD/DA Module Buffer Memory
CM3-SP04EAA Buffer Memory
To write to buffer memory, use the TO instruction.
To read from buffer memory, use the FROM instruction.
Please refer to the table below for writing to and reading from buffer memory.
| CM3-SP04EAA Buffer Memory | ||||||
|---|---|---|---|---|---|---|
| Memory Address | Details | Default | Read | Write | Link | |
| Hexadecimal | Decimal | |||||
| 00H | 0 | Channel 1 Digital conversion value (AD) | - | ✓ | - | Digital conversion value |
| 01H | 1 | Channel 2 Digital conversion value (AD) | - | ✓ | - | |
| 02H | 2 | Channel 1 Precise value (AD) | - | ✓ | - | Precise value |
| 03H | 3 | Channel 2 Precise value (AD) | - | ✓ | - | |
| 04H | 4 | Channel 1 Percentile value (AD) | - | ✓ | - | Percentile value |
| 05H | 5 | Channel 2 Percentile value (AD) | - | ✓ | - | |
| 06H | 6 | Maximum alarm status (AD) | - | ✓ | - | Maximum alarm status |
| 07H | 7 | Minimum alarm status (AD) | - | ✓ | - | Minimum alarm status |
| 08H | 8 | Channel 1 Setup input signal range (AD) | 0 | ✓ | ✓ | Setup input signal range |
| 09H | 9 | Channel 2 Setup input signal range (AD) | 0 | ✓ | ✓ | |
| 0AH | 10 | Setup Raw Value digital output (AD) | 0 | ✓ | ✓ | Setup raw value digital output (AD) |
| 0BH | 11 | Channel 1 Average processing setting value (AD) | 2000h | ✓ | ✓ | Average processing setting value |
| 0CH | 12 | Channel 2 Average processing setting value (AD) | 2000h | ✓ | ✓ | |
| 0DH | 13 | Channel 1 Maximum alarm setting value (AD) | 0 | ✓ | ✓ | Maximum alarm setting value |
| 0EH | 14 | Channel 2 Maximum alarm setting value (AD) | 0 | ✓ | ✓ | |
| 0FH | 15 | Channel 1 Minimum alarm setting value (AD) | 0 | ✓ | ✓ | Minimum alarm setting value |
| 10H | 16 | Channel 2 Minimum alarm setting value (AD) | 0 | ✓ | ✓ | |
| 11H | 17 | Channel 1 Digital filter constant (AD) | 30 | ✓ | ✓ | |
| 12H | 18 | Channel 2 Digital filter constant (AD) | 30 | ✓ | ✓ | |
| 13H | 19 | DA Enable/Disable setup (DA conversion) | 0 | ✓ | ✓ | |
| 14H | 20 | Channel 1 DA output type Current: 2 types Voltage: 4 types | 0 | ✓ | ✓ | DA output type |
| 15H | 21 | Channel 2 DA output type Current: 2 types Voltage: 4 types | 0 | ✓ | ✓ | |
| 16H | 22 | Channel 1 Digital value range | 0 | ✓ | ✓ | Digital value range |
| 17H | 23 | Channel 2 Digital value range | 0 | ✓ | ✓ | |
| 18H | 24 | Channel 1 DA Channel Hold/Clear | 0 | ✓ | ✓ | Channel Hold/Clear |
| 19H | 25 | Channel 2 DA Channel Hold/Clear | 0 | ✓ | ✓ | |
| 1AH | 26 | Channel 1 Digital output value (DA) | 0 | ✓ | ✓ | Digital output value |
| 1BH | 27 | Channel 2 Digital output value (DA) | 0 | ✓ | ✓ | |
| 1CH | 28 | AD/DA Resolution setting | 0 | ✓ | ✓ | Resolution setting |
| 1DH | 29 | Error Code | - | ✓ | - | Error Code |
| 1EH | 30 | Operating System Version | - | ✓ | - | OS Version |
Analog-to-digital conversion values, which are stored in buffer memory 0 (00H) and 1 (01H), are stored into the CPU memory to be used with the FROM instruction.
Digital Conversion Value
- The digital conversion value is used to save A/D conversion of a digital output value.
- Data in other areas are displayed depending on the AD/DA resolution setting (offset 28).
14-Bit Resolution
- The digital conversion value is expressed by 1-bit of data from 0 ~ 64,000 or -32,000 ~ 32,000.
- If the digital conversion value is off its range, it is fixed into the range -384 ~ 64,383 or -32,384 ~ 32,383.
16-Bit Resolution
- The digital conversion value is displayed by 14-bit data from 0 ~ 16,000 or -8,000 ~ 8,000.
- If the digital conversion value is off its range, it is fixed into the range -192 ~ 16,191 or -8192 ~ 8,191.
Precise Value
- The precise value is used to convert A/D conversion values to precise values.
- Refer to the table below for the analog input range with its precise value.
| Precise Value | |
|---|---|
| Analog Input | Precise Value |
| 4mA ~ 20mA | 4,000 ~ 20,000 |
| 0mA ~ 20mA | 0 ~ 20,000 |
| +1V ~ +5V | 1,000 ~ 5,000 |
| 0V ~ +5V | 0 ~ 5,000 |
| -10V ~ +10V | -10,000 ~ 10,000 |
| 0V ~ +10V | 0 ~ 10,000 |
Percentile Value
- The percentile value is used to save an analog input value for each channel as a percentile value compared with input signal range.
- The conversion value is 0 ~ 10,000
- 0% ~ 100.00%
Maximum Alarm Status
- If the A/D conversion value exceeds the maximum alarm setting value, the related channel's bit is ON (1).
| Maximum Alarm Status Bit Mapping | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | Channel 4 | Channel 3 | Channel 2 | Channel 1 |
Minimum Alarm Status
- If the A/D conversion value is less than the minimum alarm setting value, the related channel's bit is ON (1).
| Minimum Alarm Status Bit Mapping | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | Channel 4 | Channel 3 | Channel 2 | Channel 1 |
Setup Input Signal Range
- The setup input signal range is used to setup the analog input range for each channel.
- Refer to the table below for the setup input signal ranges.
| Signal Ranges | |
|---|---|
| Input Signal Range | Setting Value |
| 4mA ~ 20mA | 0 |
| 0mA ~ 20mA | 1 |
| +1 ~ +5V | 2 |
| 0V ~ +5V | 3 |
| -10V ~ +10V | 4 |
| 0V ~ +10V | 5 |
Setup Raw Value Digital Output
- Setup range of the digital conversion value to output raw value.
- Two bits for each channel are assigned.
- Refer to the table below for bit mapping.
- Two bits for each channel are assigned.
| Bit Mapping | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Most Significant Bits | Least Significant Bits | ||||||||||||||
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | Channel 4 | Channel 3 | Channel 2 | Channel 1 | ||||
14-Bit Resolution
| Conversion Input & Full Value Range 14-Bit Resolution | ||
|---|---|---|
| Code | Normal Input Range | Full Range |
| 00 (0) | -8,000 ~ 8,000 | -8,191 ~ 8,192 |
| 01 (1) | -8,000 ~ 8,000 | -8,000 ~ 8,000 |
| 10 (2) | -192 ~ 16,191 | -192 ~ 16,191 |
| 11 (3) | 0 ~ 16,000 | 0 ~ 16,000 |
16-Bit Resolution
| Conversion Input & Full Value Range 16-Bit Resolution | ||
|---|---|---|
| Code | Normal Input Range | Full Range |
| 00 (0) | -32,000 ~ 32,000 | -32,767 ~ 32,768 |
| 01 (1) | -32,000 ~ 32,000 | -32,000 ~ 32,000 |
| 10 (2) | 500 ~ 64,500 | 0 ~ 65,000 |
| 11 (3) | 0 ~ 64,000 | 0 ~ 64,000 |
Average Processing Setting Value
- The average processing setting value is used to specify average processing methods.
- Count average:
- Upper 1 byte
- 1 ~ 256
- Time average:
- Lower 1 byte
- 0 ~ 256 (10ms)
- Count average:
Maximum Alarm Setting Value
- The maximum alarm setting value sets the maximum value for the alarm.
- The alarm occurs when the A/D conversion value exceeds the maximum alarm setting value.
Minimum Alarm Setting Value
- The minimum alarm setting value sets the minimum value for the alarm.
- The alarm occurs when the A/D conversion value is less than the minimum alarm setting value.
Digital-to-Analog Output Type
- The digital-to-analog output type designates the types of analog signals.
| DA Output Type | |
|---|---|
| Code | Output Type |
| 0000 (0) | 4mA ~ 20mA |
| 0001 (1) | 0mA ~ 20mA |
| 0010 (2) | +1V ~ +5V |
| 0011 (3) | 0V ~ +5V |
| 0100 (4) | -10V ~ +10V |
| 0101 (5) | 0V ~ +10V |
Digital Value Range
- The digital value range is used to set the range of digital values that sequence program specifies.
14-Bit Resolution
| Digital Value Range 14-Bit Resolution | |
|---|---|
| Code | Range |
| 0 | 0 ~ 16,000 |
| 1 | -8,000 ~ 8,000 |
| 2 | Current Value: 0 ~ 20,000 Voltage Value: -10,000 ~ 10,000 |
| 3 | Percentage: 0 ~ 10,000 |
16-Bit Resolution
| Digital Value Range 16-Bit Resolution | |
|---|---|
| Code | Range |
| 0 | 0 ~ 64,000 |
| 1 | -32,000 ~ 32,000 |
| 2 | Current Value: 0 ~ 20,000 Voltage Value: -10,000 ~ 10,000 |
| 3 | Percentage: 0 ~ 10,000 |
Channel Hold/Clear
- Channel hold/clear is used to specify the status of the analog output signal when the PLC switches from RUN mode to STOP mode.
| Channel Hold/Clear | |
|---|---|
| Hold/Clear | STOP Mode Output |
| 0000 (0) | Clear (Minimum Output) |
| 0001 (1) | Hold (Maintain Last Output) |
| 0010 (2) | Half Level (Medium Output) |
| 0011 (3) | Maximum Level (Maximum Output) |
Digital Output Value
- The digital output value is used to convert a specified digital value to an analog signal.
- The range of digital values are specified from the digital value range.
Resolution Setting
- The resolution setting sets either 14-bit or 16-bit resolution for the digital-to-analog output value.
- There is no additional task needed to convert the measured value once 14-bit resolution is maintained.
| AD/DA Resolution Bit Mapping | |||||||
|---|---|---|---|---|---|---|---|
| Most Significant Bits | Least Significant Bits | ||||||
| DA Resolution | AD Resolution | ||||||
| Channel 4 | Channel 2 | Channel 2 | Channel 1 | Channel 4 | Channel 3 | Channel 2 | Channel 1 |
| Resolution Code | |
|---|---|
| Code | Resolution |
| 0 | 14-Bit |
| 1 | 16-Bit |
Error Code
| Error Codes | |
|---|---|
| Error Code | Description |
| 0 | No Error |
| 1 | System Error Considered A/S |
| 2 | No external DC 24V power |
Operating System Version
- The operating system version indicates the firmware version of the module.