rtlabs-com / p-net

PROFINET device stack for embedded devices

Home Page:http://www.rt-labs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error class: 0xfd Real-Time Acyclic Protocol; Error code: 0x24 Not decoded

wilsonxiao opened this issue · comments

When I run the pn_dev app, I get the info:

** Starting P-Net sample application 0.2.0+v0.2.0-23-ga55fce3-dirty **
Number of slots: 5 (incl slot for DAP module)
P-net log level: 4 (DEBUG=0, FATAL=4)
App log level: 0 (DEBUG=0, FATAL=4)
Max number of ports: 1
Network interfaces: eth0
Button1 file: /home/aheadtechs/Documents/profinet/build/button1.txt
Button2 file: /home/aheadtechs/Documents/profinet/build/button2.txt
Default station name: rt-labs-dev
Management port: eth0 DC:A6:32:6B:E4:F6
Physical port [1]: eth0 DC:A6:32:6B:E4:F6
Hostname: raspberrypi
IP address: 192.168.0.2
Netmask: 255.255.255.0
Gateway: 192.168.0.1
Storage directory: /home/aheadtechs/Documents/profinet/build

Init P-Net stack and sample application
Profinet signal LED indication. New state: 0
Network script for eth0: Set IP 0.0.0.0 Netmask 0.0.0.0 Gateway 0.0.0.0 Permanent: 1 Hostname: rt-labs-dev Skip setting hostname: true
No valid default gateway given. Skipping setting default gateway.
Start sample application main loop

Plug DAP module and its submodules
Module plug indication
Pull old module. API: 0 Slot: 0
Plug module. API: 0 Slot: 0 Module ID: 0x1 "DAP 1"
Submodule plug indication.
Pull old submodule. API: 0 Slot: 0 Subslot: 1
Plug submodule. API: 0 Slot: 0 Module ID: 0x1
Subslot: 1 Submodule ID: 0x1 "DAP Identity 1"
Data Dir: NO_IO In: 0 bytes Out: 0 bytes
Submodule plug indication.
Pull old submodule. API: 0 Slot: 0 Subslot: 32768
Plug submodule. API: 0 Slot: 0 Module ID: 0x1
Subslot: 32768 Submodule ID: 0x8000 "DAP Interface 1"
Data Dir: NO_IO In: 0 bytes Out: 0 bytes
Submodule plug indication.
Pull old submodule. API: 0 Slot: 0 Subslot: 32769
Plug submodule. API: 0 Slot: 0 Module ID: 0x1
Subslot: 32769 Submodule ID: 0x8001 "DAP Port 1"
Data Dir: NO_IO In: 0 bytes Out: 0 bytes
Done plugging DAP

Waiting for PLC connect request

Network script for eth0: Set IP 192.168.0.2 Netmask 255.255.255.0 Gateway 192.168.0.2 Permanent: 0 Hostname: rt-labs-dev Skip setting hostname: true
Module plug indication
Pull old module. API: 0 Slot: 1
Plug module. API: 0 Slot: 1 Module ID: 0x32 "DIO 8xLogicLevel"
Submodule plug indication.
Pull old submodule. API: 0 Slot: 1 Subslot: 1
Plug submodule. API: 0 Slot: 1 Module ID: 0x32
Subslot: 1 Submodule ID: 0x132 "Digital Input/Output"
Data Dir: INPUT_OUTPUT In: 1 bytes Out: 1 bytes
PLC connect indication. AREP: 1
Event indication PNET_EVENT_STARTUP AREP: 1
Data status indication. AREP: 1 Data status changes: 0x35 Data status: 0x35
Run, Valid, Primary, Normal operation, Evaluate data status
PLC write record indication.
AREP: 1 API: 0 Slot: 1 Subslot: 1 Index: 123 Sequence: 3 Length: 4
Writing parameter "Demo 1"
Bytes: 00 00 00 01
PLC write record indication.
AREP: 1 API: 0 Slot: 1 Subslot: 1 Index: 124 Sequence: 4 Length: 4
Writing parameter "Demo 2"
Bytes: 00 00 00 02
PLC dcontrol message (The PLC is done with parameter writing). AREP: 1 Command: PRM_END
Event indication PNET_EVENT_ABORT AREP: 1
Error class: 0xfd Real-Time Acyclic Protocol
Error code: 0x24 Not decoded
Setting outputs to default values.

siemens PLC can not use the io correctly. Is there any mistake?