AD_M
It has digital value from AD module and this digital value will be save in D device. It is used to get more than one digital value if the FB name is finished with "_M".
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 |
ADDR | Input | Word | Write D address. (Ex. D150 → Write 150) |
SIZE | Input | Word | Write number of Channel (Ex. Ch.1 : Write 1, Ch.1~3 : Write 3) |
OUTPUT | Output | Bit | When it works, it will be turned ON |
If you write wrong SLOT number or BASE number, CPU will have an error.
According to CPU type, D device address range will be different.
System Library type
CM1_AD_M
CM1_AD16Ch_M
CM2_AD_M
CM2_ADDA_AD_M
CM3_AD_M
CM3_ADDA_AD_M
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_M
You can get two digital value from Ch1 and Ch2 at Slot number2 in Local Base and save them to D120 and D121 in sequence. When it works, M51 will be turned ON.
Example) CM3_AD_M
You can get 4 digital values from Ch1 to Ch4 at Slot number1 and save them to D address (M100) in sequence. If M100 is 24, digital value will be save in D24, D25, D26, and D27.