Skip to main content

Micro-S CPU Series Analog Manual

Configuration

  1. In the menubar, left-click Home and left-click New Project.

  • Optionally, in the menubar, left-click File.

  • Left-click New Project.

  1. Left-click Brick PLC and left-click Next.

  1. Left-click Series No. to change from CM3-SB16(Brick) to CM3-SB32(Brick).

  2. Left-click OK.

  1. In the Project Window, expand Parameter and double left-click PLC Parameter.

  1. In the PLC Parameter window, left-click Analog I/O.
  • Channel 1 and channel 2 can be configured here.
  • The Device Setting option will be the starting data register type and number for all analog operations.

Device Setting

  • The device setting designates the starting data register address where the analog value is updated.
  • 20 WORDs are occupied from the starting data register address.
    • Each WORD can read or write data.
    • The remaining offsets not mentioned in the table below are not used.

Refer here for more information.

Enable/Disable

  • To enable the channel for analog input/output, set the value to enabled.
  • To disable the channel for analog input/output, set the value to disabled.

Input

  • The input signal range sets the range for voltage or current input.
  • The ranges are as follows:
    • Voltage:
      • 0V ~ +5V
      • 0V ~ +10V
      • +1V ~ +5V
      • +1V ~ +10V
    • Current:
      • 0mA ~ 20mA
      • 4mA ~ 20mA

Average Count

  • If the analog input value can be filtered by the moving window filtering feature, it is possible to set the number of sampling data in the average count field.
  • The number of samples can range from 1 ~ 255.
    • If the average count is set to 0, the moving window filtering feature is disabled.

AD Filter Coefficient (%)

  • This is used to set the AD filter coefficient percentage.

AD Max Digit

  • This is the maximum digital value from the analog input.

Stop Mode

  • If the value of the stop mode is set to hold, the value will be retained when the PLC is switched to STOP mode.
  • If the value of the stop mode is set to clear, the value will NOT be retained when the PLC is switched to STOP mode.

Output

  • The output signal range sets the range for voltage or current output.
  • The ranges are as follows:
    • Voltage: 0V ~ +10V
    • Current: 4mA ~ 20mA

DA Max Digit

  • This is the maximum digital value from the output.

Analog Data Register Offset

  • After selecting the starting data register, the following offsets are used to read/write values:
CM3-SB32 Analog Offset
OffsetDescriptionRangeReadWrite
0Channel 1 AD Input Value0 ~ 4,000 (16,000 SW)-
1Channel 2 AD Input Value0 ~ 4,000 (16,000 SW)-
2Channel 1 DA Output Value0 ~ 4,000 (16,000 SW)
3Channel 2 DA Output Value0 ~ 4,000 (16,000 SW)
4Error CodeRefer here-
5Channel 1 AD Measured ValueDepends on configuration-
6Channel 2 AD Measured ValueDepends on configuration-
7Channel 1 AD Percentage Value0 ~ 1,000
(0% ~ 100%)
-
8Channel 2 AD Percentage Value0 ~ 1,000
(0% ~ 100%)
-
9Reserved---
10Channel 1 DA Signal ValueDepends on configuration-
11Channel 2 DA Signal ValueDepends on configuration-
12Reserved---
13---
14---
15---
16---
17---
18---
19---

Error Code

Error Code
Error CodeDescription
1Input Type Error
2Output Type Error
3AD Disconnection Error
+1V ~ +5V/+10V: Less than 0.2V
4mA ~ 20mA: Less than 0.8mA

AD Measured Value

  • This displays the measured analog value according to the range configuration.
AD Measured Value
Input RangeMinimum ValueMaximum Value
0V ~ +5V0500
0V ~ +10V01,000
+1V ~ +5V100500
+1V ~ +10V1001,000
0mA ~ 20mA02,000
4mA ~ 20mA4002,000

DA Signal Value

  • This displays the DA output value according to the range and the voltage/current configuration.
DA Signal Value
Output RangeMinimum ValueMaximum Value
0V ~ +10V01,000
4mA ~ 20mA4002,000

Switch Configuration

  • The CM3-SB32 has two sets of switches on either side of the serial communication port.
    • The switch on the right is the important switch.
      • To measure current for either channel 1 or 2, flip the switch to up (I).
      • To measure voltage for either channel 1 or 2, flip the switch to down (V).