/
AD_MUX_M

AD_MUX_M

 

It has relay count value from AD MUX module. It is used to get more than two digital values if the FB name is finished with "_M".

 

Variable Name

I/O

Type

Device

SLOT

Input

Word

Write Slot number

CM3 : 1 ~ 11

SIZE

Input

Word

Write number of Channel

(Ex. Ch.1 : Write 1, Ch.1~3 : Write 3)

ADDR

Input

Word

Write D address. (Ex. D150 : Write 150)

OUTPUT

Output

Bit

When it works, it will be turned ON

Tip : The converted value is composed high and low. (Double Word)

For example, if you write 150 at the ADDR and 2 at the SIZE, the value will be saved as below.

Channel1 AD Relay count high value → D150

Channel1 AD Relay count low value → D151

Channel2 AD Relay count high value → D152

Channel2 AD Relay count low value → D153

 

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

  •  CM3_AD_MUX_M

 

 

Buffer Memory Index

  •  CM3_AD_MUX : 1 ~ 8 (Ch.1~4 : Relay Count High / Low) – Double Word

 

 

Example) CM3_AD_MUX_M

 

You can get Relay Count High and Low value from Ch1 and Ch2 at the slot#2 and save them to D100, D101, D102, and D103 in sequence (2 Words per a channel). When it works, Y81 will be turned ON.

 

 

Related content