IoDrvMCP3008 (FB) ¶ FUNCTION_BLOCK IoDrvMCP3008 EXTENDS IoDrvBase IMPLEMENTS ICmpIoDrvParameter
MCP3008 (FB) ¶ FUNCTION_BLOCK MCP3008 EXTENDS spi InOut: Scope Name Type Output auiValue ARRAY [0..7] OF UINT Methods: AfterReadInputs BeforeWriteOutputs Initialize Structure: connector AfterReadInputs (Method) BeforeWriteOutputs (Method) Initialize (Method)
connector ¶ AfterReadInputs (Method) BeforeWriteOutputs (Method) Initialize (Method)
MCP3008.AfterReadInputs (METH) ¶ METHOD AfterReadInputs : INT InOut: Scope Name Type Return AfterReadInputs INT
MCP3008.BeforeWriteOutputs (METH) ¶ METHOD BeforeWriteOutputs : INT InOut: Scope Name Type Return BeforeWriteOutputs INT
MCP3008.Initialize (METH) ¶ METHOD Initialize : UDINT InOut: Scope Name Type Return Initialize UDINT Input wModuleType UINT dwInstance UDINT pConnector POINTER TO IoConfigConnector
File and Project Information ¶ Scope Name Type Content FileHeader creationDateTime date 25.10.2023, 14:08:49 companyName string 3S-Smart Software Solutions GmbH libraryFile Raspberry SPI MCP3008.library primaryProject True productName CODESYS productProfile CODESYS V3.5 SP16 Patch 3 contentFile Raspberry SPI MCP3008.clean.json version version 2.0.0.0 ProjectInformation Released bool True LastModificationDateTime date 25.10.2023, 14:08:47 LibraryCategories library-category-list Target Author string 3S - Smart Software Solutions GmbH Company 3S - Smart Software Solutions GmbH CompiledLibraryCompatibilityVersion CODESYS V3.5 SP16 DefaultNamespace MCP3008 Description See: Description Placeholder SPI MCP3008 Project Raspberry SPI MCP3008 Title Raspberry SPI MCP3008 Version version 4.10.0.0
SPI ¶ spi (FunctionBlock) connector AfterReadInputs (Method) BeforeWriteOutputs (Method) internal transfer (Method) transferExt (Method) status Operational (Property) spiMaster (FunctionBlock) Operational (Property) readwrite-commands transferExt (Method)
spi (FB) ¶ FUNCTION_BLOCK spi 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 device is operational. Do not forget to call the base implementation with super^() , where the diagnosis indicators are set according to the Operational property. Properties: Operational Methods: AfterReadInputs BeforeWriteOutputs transfer transferExt Structure: connector AfterReadInputs (Method) BeforeWriteOutputs (Method) internal transfer (Method) transferExt (Method) status Operational (Property)
connector ¶ AfterReadInputs (Method) BeforeWriteOutputs (Method)