Skip to main content

CM3 AD Module Buffer Memory (SP04EAO)

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-SP04EAO Buffer Memory

CM3-SP04EAO Buffer Memory
Memory AddressDetailsDefaultReadWriteLink
HexadecimalDecimal
00H0Channel 1 Digital conversion value--Digital conversion value
01H1Channel 2 Digital conversion value--
02H2Channel 3 Digital conversion value--
03H3Channel 4 Digital conversion value--
04H4Channel 1 Precise value--Precise value
05H5Channel 2 Precise value--
06H6Channel 3 Precise value--
07H7Channel 4 Precise value--
08H8Channel 1 Percentile value--Percentile Value
09H9Channel 2 Percentile value--
0AH10Channel 3 Percentile value--
0BH11Channel 4 Percentile value--
0CH12Channel 1 Setup input signal range0Setup input signal range
0DH13Channel 2 Setup input signal range0
0EH14Channel 3 Setup input signal range0
0FH15Channel 4 Setup input signal range0
10H16Setup Raw Value digital output0Setup raw value digital output
11H17Reserved---
12H18Channel 1 Average processing setting value2000hAverage processing setting value
13H19Channel 2 Average processing setting value2000h
14H20Channel 3 Average processing setting value2000h
15H21Channel 4 Average processing setting value2000h
16H22Channel 1 Maximum alarm setting value0Maximum alarm setting value
17H23Channel 2 Maximum alarm setting value0
18H24Channel 3 Maximum alarm setting value0
19H25Channel 4 Maximum alarm setting value0
1AH26Channel 1 Minimum alarm setting value0Minimum alarm setting value
1BH27Channel 2 Minimum alarm setting value0
1CH28Channel 3 Minimum alarm setting value0
1DH29Channel 4 Minimum alarm setting value0
1EH30Maximum alarm status--Maximum alarm status
1FH31Minimum alarm status--Minimum alarm status
20H32Channel 1 Digital filter constant30
21H33Channel 2 Digital filter constant30
22H34Channel 3 Digital filter constant30
23H35Channel 4 Digital filter constant30
24H36Calibration code-
25H37Error Code--Error Code
26H38Operating System Version--OS Version

Digital Conversion Value

  • The digital conversion value is used to save A/D conversion of a digital output value.
  • The digital conversion value indicates 0 ~ 64,000 (unsigned) or -32,000 ~ 32,000 (signed) by 16-bit (WORD).
    • If the digital conversion value is over this range, its value is fixed with -384/64,383 (unsigned) or -32,384/32,384 (signed).

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 InputPrecise Value
4mA ~ 20mA4,000 ~ 20,000
0mA ~ 20mA0 ~ 20,000
+1V ~ +5V1,000 ~ 5,000
0V ~ +5V0 ~ 5,000
-10V ~ +10V-10,000 ~ 10,000
0V ~ +10V0 ~ 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.00% ~ 100.00%

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 RangeSetting Value
4mA ~ 20mA0
0mA ~ 20mA1
+1 ~ +5V2
0V ~ +5V3
-10V ~ +10V4
0V ~ +10V5

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.
Bit Mapping
Most Significant BitsLeast Significant Bits
00000000Channel 4Channel 3Channel 2Channel 1
Conversion Input & Full Value Range
CodeNormal Input RangeFull 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 ~ 64,0000 ~ 64,000

Full range is used when exceeding the normal input range.

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)

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.

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
000000000000Channel 4Channel 3Channel 2Channel 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
000000000000Channel 4Channel 3Channel 2Channel 1

Error Code

Error Codes
Error CodeDescription
0No Error
1System Error
A/S needed
2Calibration fault for A/D conversion value

Operating System Version

  • The operating system version indicates the firmware version of the module.