IoDrvPfc200_Diag.IsRootNode (PROP) ¶ PROPERTY IsRootNode : BOOL returns true, if the current node is the root (plc) node, otherwise false
IoDrvPfc200_Diag.NextSiblingNode (PROP) ¶ PROPERTY NextSiblingNode : INode returns the next sibling node at the same level used for step through all nodes
IoDrvPfc200_Diag.ParentNode (PROP) ¶ PROPERTY ParentNode : INode Returns the parent node or zero if already the root node is reached
IoDrvPfc200_Diag.SiblingNodeCount (PROP) ¶ PROPERTY SiblingNodeCount : CAA.COUNT Returns the number of sibling (same level) nodes
Raspberry SPI MCP23S17 Library Documentation ¶ Company : 3S - Smart Software Solutions GmbH Title : Raspberry SPI MCP23S17 Version : 4.10.0.0 Categories : Target Namespace : MCP23S17_Lib Author : 3S - Smart Software Solutions GmbH Placeholder : SPI MCP23S17 Description [ 1 ] ¶ Library containing device support of MCP23S17 Contents: ¶ GCL (GVL) MCP23S17_FB (FunctionBlock) basic-readwrite-commands connector Indices and tables ¶ [ 1 ] Based on Raspberry SPI MCP23S17.library, last modified 25.10.2023, 14:08:36. LibDoc 4.4.0.0-b.37 The content file Raspberry SPI MCP23S17.clean.json was generated with CODESYS V3.5 SP16 Patch 3 on 25.10.2023, 14:08:38.
GCL (GVL) ¶ InOut: Scope Name Type Initial Comment Constant IODIRA USINT 16#0 Data Direction Register for PORTA IODIRB USINT 16#1 Data Direction Register for PORTB IPOLA USINT 16#2 Input Polarity Register for PORTA IPOLB USINT 16#3 Input Polarity Register for PORTB GPINTENA USINT 16#4 Interrupt-on-change enable Register for PORTA GPINTENB USINT 16#5 Interrupt-on-change enable Register for PORTB DEFVALA USINT 16#6 Default Value Register for PORTA DEFVALB USINT 16#7 Default Value Register for PORTB INTCONA USINT 16#8 Interrupt-on-change control Register for PORTA INTCONB USINT 16#9 Interrupt-on-change control Register for PORTB IOCON USINT 16#A Configuration register for device GPPUA USINT 16#C 100kOhm pullup resistor register for PORTA (sets pin to input when set) GPPUB USINT 16#D 100kOhm pullup resistor register for PORTB (sets pin to input when set) INTFA USINT 16#E Interrupt flag Register for PORTA INTFB USINT 16#F Interrupt flag Register for PORTB INTCAPA USINT 16#10 Interrupt captured value Register for PORTA INTCAPB USINT 16#11 Interrupt captured value Register for PORTB GPIOA USINT 16#12 General purpose I/O Register for PORTA GPIOB USINT 16#13 General purpose I/O Register for PORTB OLATA USINT 16#14 Output latch Register for PORTA OLATB USINT 16#15 Output latch Register for PORTB
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)
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