Hm,
laut der Anleitung ist folgendes zu übergeben:
8.1.2 Set Process Data Out
[TABLE="width: 328"]
[TR]
[TD="width: 27%"]Input Parameters
Name
[/TD]
[TD="width: 32%"]Data type
[/TD]
[TD="width: 41%"]Description
[/TD]
[/TR]
[TR]
[TD="width: 27%"]REQ
[/TD]
[TD="width: 32%"]Bool
[/TD]
[TD="width: 41%"]Starts the function. Has to be set to TRUE for one scan cycle.
[/TD]
[/TR]
[TR]
[TD="width: 27%"]ID
[/TD]
[TD="width: 32%"]HW_IO
[/TD]
[TD="width: 41%"]Hardware address of the CANopen module. Can be read in TIA Portal.
[/TD]
[/TR]
[TR]
[TD="width: 27%"]INDEX
[/TD]
[TD="width: 32%"]Byte, Dint, Int, Sint, Uint, Usint, Word
[/TD]
[TD="width: 41%"]Data record number. Should be set to 0091h.
[/TD]
[/TR]
[TR]
[TD="width: 27%"]LEN
[/TD]
[TD="width: 32%"]Byte, Usint, Usint
[/TD]
[TD="width: 41%"]Length in bytes of the data to be written.
[/TD]
[/TR]
[TR]
[TD="width: 27%"]RECORD
[/TD]
[TD="width: 32%"]variant
[/TD]
[TD="width: 41%"]Source area for the data to be written.
[/TD]
[/TR]
[/TABLE]
Description
[FONT=Garamond,Garamond][FONT=Garamond,Garamond]To write the process data to the CANopen network from the S7-1200 CPU, use the WRREC function block, and issue an request to record number 0091h. All data will be written as process data on the CANopen network. The position of the data depends on the CANopen network configuration.
[/FONT][/FONT]
8.1.1 Get Process Data In
[TABLE="width: 328"]
[TR]
[TD="width: 27%"]Input Parameters
Name
[/TD]
[TD="width: 32%"]Data type
[/TD]
[TD="width: 41%"]Description
[/TD]
[/TR]
[TR]
[TD="width: 27%"]REQ
[/TD]
[TD="width: 32%"]Bool
[/TD]
[TD="width: 41%"]Starts the function. Has to be set to TRUE for one scan cycle.
[/TD]
[/TR]
[TR]
[TD="width: 27%"]ID
[/TD]
[TD="width: 32%"]HW_IO
[/TD]
[TD="width: 41%"]Hardware address of the CANopen module. Can be read in TIA Portal.
[/TD]
[/TR]
[TR]
[TD="width: 27%"]INDEX
[/TD]
[TD="width: 32%"]Byte, Dint, Int, Sint, Uint, Usint, Word
[/TD]
[TD="width: 41%"]Data record number. Should be set to 0090h.
[/TD]
[/TR]
[TR]
[TD="width: 27%"]MLEN
[/TD]
[TD="width: 32%"]Byte, Usint, Usint
[/TD]
[TD="width: 41%"]Maximum length in bytes of the data to be read.
[/TD]
[/TR]
[TR]
[TD="width: 27%"]RECORD
[/TD]
[TD="width: 32%"]Variant
[/TD]
[TD="width: 41%"]Destination area for the read data.
[/TD]
[/TR]
[/TABLE]
To read the process data from the CANopen network to the S7-1200 CPU, use the RDREC function block, and issue an request to record number 0090h. You will receive all data configured as process data on the CANopen network. The position of the data depends on the CANopen network configuration.