List of most interesting library software blocks available in MOSAIC
(*============================================================================*)
Obsługa danych astronomicznych dla systemów solarnych
(* AstroLib_V10_20101119 *)
(*============================================================================*)
DegreesToAngle // Convert degrees/minutes/seconds to an angle in radians
AngleToDegrees // Convert angle in radians to degrees/minutes/seconds
SunTime // Sunrise/Sunset Algorithm
SunDeclination // Sun's declination (in degrees).
SunHeightAboveHorizon // Sun's height above the horizon (in degrees)
SunAzimuth // Sun's azimuth
(*============================================================================*)
Obsługa wymiany danych z wykorzystaniem protokołu BacNet
(* BacNetLib_V13_20100224 *)
(*============================================================================*)
BACNET_CONSOLE_ENABLE
BACNET_CONSOLE_DISABLE
BACNET_CONSOLE_IS_ENABLED // return value TRUE means BACnet console is enabled
BACNET_TYP_FB_BI
BACNET_TYP_FB_BO
BACNET_TYP_FB_BV
BACNET_TYP_FB_AI
BACNET_TYP_FB_AO
BACNET_TYP_FB_AV
(*============================================================================*)
Obsługa typowych procesów sterowania w systemach inteligentnego budynku BMS/HMS
(* BuildingLib_V10_20080821 *)
(*============================================================================*)
DMA1 // One Button Dimmer Automat
SCA1 // Staircase automat,
SCA2 // Staircase automat with dimmer,
SBC1 // Sunblind Control 1
MFT1 // One Level Thermostat,
MFT2 // Two Level Thermostat,
MFT3 // Diferential Thermostat,
MFT4 // Thermostat With Dead Zone
PWM // Pulse Width Modulation
(*============================================================================*)
Obsługa komunikacji siecią Ethernet
(* ComLib_V15_20100802 *)
(*============================================================================*)
GetChanDesc // Get a descriptor of the serial channel
GetChanIndex // Test the existence of a communication channel
GetLastComErrTxt // Convert error code to text message
GetChanSettings // The test configuration of the serial channel
SetChanSettings // Set serial port parameters
GetChanStat // Test status of the communication channel
EstabTCPconnection // Establish a TCP connection
CloseTCPconnection // Close TCP connection
IsEstabTCPconnection // Test the state of TCP connections
SetRemoteIPaddress // Set the destination IP address
GetRemoteIPaddress // Test the destination IP address
fbSendTo // Transmit data over the communication channel
fbRecvFrom // Receiving data from the communication channel
GetIPaddress // Test current IP address
SetIPaddress // Setting up your own IP address
GetMACaddress // Test MAC address
SetDHCPsupport // Turn on support for DHCP
STRING_TO_IPADR // Convert text string to IP address
IPADR_TO_STRING
(*============================================================================*)
Obdługa konwersji formatów danych
(* ConvertLib_V10_20101117 *)
(*============================================================================*)
STRING_TO_UPPER // Convert lowercase letters to uppercase
STRING_TO_LOWER // Convert uppercase letters to lowercase
STRING_HEX_TO_UDINT // Convert STRING (HEX NUMBER ONLY) TO UDINT
DEG_TO_RAD // Convert degrees to radians
RAD_TO_DEG // Convert radians to degrees
DEGREES_TO_ANGLE // Convert angle (degrees, minutes, seconds) to radians
FAHRENHEIT_TO_CELSIUS // Convert temperature from Fahrenheit to Celsius
CELSIUS_TO_FAHRENHEIT // Convert temperature from Celsius to Fahrenheit
ANGLE_TO_DEGREES // Convert angle in radians to degrees/minutes/seconds
(*============================================================================*)
Obsługa weryfikacji sum kontrolnych
(* CrcLib_V12_20100902 *)
(*============================================================================*)
CheckCRC_16 // Calculation of polynomial (x16 + x15 + x2 + 1)
CheckSum // Calculation of the arithmetic sum of an array of bytes modulo 256
CheckSum_XOR // Calculation of the logical XOR array of bytes
CheckCRC_CCITT // Calculation of polynomial (x16 + x12 + x5 + 1)
CheckCRC_TECO // Calculation of polynomial (x16 + x6 + x3 + 1)
CheckCRC_DIN // Calculation of polynomial according standard DIN 66 348
CheckCRC_ARNEP // Calculation of the polynomial for Conel net ARNEP
(*============================================================================*)
Obsługa bloków danych
(* DataBoxLib_V14_20100902 *)
(*============================================================================*)
ReadBlockFromDBx // Transfer of data block from DataBox memory to variable
WriteBlockToDBx // Transfers of data block from variable to DataBox memory
ReadFromDataBox // Transfer of data block from DataBox memory to variable
WriteToDataBox // Transfer of data block from variable to DataBox memory
SizeOfDataBox // DataBox memory size identification
(*============================================================================*)
Obsługa tekstów wymienianych przez łącza komunikacyjne
(* DebugComLib_V14_20101208 *)
(*============================================================================*)
fbDebugCom // Stores received and transmited data over communication channel in text format
fbDebug2Com // Stores received and transmited data over two communications channel in text format
fbDebugComEx // Stores received and transmited data over communication channel in text format
(*============================================================================*)
Obsługa komunikacji z wykorzystaniem protokołu sterowania oświetleniem teatralnym
(* DMX512lib_V11_20101206 *)
(*============================================================================*)
fbDMX512 // FB transmits DMX 512 protocol for light instrumentation (RS485, 250 kBd, one parity, 2 stop bits, Break, Start Code, Data...)
(*============================================================================*)
Obsługa procesów organizacji plików
(* FileLib_V17_20101026 *)
(*============================================================================*)
FileOpen // Open file
FileClose // Closing file
FileDelete // Deleting a file
FileRead // Read file
FileWrite // Write to a file
FileSetPos // Set file position
FileExists // Test for existence of file
FileSize // Find file size
DirOpen // Open Directory
DirClose // Closing directory
DirRead // Read from directory
DirCreate // Create a directory
DirDelete // Delete directory
GetLastErr // Get the last error code
GetLastErrTxt // Description
DiskInfo // Get information about disk
FindFreeCluster // Find free disk space
ReadFromFile // Copy data from file to variable
WriteToFile // Copy data from variable to file
CreatePath // Create a directory (including path)
WriteDbxToFile // Copy data from databox to file
ReadDbxFromFile // Copy data from a file to DataBox memory
WriteToFileSeq // Sequential write data to file
(*============================================================================*)
Obsługa zapisu/odczytu do/z pamięci Flash
(* FlashLib_V13_20100902 *)
(*============================================================================*)
FlashRead // Reading data from flash memory
FlashWrite // Writing data to flash memory (max 255 bytes)
GetLastFlashErr // Return the last error code
GetLastFlashErrTxt // errCode : USINT; error code
FlashInfo // Get information about Flash memory
fbFlashErase // Erasing the Flash memory sector
fbFlashSave // Writing data to flash memory
(*============================================================================*)
Obsługa wymiany komunikatów w trybie SMS /Short Message Service/
(* GsmLib_V26_20101208 *)
(*============================================================================*)
SMS_HANDLER // Sends and receives SMS messages
fbRecvToCrLf // Auxiliary function block for SMS_HANDLER_x.
SMS_HANDLER_2 // Sends and receives SMS messages with national coding
SMS_HANDLER_3 // Sends and receives binary SMS messages including binary zeros
(*============================================================================*)
Obsługa urządzeń inteligentnego systemu elektroinstalacyjnego INELS
(* INELSlib_V02_20080121 *)
(*============================================================================*)
INELS_GetTime // Function returns actual system time
INELS_GetDateTime // Function returns actual system date and time
INELS_F_TRIG // Falling Edge Detector
DMR // Dimmer
SA // Spinaci binarni blok
IM // Vstupni binarni blok
THM // Teplomer se signalizaci nizke a vysoke teploty
TAW // Weekly Time Action
TAM // Monthly Time Action
TP1 // Yearly Time Program
TP2 // Weekly Time Program 2-state
TP4 // Weekly Time Program 4-state (for air-condition)
DMR2 // Dependent Dimmer
CNTR // Citac
TIM // Casovac
IMS // Vstupni binarni blok zabezpecovaci
(*============================================================================*)
Obsługa komunikacji w sieci Internet
(* InternetLib_V17_20101208 *)
(*============================================================================*)
fbNsLookUp // Translates domain name
fbHttpRequest // Sends POST and GET metods via HTTP
CodeStringToBase64 // Encode ASCII String to Base64 String
CodeDataToBase64 // Encode ASCII String to Base64 String
CodeBase64ToString // Encode Base64 String to ASCII String
fbSmtp // Sends email messages via SMTP
fbSntp // Gets time offset from remote time server
fbNsLookUpByTable // Translates domain names by table
fbStoreToFtp // Stores file from memory card to FTP server
(*============================================================================*)
Obsługa protokołu Tnet w systemach IRC /Individual Room Control/
(* IRClib_V10_20060602 *)
(*============================================================================*)
IRC_Memcpy // Function memcpy copies a block of n bytes
IRC // Komponenta pro pripojeni 16 IRC pokojovych modulu protokolem Tnet
(*============================================================================*)
Obsługa konwersji Little<=>Big Endian /zamiana znaczących bajtów w wielobajtowych danych/
(* LittleBigEndian_V11_20101206 *)
(*============================================================================*)
INT_TO_INT // INT conversion Litle Endian <==> Big Endian
UINT_TO_UINT // UINT conversion Litle Endian <==> Big Endian
DINT_TO_DINT // DINT conversion Litle Endian <==> Big Endian
UDINT_TO_UDINT // UDINT conversion Litle Endian <==> Big Endian
REAL_TO_REAL // REAL conversion Litle Endian <==> Big Endian
(*============================================================================*)
Obsługa stacji meteorologicznej GIOM3000
(* MeteoGiom3000Lib_V11_20101208 *)
(*============================================================================*)
fbGIOM3000 // Function blok for processing data transmited by anemometrem GIOM3000
(*============================================================================*)
Obsługa komunikacji z wykorzystaniem protokołu ModbusRTU i ModbusTCP
(* ModbusRTU_V15_20101206 *)
(*============================================================================*)
ModbusCmd // The Function writes communication parameters into array of commands.
ModbusCmdTCP // The Function writes communication parameters into array of commands.
GetModbusErrTxt // The Function converts error code to string
ModbusRTUmas // Communicates with the slave devices by protocol Modbus RTU.
ModbusTCPmas // Communicates with the slave devices by protocol Modbus TCP.
(*============================================================================*)
Obsługa procedur modelowania obiektu strowania
(* ModelLib_V11_20101209 *)
(*============================================================================*)
fbLimIntegrator // Simulation of integral of input with limits.
fbIntegrator // Simulation of integral of input.
fbDerivator // Simulation of derivation of input. Calculated by trapezoid
fbDelay // Simulation of transport delay of input.
fbFirstOrder // Simulation of first-order system described by differential equation
fbSecondOrder // Simulation of second-order system described by differential equation
fbSecondOrderOsc // Block for simulation of second-order oscillating system described by
fbSimplePID // PID algorithm with antiwind-up and filtered D-part
fbGenerator // Signal generator
(*============================================================================*)
Obsługa układów napędowych pracujących w trybie Motion Control
(* MotionControl_V14_20101118 *)
(*============================================================================*)
GT_SetConstants // Seting of Axis Constants
MC_Power // Power on and close loop
MC_StepAbsSwitch // Look for abs. ref. switch (not finalize Homing)
MC_StepLimitSwitch // Look for limit switch (not finalize Homing)
MC_StepRefPulse // Look for null index pulse
MC_StepBlock // Look for stop to the mechanical block
MC_StepDirect // Look for absolute position when homing is done
MC_FinishHoming // Finish of Homing
MC_MoveAbsolute // Moving to absolute position
MC_MoveRelative // Relative Moving
MC_MoveAdditive // Additive Moving
MC_MoveVelocity // Velocity Moving
MC_GearIn // Moving in gear
MC_Stop // Stop the selected ramp
GT_ESTOP // Emergency Stop (stop with the max.ramp, the loop is still closed)
MC_ReadActualPosition // Reading the current position
MC_ReadStatus // Reading the state of the axis
MC_ReadAxisError // Reading of Axis Error
MC_Reset // Reset of errors
MC_AddAxisToGroup // Add Axis To Group
MC_UngroupAllAxes // Ungroup All Axes
MC_MoveLinearAbsolute // Linear Absolute Move of the group axis
MC_GroupReadActualPosition // Reading the current position of the group axis
MC_GroupReadStatus // Reading the state of the group axis
MC_GroupReadError // Reading Errors of the group axis
GT_JOG // Jogging to axis
GT_Analog // Testing of Analog output (open loop and set analog output 10V..0..-10V)
GT_AxStatusString // Converted the axis status to string
GT_AxErrStringCZ // Converted the axis errors to string CZ
GT_AxErrStringEN // Converted the axis errors to string EN
(*============================================================================*)
Obsługa ramki, do której należy zmienna stanu
(* PlcNetBasic_V10_20100105 *)
(*============================================================================*)
PLCnet_GetFrame // Determining the frame which the variable owning the 'status' word belongs to
PLCnet_GetState // Determining the state of the variable owning the 'status' word belongs to
(*============================================================================*)
Obsługa układów regulacji
(* RegoLib_V19_20100527 *)
(*============================================================================*)
Rego_GetTime // Function returns actual system time
Rego_GetDateTime // Function returns actual system date and time
Cascade2 // Cascade2 - kaskáda 2 stupňů se střídáním
Cascade3 // Cascade3 - kaskáda 3 stupňů se střídáním
Cascade4 // Cascade4 - kaskáda 4 stupňů se střídáním
Cascade5 // Cascade5 - kaskáda 5-ti stupňů se střídáním
Ekviterm1 // Komponenta provádí výpočet žádané teploty OUT na základě měřené venkovní teploty IN,
Ekviterm2 // Komponenta provádí výpočet žádané teploty OUT na základě měřené venkovní teploty IN,
History1 // Komponenta provádí ukládání výskytu poruch do zásobníku typu FIFO.
History5 // Komponenta provádí ukládání výskytu poruch do zásobníku typu FIFO.
History10 // Komponenta provádí ukládání výskytu poruch do zásobníku typu FIFO.
PID1 // PID regulátor s přírůstkovým řízením.
PID11 // PID regulátor s přírůstkovým řízením a užším výběrem proměnných.
PID2 // PID2 - regulátor s přímým řízením
PID21 // PID2 - regulátor s přímým řízením a užším výběrem proměnných.
PID3 // PID3 - volně nastavitelný regulátor
SigErr1 // Komponenta provádí vyhodnocení výskytu poruchy s nastaveným časovým spožděním
SigErr11 // Komponenta provádí vyhodnocení výskytu poruchy s nastaveným časovým spožděním
SigErr12 // Komponenta provádí vyhodnocení výskytu poruchy s nastaveným časovým zpožděním
SigErr13 // Komponenta provádí vyhodnocení výskytu poruchy s nastaveným časovým spožděním PRESETTIMEx pro 8 binárních vstupů.
SigErr2 // Komponenta provádí kontrolu čtyř vstupních analogových hodnot. Pokud je
SigErr21 // Komponenta provádí kontrolu čtyř vstupních analogových hodnot. Pokud je
SigErr22 // Komponenta provádí kontrolu čtyř vstupních analogových hodnot. Pokud je
SigErr23 // Komponenta provádí kontrolu čtyř vstupních analogových hodnot. Pokud je
Hyst1 // Hystereze.
Hyst2 // Hystereze MIN,MAX.
Hyst3 // Dvojitá hystereze MIN,MAX.
Hyst31 // Dvojitá hystereze MIN,MAX s řídící proměnnou.
TProg1 // Komponenta na základě nastaveného týdenního programu a systémového času nastavuje výstupní signál OUT.
TProg2 // Komponenta na základě nastaveného týdenního programu a systémového času nastavuje výstupní signál OUTPUT.
TProg31 // Komponenta na základě nastaveného týdenního programu a systémového času nastavuje výstupní signál OUTPUT.
TProg41 // Komponenta na základě nastaveného týdenního programu a systémového času nastavuje výstupní signál OUTPUT.
(*============================================================================*)
Obsługa zaawansowanych procesów regulacji
(* RexLib_V17_20101208 *)
(*============================================================================*)
fbSCU // Step Controller Unit
fbSCUV // Step Controller Unit with Velocity input
fbMCU // Manual Control Unit
fbPWM // Pulse Width Modulation
fbPSMPC // Pulse-Step Model Predictive Controller
fbPIDU // PID Unit
fbPIDMA // PID controller with Moment Autotuner
fbSampler // Capture transient characteristics and performs basic identification
fbPIDU_SCU // PID Unit with three-state output with feedback
fbPIDU_SCUV // PID Unit with three-state output without feedback
fbPIDMA_SCU // PID controller with moment autotuner with three-state output with feedback
fbPIDMA_SCUV // PID controller with moment autotuner with three-state output without feedback
fbSetPIDMAPar // moves autotuner result to configuration structure of controller fbPIDMA
fbSetPIDMA_SCUPar // moves autotuner result to configuration structure of controller fbPIDMA_SCU
fbSetPIDMA_SCUVPar // moves autotuner result to configuration structure of controller fbPIDMA_SCUV
(*============================================================================*)
Obsługa serwozaworów
(* ServoLib_V11_20101206 *)
(*============================================================================*)
ServoModel // Servo-controlled model with two binary inputs: forward, backward
TimeControlServo // Control of the servo without feedback by model
(*============================================================================*)
Obsługa interpolacji i filtów pierwszego rzędu dla pomiarów analogowych
(* SignalAdapt_V11_20101206 *)
(*============================================================================*)
FB_FILTER1_REAL // 1st order filter for analog measurement (REAL)
FB_FILTER1_INT // 1st order filter for analog measurement (REAL)
FB_INTERPOLATION_REAL // linear interpolation for analog measurement (REAL)
FB_INTERPOLATION_INT // linear interpolation for analog measurement (INT)
(*============================================================================*)
Obsługa typowych zadań dwustanowych i realizowanych przez liczniki czasu i zdarzeń
(* StdLib_V20_20100519 *)
(*============================================================================*)
R_TRIG // Rising Edge Detector
F_TRIG // Falling Edge Detector
SR // Flip-Flop (Set Dominant)
RS // Flip-Flop (Reset Dominant)
CTU // Up Counter
CTD // Down Counter
CTUD // Up-Down Counter
TON // On-delay Timer
TOF // Off-delay Timer
TP // Pulse Timer
ADD_TIME // TIME := TIME + TIME;
SUB_TIME // TIME := TIME - TIME;
ADD_TOD_TIME // TIME_OF_DAY := TIME_OF_DAY + TIME;
ADD_DT_TIME // DATE_AND_TIME := DATE_AND_TIME + TIME;
SUB_DATE_DATE // TIME := DATE - DATE;
SUB_TOD_TIME // TIME_OF_DAY := TIME_OF_DAY - TIME;
SUB_TOD_TOD // TIME := TIME_OF_DAY - TIME_OF_DAY;
SUB_DT_TIME // DATE_AND_TIME := DATE_AND_TIME - TIME;
SUB_DT_DT // TIME := DATE_AND_TIME - DATE_AND_TIME;
CONCAT_DATE_TOD // DATE_AND_TIME := DATE + TIME_OF_DAY;
(*============================================================================*)
Obsługa informacji wewnętrznych dotyczących układu sterowania
(* SysLib_V25_20100902 *)
(*============================================================================*)
ModuleInfo // Get information about IO module
IOSystemInfo // Get state of PLC IO system
Memcpy // Copy memory
Memset // Set memory
Memcmp // Compare memory
IncreaseMaxCycleTime // Increase max limit for PLC scan time
SetSummerTime // Set Automatic Daylight Saving Time
IsSummerTime // Test of summer time
SetWinterTime // Disable Automatic Daylight Saving Time
IsWinterTime // Test of winter time
GetDate // Get actual system date
GetTime // Get actual system time
GetDateTime // Get actual system date and time
GetRTC // Get actual date and time from RTC device directly
SetRTC // Set new date and time of PLC
TecoDT_TO_DT // Convert structure TTecoDateTime to type DATE_AND_TIME
DT_TO_TecoDT // Convert DATE_AND_TIME to structure TTecoDateTime
CIBunitInfo // Get state of CIB unit
SetAddressCIBunit // Set new address of CIB unit
ProgramLock // Lock the application program
SetWebPSW // Set password for web access
VerifyWebPSW // Verify password for the website PLC
SystemDisplayBacklightOn // Switch on the display backlight system
SystemDisplayBacklightOff // Switch off the display backlight system
fbTick // Periodic Timer
(*============================================================================*)
Obsługa czasu rzeczywistego
(* TimeLib_V10_20101120 *)
(*============================================================================*)
DATE_OF_DT // Get DATE from variable DATE_AND_TIME
TIME_OF_DT // Get DATE from variable DATE_AND_TIME
YEAR_OF_DT // Get year from variable DATE_AND_TIME
MONTH_OF_DT // Get month from variable DATE_AND_TIME
DAY_OF_DT // Get day from variable DATE_AND_TIME
HOUR_OF_DT // Get hours from variable DATE_AND_TIME
MIN_OF_DT // Get minutes from variable DATE_AND_TIME
SEC_OF_DT // Get seconds from variable DATE_AND_TIME
MSEC_OF_DT // Get miliseconds from variable DATE_AND_TIME
CutMSec_From_DT // Cut miliseconds from variable DATE_AND_TIME
CutSec_From_DT // Cut seconds from variable DATE_AND_TIME
YEAR_OF_DATE // Get year from variable DATE
MONTH_OF_DATE // Get month from variable DATE
DAY_OF_DATE // Get day from variable DATE
DAY_OF_YEAR // Get day of year from variable DATE
HOUR_OF_TIME // Get hours from variable TIME
MIN_OF_TIME // Get minutes from variable TIME
SEC_OF_TIME // Get seconds from variable TIME
MSEC_OF_TIME // Get miliseconds from variable TIME
DecodeTime // Convert TIME to hours, minutes, seconds and miliseconds
EncodeTime // Convert hours, minutes, seconds and miliseconds to TIME
MUL_TIME_REAL // TIME := TIME * REAL;
MUL_TIME_LREAL // TIME := TIME * LREAL;
DIV_TIME_REAL // TIME := TIME / REAL;
DIV_TIME_LREAL // TIME := TIME / LREAL;
(*============================================================================*)
Obsługa konwersji formatów danych
(* ToStringLib_V12_20101206 *)
(*============================================================================*)
USINT_TO_STRINGF // Conversion USINT to formatted STRING
SINT_TO_STRINGF // Conversion SINT to formatted STRING
UINT_TO_STRINGF // Conversion UINT to formatted STRING
INT_TO_STRINGF // Conversion INT to formatted STRING
UDINT_TO_STRINGF // Conversion UDINT to formatted STRING
DINT_TO_STRINGF // Conversion DINT to formatted STRING
REAL_TO_STRINGF // Conversion REAL to formatted STRING
LREAL_TO_STRINGF // Conversion LREAL to formatted STRING
BYTE_TO_STRINGF // Conversion BYTE to formatted STRING
WORD_TO_STRINGF // Conversion WORD to formatted STRING
DWORD_TO_STRINGF // Conversion DWORD to formatted STRING
DATE_TO_STRINGF // Conversion DATE to formatted STRING
DT_TO_STRINGF // Conversion DATE_AND_TIME to formatted STRING
TIME_TO_STRINGF // Conversion TIME to formatted STRING
TOD_TO_STRINGF // Conversion TIME_OF_DAY to formatted STRING
(*============================================================================*)
Obsługa interpretacji graficznej
(* WebGraphLib_V11_20101206 *)
(*============================================================================*)
fbSetMinMaxY // Internal functional block of library
SetViewIndx // internal function to shift of graph
SetDescAxisY // internal function to describe the Y-axis
SetDescAxisX // internal function to describe the X-axis
fbSimpleGraph1Real_32C // Chart support for 32 columns of REAL
InsertToGraphReal // Add value into REAL graph
SwitchRollGraphReal // Switch scrolling graph REAL
fbSimpleGraph2Real_32C // Chart support for 2x32 columns of REAL
fbSimpleGraph1Int_32C // Chart support for 32 columns of INT
InsertToGraphInt // Add value into INT graph
SwitchRollGraphInt // Switch scrolling graph INT
fbSimpleGraph1Real_64C // Chart support for 64 columns of REAL
(*============================================================================*)
Obsługa analizatora składni XML
(* XmlLib_V14_20101209 *)
(*============================================================================*)
fbParserLineXML // converts one line from XML document into a lineXML structure
fbComposerLineXML // Converts a lineXML structure into one line of XML document
|