Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
21
Добавлен:
11.10.2020
Размер:
3.39 Mб
Скачать

The IEC Operators

303

Address Operators

 

 

 

Example in ST:

VAR1 := 40 = 40;

Example in FBD:

12.6.6NE

Not equal to

A Boolean operator that returns that value TRUE when the operands are not equal. The operands can be BOOL, BYTE, WORD, DWORD, SINT, USINT, INT, UINT, DINT, UDINT, REAL, TIME, DATE, TIME_OF_DAY, DATE_AND_TIME and STRING.

Example in IL:

LD

40

NE

40

ST

Var1 (* Result is FALSE *)

Example in ST:

VAR1 := 40 <> 40;

Example in FBD:

12.7 Address Operators

12.7.1ADR

Address Function

ADR returns the address of its argument in a DWORD. This address can be sent to manufacturing functions to be treated as a pointer or it can be assigned to a pointer within the project.

Example in IL:

LD Var1

ADR

ST Var2

WAGO-I/O-SYSTEM 759 WAGO-I/O-PRO 32

Соседние файлы в папке 759-332