PROGRAM Sine VAR_INPUT [...] FUNCTION_BLOCK FB_A VAR_INPUT
由安全输出设备控制的开关放大器。 表 18 . VAR_INPUT
创建名为“Belt”的对象,接口定义如下: VAR_INPUT
_AS_DWORD Converts 32 input values [...] Input B00 BOOL Input [...] Input bit 1 B02 BOOL
_AS_WORD Converts 16 input values [...] Input B00 BOOL Input [...] Input bit 1 B02 BOOL
for the input BO .. B7 Input B0 BOOL Input bit 0 B1 BOOL
_AS_BYTE Converts 8 input values [...] Type Comment Input B0 BOOL Input bit 0 B
Comment Input IN INT Input value HIGH INT [...] : Input IN is less than
returns the DWORD “dwInput [...] -order. Example: dwInput [...] .ReverseWORDsInDWORD ( dwInput ) = 16
returns the BYTE “byInput [...] -order. Example: byInput [...] .ReverseBitsInBYTE ( byInput ) = 16#80