AMS for IN1 IN2 IN3 (pulses S0, analog value, digital value)

This FAQ describes how to set 2N SmartCOM PRO ETH for AMS function. 2N SmartCOM PRO can with this function automatically read data from the INPUTS and store data in the internal memory. This feature is available for all units with firmware 1.13.X

 

2N SmartCOM PRO ETH is equipped with three inputs (IN1, IN2, IN3)

Input Interfaces:

  • Voltage range: 0–10 V DC

  • Current range: 0–20 mA DC

  • Digital input with threshold level setting

  • S0 pulse inputs (You can increase the S0 bus resistance against interference if necessary by connecting PullUp voltage from the power supply or an internal 3V6 supply)

 

Disconnect the 2N SmartCom PRO from the power supply before opening the cover. Be careful while handling the jumpers to avoid damaging the device!

 

Make sure that the 2N SmartCOM PRO ETH jumpers are set as shown in the following image

images/download/attachments/104860338/image2023-5-19_13-58-23.png

 

Pulse counting on S0 inputs

  • pulse counting on S0 inputs

at^scpulse1="start"                                               - enable pulse counting on input 1.
at^scams="ENABLE",1                                               - enable AMS functionality.
AT^SCAMS="DEV_ADD",128,"AIN_DIN","1/PULSE/ABS","5M"               - absolute value of pulses on input 1 each 5 minutes
at^scpulse2="start"                                               - enable pulse counting on input 2.
AT^SCAMS="DEV_ADD",128,"AIN_DIN","2/PULSE/REL","5M"               - relative (difference between two readouts) value of pulses on input 2 each 5 minutes
Possible time intervals:                                          -  "1M", "2M", "3M", "4M", "5M", "6M", "10M", "12M", "15M", "20M", "30M", "1H", "2H", "3H", "4H", "6H", "8H", "12H", "1D"

 

at^scams?                                                         - Show added devices
^SCAMS: 1> 128,"AIN_DIN","1/PULSE/ABS","5M"
^SCAMS: 2> 128,"AIN_DIN","2/PULSE/REL","5M"
AT^SCAMS="DEV_REMOVE",1                                           - Remove device from defined position

at^scdata="get_oldest",50
^SCDATA: "AMS",1461340261,12091,"AIN_DIN",1,0,"","131" - results from port 1
^SCDATA: "AMS",1461340381,12093,"AIN_DIN",1,0,"","228" - results from port 1
^SCDATA: "AMS",1461340441,12094,"AIN_DIN",1,0,"","234" - results from port 1
^SCDATA: "AMS",1461340681,12098,"AIN_DIN",2,0,"","21" - results from port 2

Analog value on input

Calibrate 2N SmartCOM PRO ETH inputs before measurement -

 

Current measurement: - range between 4 and 20 mA.

Voltage measurement: - range between 0 and 10V DC.

at^scams="ENABLE",1                                               - enable AMS functionality.
AT^SCAMS="DEV_ADD",128,"AIN_DIN","1/ADC/CAL","1M"                 - calibrated value will be store to memory (range  0 - 100) input 1
AT^SCAMS="DEV_ADD",128,"AIN_DIN","2/ADC/ABS","1M"                 - output from A/D converter will be stored to memory (range 0 - 1023) input 2
Possible time intervals:                                          - "1M", "2M", "3M", "4M", "5M", "6M", "10M", "12M", "15M", "20M", "30M", "1H", "2H", "3H", "4H", "6H", "8H", "12H", "1D"

 

at^scams?                                                         - Show added devices
^SCAMS: 1> 128,"AIN_DIN","1/ADC/CAL","1M"
^SCAMS: 2> 128,"AIN_DIN","2/ADC/ABS","1M"

 

AT^SCAMS="DEV_REMOVE",1                                            - Remove device from defined position

 

at^scdata="get_oldest",50

voltage was the same on both inputs - 6,45V

^SCDATA: "AMS",1464185101,7112,"AIN_DIN",1,0,"","56"                - calibrated value on input 1
^SCDATA: "AMS",1464185101,7113,"AIN_DIN",2,0,"","521"               - output value from A/D on input 2

voltage was the same on both inputs - 4,45V

^SCDATA: "AMS",1464185160,7114,"AIN_DIN",2,0,"","354"                - calibrated value on input 1
^SCDATA: "AMS",1464185160,7115,"AIN_DIN",1,0,"","38"                 - output value from A/D on input 2

voltage was the same on both inputs - 10,2V

^SCDATA: "AMS",1464185221,7116,"AIN_DIN",1,0,"","92"                 - calibrated value on input 1
^SCDATA: "AMS",1464185221,7117,"AIN_DIN",2,0,"","848"                - output value from A/D on input 2

Digital value on input

Calibrate 2N SmartCOM PRO ETH inputs before measurement - 

Current measurement:                                                 - range between 4 and 20 mA.
Voltage measurement:                                                 - range between 0 and 10V DC.
at^scams="ENABLE",1                                                  - enable AMS functionality.
AT^SCAMS="DEV_ADD",128,"AIN_DIN","2/DIN","1M"                        - digital value on input 2 will be stored in memory every minute
possible time intervals:                                              - "1M", "2M", "3M", "4M", "5M", "6M", "10M", "12M", "15M", "20M", "30M", "1H", "2H", "3H", "4H", "6H", "8H", "12H", "1D"

At^scams?
^SCAMS: 1> 128,"AIN_DIN","1/ADC/CAL","1M"
^SCAMS: 2> 128,"AIN_DIN","2/ADC/ABS","1M"                               
^SCAMS: 3> 128,"AIN_DIN","2/DIN","1M"                                - reading digital value on input 2 is on third position

AT^SCAMS="DEV_REMOVE",1                                             - Remove device from defined position

Voltage was 4,45V - logical 0

^SCDATA: "AMS",1464186241,7150,"AIN_DIN",3,0,"","0"

^SCDATA: "AMS",1464186241,7151,"AIN_DIN",1,0,"","39"

^SCDATA: "AMS",1464186241,7152,"AIN_DIN",2,0,"","360"

 

Voltage was 6,45V - logical 1

^SCDATA: "AMS",1464186301,7155,"AIN_DIN",3,0,"","1"

^SCDATA: "AMS",1464186301,7153,"AIN_DIN",1,0,"","56"

^SCDATA: "AMS",1464186301,7154,"AIN_DIN",2,0,"","524"

 

 

Direct read

one time readout, not stored to 2N® SmartCOM PRO internal memory

AT^SCAMS="DIRECT_READ",128,"AIN_DIN","1/ADC/CAL"                     - readout of current signal value on IN1, result is calibrated (range 0-100)
AT^SCAMS="DIRECT_READ",128,"AIN_DIN","2/DIN"                         - readout of current signal value on IN2 and this value is transformed to a logical value (range 0 - 1)
AT^SCAMS="DIRECT_READ",128,"AIN_DIN","1/PULSE/ABS"                   - read current count of pulses on IN1

Was deze pagina nuttig?