📄 class.h
字号:
// This is a prototype class of all other LASAL classes.
// The LASAL compiler will take the method headers defined here as
// a prototype for all standard methods of all classes in the current project.
// Names and calling conventions can be changed by the user. The compiler
// will only assume the following order of functionalities:
//
// Method-No. Default-Name Function
//----------------------------------------------------------------------------------
// 1 Read Reads the contents of the server channel
// 2 Write Writes to a server channel
// 3* Init Initializes an object
// 4* CyWork low priority background work
// 5* RtWork high priority realtime work
// 6* NewInstr send interpreter commands to an object
// 7* Kill terminate all object activities
// 8* GetState observe execution of interpreter commands
// Remarks: * these functions are only available for Server Channel Commands
#ifndef __CLASS__STANDARD__METHODS__
#define __CLASS__STANDARD__METHODS__
#include <RTOS_Globals.h>
#ifndef LASAL_VERSION
#include <RTOS_UNITS.h>
#else
#if LASAL_VERSION < 58
#include <RTOS_UNITS.h>
#endif//LASALVERSION < 58
#endif//LASAL_VERSION
CLASS
//[#ENGLISH]
// The 'Read' method provides the characteristic data
// of a server channel. It's default implementation will
// return the contents of the channels 'dData'-element.
// So 'Read' can be called for each server.
//[<output(EAX)]a 4 byte return value
//[#DEUTSCH]
// Die 'Read'-Methode liefert die f黵 einen Kanal relevanten
// Daten zur點k. Ihre Standard-Implementierung liefert einfach
// den Inhalt des 'dData'-Elements des Kanals.
// 'Read' kann jedenfalls f黵 alle Kan鋖e aufgerufen werden.
//[<output(EAX)]Der 4-Byte-lange R點kgabewert
FUNCTION VIRTUAL GLOBAL Read
VAR_OUTPUT
output(EAX) : DINT; // data
END_VAR;
//[#ENGLISH]
// The behaviour of the 'Write' method is not predefined.
// Usually it will be used to write data to the channel's
// 'dData'-element. This can be achieved by simply un-
// checking the 'write-protection'-flag in the method's
// context menu (right-click on 'Write').
// The default implementation of 'Write' simply does nothing.
// So 'Write' can be called for each server.
//[>input(EAX)]a 4 byte input parameter
//[<result(EAX)]a 4 byte return value with implementation specific meaning
//[#DEUTSCH]
// Das Verhalten der 'Write'-Methode ist nicht klar bestimmt.
// 躡licherweise wird sie verwendet, um Daten in einem Kanal
// zu speichern. Das kann einfach durch L鰏chen des
// 'Schreibgesch黷zt'-Hakerls im Kontext-Men
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -