Lenze ETC Motion Control Manual de usuario Pagina 364

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 428
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 363
PLC programming
Library
General functions
8
8.8
8.8.1
l
364
EDSTCXN EN 2.0
8.8.1.5 GetMacAddr (nur ETCxM)
FUNCTION GetMacAddr: BOOL
VAR_INPUT
pMac : DINT; (* Address of an array of the teyp ARRAY[0..5] OF BYTE *)
END_VAR
With this function the MAC address of the Ethernet controller of the control
can be read. The function must be passed the address of a memory area of
6 bytes (see example). The return value of the function indicates whether the
address could be read.
ret_bit : BOOL;
mac_a : ARRAY[0..5] OF BYTE;
ret_bit : = GetMacAddr(ADR(mac_ab));
8.8.1.6 GetUserParam (only ETCxM)
FUNCTION GetUserParam: LREAL
VAR_INPUT
index_dw : DWORD; (* Index of MK_TECHNOLOGY_DATA_x *)
END_VAR
This function allows for the values of the machine constants
MK_TECHNOLOGY_DATA_1 to MK_TECHNOLOGY_DATA_4 to be read. The
value index_dw to be passed corresponds to the position (starting with 0)
numbered sequentially from first entry of MK_TECHNOLOGY_DATA_1 to
the last entry of MK_TECHNOLOGY_DATA_4 .
MK_TECHNOLOGY_D
ATA_1
1.1, 0, 0, 0, 0, 0, 0, 0, 0, 0;
MK_TECHNOLOGY_D
ATA_2
0, 4.5, 3, −5.7, 0, 0, 0, 0, 0, 0;
wert_d : DINT;
wert_lr : LREAL;
wert_lr : = GetUserParam(9); (* returns the value −1.1 *)
wert_di
: = LREAL_TO_DINT(GetUserParam(12)); (* returns the value 3 *)
Declaration
Description
Example
Declaration
Description
Example
Vista de pagina 363
1 2 ... 359 360 361 362 363 364 365 366 367 368 369 ... 427 428

Comentarios a estos manuales

ama 11 Jan 2025 | 19:35:39

rasha