Standard function blocks
347
The Target Node/Grp input specifies the target drive or multicast group of drives
depending on message type. See the message type explanations above.
Note: The input must be connected in DriveSPC even if not used.
The LocalDsNr input specifies the number of the local dataset used as the source or the
target of the message.
The RemoteDsNr input specifies the number of the remote dataset used as the target or
the source of the message.
The Sent msg count output is a wrap-around counter of successfully sent messages.
The error codes indicated by the Error output are as follows:
Inputs Message type (Msg Type): INT
Target node or multicast group (Target Node/Grp): INT
Local dataset number (LocalDsNr): INT
Remote dataset number (RemoteDsNr): INT
Outputs Successfully sent messages counter (Sent msg count): DINT
Error output (Error): PB
DS_ReadLocal
(10094)
Illustration
Execution time -
Bit Description
0 D2D_MODE_ERR: Drive-to-drive communication not activated, or message
type not supported in current drive-to-drive mode (master/follower)
1 LOCAL_DS_ERR: LocalDsNr input out of range (16…199)
2 TARGET_NODE_ERR: Target Node/Grp input out of range (1…62)
3 REMOTE_DS_ERR: Remote dataset number out of range (16…199)
4 MSG_TYPE_ERR: Msg Type input out of range (0…5)
5…6 Reserved
7 GENERAL_D2D_ERR: Unspecified error in D2D driver
8 RESPONSE_ERR: Syntax error in received response
9 TRA_PENDING: Message has not yet been sent
10 REC_PENDING: Response has not yet been received
11 REC_TIMEOUT: No response received
12 REC_ERROR: Frame error in received message
13 REJECTED: Message has been removed from transmit buffer
14 BUFFER_FULL: Transmit buffer full
DS_ReadLocal
73
TLA1 1 msec (1)
LocalDsNr
Data1 16B
Da ta 1 16B(7 3)
Data2 32B
Da ta 2 32B(7 3)
Error
Error(73)