POUs

Basic commands

Name

Description

FB_KL6831KL6841Communication

Reads the SMI commands sequentially from the internal buffer of the PLC library and forwards them to the KL6831/KL6841.

FB_KL6831KL6841Config

This function block can be used to configure the KL6831/KL6841.

FB_SMISendSMICommand

This function block is for the general sending of an SMI command.

Basic commands

Name

Description

FB_SMIDiagAll

Diagnostic telegram is sent.

FB_SMIDown

Motor operation to the lower final position.

FB_SMIDownStep

Motor runs downwards by a specified angle.

FB_SMIPos1

Drives to the fixed position Pos1 configured on the motor side.

FB_SMIPos1Read

Reads the fixed position Pos1 configured on the motor side.

FB_SMIPos1Write

Writes the fixed position Pos1 which is configured on the motor side.

FB_SMIPos2

Drives to the fixed position Pos2 configured on the motor side.

FB_SMIPos2Read

Reads the fixed position Pos2 configured on the motor side.

FB_SMIPos2Write

Writes the fixed position Pos2 which is configured on the motor side.

FB_SMIPosRead

Reads the current position.

FB_SMIPosWrite

Drives to a position.

FB_SMIStop

Stops the motor operation.

FB_SMISyn

Queries the manufacturer code and drive type.

FB_SMIUp

Motor operation to the upper final position.

FB_SMIUpStep

Motor operation upwards by a specified angle.

Addressing commands

Name

Description

FB_SMIAddressing

Addresses SMI devices.

FB_SMIDiscoverySlaveId

Searches for SMI devices by manufacturer code.

FB_SMISlaveAddrRead

Reads the address (0-15) of a drive.

FB_SMISlaveAddrWrite

Writes an address (0-15) to one or more drives.

FB_SMISlaveIdCompare

Compares a specified slave ID (32-bit key ID) with the slave ID (32-bit key ID) of one or more drives, which is defined on the motor side.

FB_SMISlaveIdRead

Reads the slave ID (32-bit Key ID).

System commands

Name

Description

FB_SMIParValueReadByte

Reads a byte parameter (1 byte) stored on the motor side.

FB_SMIParValueReadWord

Reads a Word parameter (2 bytes) stored on the motor side.

FB_SMIParValueReadDWord

Reads a DWord parameter (4 bytes) stored on the motor side.