MCP23S17_FB (FB) ¶ FUNCTION_BLOCK MCP23S17_FB EXTENDS spi InOut: Scope Name Type Input byOutputsA WORD byOutputsB WORD Output auiValue ARRAY [0..7] OF UINT byInputsA BYTE byInputsB BYTE _byGPIOSelectInputA BYTE _byGPIOSelectInputB BYTE _byGPIOPullupA BYTE _byGPIOPullupB BYTE Methods: AfterReadInputs BeforeWriteOutputs Initialize read8 write8 writeBit Structure: basic-readwrite-commands read8 (Method) write8 (Method) writeBit (Method) connector AfterReadInputs (Method) BeforeWriteOutputs (Method) Initialize (Method)
Interfaces ¶ IReadableSharedArea (Interface) AreaRead (Method) ISharedArea (Folder) AreaCurrentCapacity (Property) AreaIncreaseCapacity (Method) AreaSetObserver (Method) ISharedAreaObserver (Interface) AreaWritten (Method) ISharedAreaRef (Interface) AreaDataPointer (Property) AreaDataSize (Property) AreaDispose (Method) ISharedAreaUtilities (Interface) AreaCopyData (Method) AreaIsEqual (Method) IWriteableSharedArea (Interface) AreaCompareAndSwap (Method) AreaWrite (Method)
basic read/write commands ¶ read8 (Method) write8 (Method) writeBit (Method)
MCP23S17_FB.read8 (METH) ¶ METHOD read8 : BYTE This method is used to read the data byte of one port using the following protocol: Byte0: 16#41 + hardware address Byte1: Port Byte2: 16#FF return value: data content InOut: Scope Name Type Comment Return read8 BYTE Input byHardwareAddress BYTE (0..7) hardware address byPort BYTE port number to read
MCP23S17_FB.write8 (METH) ¶ METHOD write8 : BOOL This method is used to write a data byte into a port using the following protocol: Byte0: 16#41 + hardware address Byte1: Port Byte2: Value return value: TRUE if successful InOut: Scope Name Type Comment Return write8 BOOL Input byHardwareAddress BYTE (0..7) hardware address byPort BYTE port number to read byValue BYTE value to write
IReadableSharedArea (ITF) ¶ INTERFACE IReadableSharedArea EXTENDS __SYSTEM.IQueryInterface Describes the properties of a readable shared memory area Methods: AreaRead Structure: AreaRead (Method)
MCP23S17_FB.writeBit (METH) ¶ METHOD writeBit : BOOL This method is used to modify one bit of a certain register: It first reads the register, modifies the bit and then writes the register (no matter if the bit already had the desired value) return value: TRUE if successful InOut: Scope Name Type Comment Return writeBit BOOL Input byHardwareAddress BYTE (0..7) hardware address byPort BYTE port number to read byBit BYTE (0..7) bit number to read/write xValue BOOL value to write
connector ¶ AfterReadInputs (Method) BeforeWriteOutputs (Method) Initialize (Method)
MCP23S17_FB.AfterReadInputs (METH) ¶ METHOD AfterReadInputs : INT InOut: Scope Name Type Return AfterReadInputs INT
ISharedArea (ITF) ¶ INTERFACE ISharedArea EXTENDS __SYSTEM.IQueryInterface Describes the main interface of a shared memory area A readable area implements additionally IReadableSharedArea . A writeable area implements aditionally IWriteableSharedArea . Properties: AreaCurrentCapacity Methods: AreaIncreaseCapacity AreaSetObserver Structure: AreaCurrentCapacity (Property) AreaIncreaseCapacity (Method) AreaSetObserver (Method)