/
TC_M

TC_M

It has digital value from TC module and this digital value will be save in D device.  It is used to get more than two digital values 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_TC_M

  • CM2_TC_M

  • CM3_TC_M

 

 

Buffer Memory Index

  • CM1 TC : 21 ~ 28 (Ch.1~8 : Digital conversion value)

  • CM2 TC : 21 ~ 28 (Ch.1~8 : Digital conversion value)

  • CM3 TC : 21 ~ 24 (Ch.1~4 : Digital conversion value)

 

 

Example) CM1_TC_M

 

If D02 is 3, you can get 3 digital value from Ch1 to Ch3 at slot #0 in 3rd expansion base and save them to D10, D11 and D12 in sequence. When it works, L100 will be turned ON.

 

 

Example) CM3_TC_M

 

You can get a digital value from Ch1 at slot #3 and save it to D5. When it works, Y85 will be turned ON.

 

Related content