Arsen Zhanasbay
Arsen Zhanasbay

Reputation: 3

I can't find the T_comp instruction in TIA Portal v16

or what to do instead of T_COMP? (LAD)

T_COMP compares two tags with a time data type. For LAD and FBD, the comparison function is displayed with an EN/ENO box. For STL, it is a block call. To compare time data types for SCL tags, use the comparison expression (see Chapter 13.3.1 “Execution of “simple” comparison function” on page 570). The tags to be compared are present at parameters IN1 and IN2. The parameter OUT provides the comparison result: Signal state “1” (TRUE) if the comparison is fulfilled and signal state “0” (FALSE) if it is not fulfilled.

t_comp pic

Upvotes: 0

Views: 902

Answers (2)

mrsargent
mrsargent

Reputation: 2442

T_COMP is available in extended instructions for LAD and FBD. I believe that is what you are asking.

enter image description here

Upvotes: 1

Evandro Moreira
Evandro Moreira

Reputation: 36

You can use simple comparisons in LAD too.

Time comparison LAD pic

Upvotes: 2

Related Questions