/
AD_S

AD_S

It has only one digital value from AD module. It is used to get only one digital value if the FB name is finished with "_S".

 

 

Variable Name

I/O

Type

Device

BASE

Input

Word

Write Base number 0~16

SLOT

Input

Word

Write Slot number

CM1 : 0 ~ 11 / CM2 : 1 ~ 4 / CM3 : 1 ~ 11

CH

Input

Word

Write Channel number. (Ex. Ch2 : Write 2)

OUTPUT

Output

Word

Write Word type device address that you want to save the converted value

(Except :X / F / TS / TC / CS / CC / S)

 If you write wrong SLOT number or BASE number, CPU will have an error.

 

 

System Library type

  • CM1_AD_S

  • CM1_AD16Ch_S

  • CM2_AD_S

  • CM2_ADDA_AD_S

  • CM3_AD_S

  • CM3_ADDA_AD_S

 

 

Buffer Memory Index

  • CM1 AD : 11 ~ 18 (Ch.1~8 : Digital Output value)

  • CM1 AD16Ch : 11  ~ 26 (Ch.1~16 : Measured value)

  • CM2 AD : 11 ~ 18 (Ch.1~8 : Digital Output value)

  • CM2 ADDA_AD : 7 ~ 8 (Ch.1~2 : Digital Output value)

  • CM3 AD : 0 ~ 3 (Ch.1~4 : Digital converted value)

  • CM3 ADDA_AD : 0 ~ 1 (Ch.1~2 : Digital converted value AD)

 

 

Example) CM1_AD_S

 

You can get a digital value from Ch3 at Slot #5 in Local base and save it to M1000.

 

 

Example) CM3_AD_S

 

Slot : D85=7, Channel : D86=3

You can get a digital value from Ch3 at Slot #7 and save it to D87.

 

Related content