SetLed (FUN) ¶ FUNCTION SetLed : BOOL InOut: Scope Name Type Return SetLed BOOL Input which LED how LedState
File and Project Information ¶ Scope Name Type Content FileHeader creationDateTime date 25.10.2023, 14:05:08 companyName string 3S-Smart Software Solutions GmbH libraryFile CmpPfcx00.library primaryProject True productName CODESYS productProfile CODESYS V3.5 SP16 Patch 3 contentFile CmpPfcx00.clean.json version version 2.0.0.0 ProjectInformation IsEndUserLibrary bool False Released True LastModificationDateTime date 25.10.2023, 14:05:06 LibraryCategories library-category-list System|SysLibs Author string CODESYS Development GmbH Company CODESYS CompiledLibraryCompatibilityVersion CODESYS V3.5 SP16 DefaultNamespace PFC Description See: Description DocFormat reStructuredText LanguageModelAttribute qualified-access-only Placeholder CmpPfcx00 Project CmpPfcx00 Title CmpPfcx00 Version version 4.10.0.0
Library Reference ¶ This is a dictionary of all referenced libraries and their name spaces. CAA Types Extern ¶ Library Identification ¶ Placeholder: CAA Types Default Resolution: CAA Types Extern, * (CAA Technical Workgroup) Namespace: CAA Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: True SystemLibrary: False Key: CAA Types
IoDrvGPIO Library Documentation ¶ Company : CODESYS Title : IoDrvGPIO Version : 4.10.0.0 Categories : Target|3S - Smart Software Solutions GmbH Namespace : IoDrvGPIO Author : CODESYS Development GmbH Placeholder : IoDrvGPIO Description [ 1 ] ¶ Library containing IO driver for Raspberry GPIOs Contents: ¶ GPIO (FunctionBlock) connector internal status GPIOType (Enum) IoDrvGPIO (FunctionBlock) ProcessorType (Enum) Indices and tables ¶ [ 1 ] Based on IoDrvGPIO.library, last modified 25.10.2023, 14:06:34. LibDoc 4.4.0.0-b.37 The content file IoDrvGPIO.clean.json was generated with CODESYS V3.5 SP16 Patch 3 on 25.10.2023, 14:06:35.
GPIO (FB) ¶ FUNCTION_BLOCK GPIO This function block is the base class for SPI devices controlled via the SPI device /dev/spidev0.0. It is meant to be extended by other function blocks that overload the body and the following methods/properties and replace it with their specific implementation, always including a call of the base implementation with super^.<MethodName>() : - body (general handling, start-up) - AfterReadInputs (reading input data) - BeforeWriteOutputs (writing output data) - Initialize [optional] (used to read parameters from the configuration) - Operational [optional] (used to signal the status of the device) The body of this FB is called by the methods AfterReadInputs and BeforeWriteOutputs, where _xAfterReadInputs indicates the caller. Use _iState to control your statemachine. A value of 10 by default indicates that the drive is operational. Do not forget to call the base implementation with super^(), where the diagnosis indicators are set according to the Operational property. InOut: Scope Name Type Input aeType ARRAY [0..31] OF GPIOType axOutputs ARRAY [0..31] OF BOOL udiPWMFrequency UDINT uiPWMDutyCycle UINT Output dwInputs DWORD axInputs ARRAY [0..31] OF BOOL Properties: Operational Methods: AfterReadInputs BeforeWriteOutputs DetermineConstants DetermineProcessorType Initialize Structure: connector AfterReadInputs (Method) BeforeWriteOutputs (Method) Initialize (Method) internal DetermineConstants (Method) DetermineProcessorType (Method) status Operational (Property)
connector ¶ AfterReadInputs (Method) BeforeWriteOutputs (Method) Initialize (Method)
GPIO.AfterReadInputs (METH) ¶ METHOD AfterReadInputs : INT This method can be overloaded by extending FBs. It is used to read in the inputs of the device in the beginning of the cycle. Always including a call of the base implementation with super^.AfterReadInputs() In the base implementation, the body of the FB is called. InOut: Scope Name Type Return AfterReadInputs INT
GPIO.BeforeWriteOutputs (METH) ¶ METHOD BeforeWriteOutputs : INT This method can be overloaded by extending FBs. It is used to write the outputs to the device at the end of the cycle. Always including a call of the base implementation with super^.BeforeWriteOutputs() In the base implementation, the body of the FB is called. InOut: Scope Name Type Return BeforeWriteOutputs INT
GPIO.Initialize (METH) ¶ METHOD Initialize : UDINT This method can be overloaded by extending FBs. It is called once during initialization phase, before the PLC goes into “run”. Always including a call of the base implementation with super^.Initialize(wModuleType, udiInstance, pConnector) Typically, parameter values from the configuration are read here. InOut: Scope Name Type Return Initialize UDINT Input wModuleType UINT dwInstance UDINT pConnector POINTER TO IoConfigConnector
internal ¶ {attribute ‘libdoc_include’} DetermineConstants (Method) DetermineProcessorType (Method)