FC_MAreaWriteAccessGet - General Information

Overview

Type:

Function

Available as of:

SystemInterface_1.32.6.0

Versions:

Current version

Task

Determining whether the access to a marker area is restricted to a certain area by the LZS_ELAU_M_AREA_WRITE communication service.

Description

The LZS_ELAU_M_AREA_WRITE and LZS_ELAU_M_AREA_READ communication services facilitate read and write access to the marker area via Ethernet. The external tool must provide a client function and a communication driver.

The FC_MAreaWriteAccessSet() function restricts write access to the marker area to a certain area via the LZS_ELAU_M_AREA_WRITE communication service. The default setting allows access to the entire marker area (0 … 65535).

The restriction remains effective until the next time FC_MAreaWriteAccessSet() is called up or the next time the PacDrive Controller is booted. The restriction is not affected when the program is reset or the project is changed.

You can read out the current setting at any time using the FC_MAreaWriteAccessGet() function. The function delivers the parameters of the permitted range (initial address of the writable range iq_udiAddr (0...65535) and the number of bytes iq_udiByteCount (0...65535)) for write access via the LZS_ELAU_M_AREA_WRITE communication service.

NOTE: The function is only run if there is a valid range specification. That means the entire range must be in the available marker area (0 … 65535). Thus, the following holds: (iq_udiAddr + iq_udiByteCount) <= 65536

Interface

Input/Output

Data type

Description

iq_udiAddr

UDINT

Starting address in the marker area

iq_udiByteCount

UDINT

Number of bytes to be written

Return Value

Data type

Description

DINT

0: OK