simocode sfc 59
Jeudi 15 Septembre 2005
Hello
Thanks for interest, Sorry about my english.
Ok, first, I use Win-Simocode-DP/Professionnal V 1.2.0.4 and when I open a online device, this action load information from this device and if I go to the target menu , display/diagnostics I see the information : Motor current, current %, last trip current %,
And in a other section I see information about operating hours, number of overload trip, number of starts and ect.ALL This is Ok, I see a value.
I want see this information on my touch panel Screen TP 170A via a S7- 315, Via the command SFC 59 RD_REC fonction with reading data record 131. In ( Profibus).
B.4.2 Reading data record 131 - display/diagnosis
Byte.Bit Parameter identifier Data type Value range
0.0 Operating Hours Byte[2] [0-65535] 10h
2.0 Number of Starts Byte[3] [0-16777216]
5.0 Counter Value 1 Byte[2] [0-65535]
7.0 Counter Value 2 Byte[2] [0-65535]
9.0 Cooling Time Byte[2] [0-35999] 100ms
11.0 Number of Overload Trips Byte[2] [0-65535]
13.0 I-max Byte[2] [0-65535] %
15.0 Last Trip Current Byte[2] [0-65535] %
17.0 Analog Sensor Value Byte [0-255] 20 ohms
Table 60: Data record 131 - display / diagnosis
B.4.3 Writing data record 133 - statistical data
Byte.Bit Parameter identifier Data type Value range
0.0 Operating Hours Byte[2] [0-65535]
2.0 Number of Starts Byte[3] [0-16777216]
5.0 Number of Overload Trips Byte[2] [0-65535]
Table 61: Writing data record 133 - statistical data
I WANT READ THIS ON DR131. AND ON MY tp177A.
Byte.Bit Parameter identifier Data type Value range
0.0 Operating Hours Byte[2] [0-65535] 10h
2.0 Number of Starts Byte[3] [0-16777216]
11.0 Number of Overload Trips Byte[2] [0-65535]
13.0 I-max Byte[2] [0-65535] %
15.0 Last Trip Current Byte[2] [0-65535] %
In My OB1:
CALL "RD_REC" //sfc59 read ds 131 page 6-35
REQ :="M_20.0_SFC59"
IOID :=B#16#54 //zone d'entree
LADDR :=W#16#100 //( 100 (hex)= 256 adresse dp )
RECNUM :=B#16#83 //Read DS 131= 83 hex.
RET_VAL:=MW220
BUSY :="M_20.1_BUSY" //pas busy
RECORD :=P#DB20.DBX0.0 BYTE 18 //db20 octet 0-17
And when i put a 1 to REQ, i read Code 7001 et code 80A2 at RET_VAL
This code is
7001= First call with REQ=1: No data transfer active; BUSY has the value 1.
80A2= DP protocol error at layer 2 Distributed I/Os
I’m in DP mode. My gsd files for simocode SIEM8031.GSF.
No good result.
I have made on my Touch Panel a screen with buttom and state view buttom.
Start, stop, status, reset and menu , all works good , I can start , stop and reset the
Motor. That nice, but I want more from this simocode.
Thanks Steve.