Specifications
193PLC Code for PROFINET Controller
(c) 2013 MITSUBISHI ELECTRIC CORPORATION
Variable
Class
Type
Description
SUBSLOTNUMBER
Word
Sub-slot number target
INDEX
Word
Index of the record block
RECORD
Word
Write data
LENGTH
Int
Write data size in byte
VALID
Output
Bool
Data in the global variable “DEVICE_DATA” is
valid
BUSY
Bool
The function block is in use
ERROR
Bool
Error detected
STATUS
Word
Last detected status, possible values:
0= Status OK
1= Profinet stack not started
2= No Ethernet link
3= No IO-Device detected
6= Device not connected
7= Device not configured
8= Profinet error
The data to write is moved from the input 'RECORD' by using a block move operation to the transfer
buffer. The user has to configure an array variable for this input with the corresponding number of ele-
ments.
Call FB 'Write_Rec_Ex'
The input 'ID' contains the IO-device number '21'. The index for the data to write to is 16#10. By set-
ting M40 the writing of the data is started. M41 indicates that the data from the global variable 'Wri-
te_Data1' has been successfully transferred to the IO-device.