Application function module BIS V-CLM
1. Hardware Configuration
In this example, a BIS V is used, which is connected to a Siemens 1500 CPU:

A read/write head is used at H1 with a data size of 64 bytes:

1.1. Add module
The function blocks are available for each product on the Balluff homepage in the download area.

The library must be downloaded and added to the controller (TIA):

The function block is now available in the project and can be used:

2. Building the block in the program
The block was inserted into the program using drag and drop and can now be populated with the variables:

The block with the variables can look like this:

2.2. Variable HW_LADDR_Q
These two variables must be used for the HW identifier of the input and output module of e.g. BIS M 6008:


The module looks as follows:

In addition, the buffer size of header1 must be adjusted:

At the module:

2.3. Data blocks not optimized
The two data blocks for sending and receiving data are not created in an optimized way:

The DB numbers are entered at the block, the DB_Send/ReceiveOpt are created as dummy bits (flags):

2.4. Optimized data modules
The two data blocks for sending and receiving data are created in optimized form:

The upper DBs are not connected to the block, the DB_Send/ReceiveOpt are populated with the optimized DBs:

2.5. Variable ProcType
This variable is used to determine the type of evaluation unit used.
The following options are available:

3. Reading data
In the following variable table, the command "81hex" is used to read out the data with Start:

The word "Balluff" is read in the Receive DB.
4. Writing data
The data to be written is defined in the DB send:
"RFID123" is written

The write command is now started with command "82hex" and "Start":

Finally, the written data is read out again with the read command "81hex":

The word "RFID123" is available in the Receive-DB.

