Lenze ETC Motion Control Bedienungsanleitung Seite 378

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 428
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 377
PLC programming
Library
V24 functions
8
8.8
8.8.2
l
378
EDSTCXN EN 2.0
8.8.2.2 INITV24
FUNCTION InitV24: DINT
VAR_INPUT
req_pr : DINT; (* Address of the V24 request structure *)
mode_dw : DWORD;
flags_dw : DWORD;
END_VAR
This function is used to set up the interface parameters of a V24 interface
allocated with AllocV24.
ƒ mode_dw results from the OR combination of mode bits ( 391).
ƒ flags_dw results from the OR combination of flag bits ( 391).
A return value other than 0 signals an error ( 391).
ret_di : DINT;
requestV24_p : DINT;
requestV24_p : = ALLOCV24(1, 127);
ret_di : = InitV24(requestV24_p,
mode_no_parity OR mode_8_bits_per_char OR
mode_no_rts_cts_control OR mode_stop_bit_len_2 OR
mode_rx_baudrate_9600 OR mode_tx_baudrate_9600 OR
mode_rx_buffersize_2k OR mode_tx_buffersize_2k,flags_no_protocol);
8.8.2.3 FREEV24
FUNCTION FreeV2: BOOL
VAR_INPUT
req_pr : DINT; (* Address of the V24 request structure *)
END_VAR
This function releases the access rights to the allocated V24 interface and
returns the interface to its original state.
The return value of the function is of no consequence.
requestV24_p : DINT;
requestV24_p : = ALLOCV24(1, 127);
REEV24(requestV24_p);
Declaration
Description
Example
Declaration
Description
Example
Seitenansicht 377
1 2 ... 373 374 375 376 377 378 379 380 381 382 383 ... 427 428

Kommentare zu diesen Handbüchern

ama 11 Jan 2025 | 19:35:39

rasha