(0)| 9/4/2015 11:32 AM | |
|
Posts: 4 Rating:
|
Hello Experts, We are working with S7-1511 CPU and TIA portal 13. The PLC is communicating with my PN IO device and exchanging the process data (CPM-PPM frames). Now I want to write a SCL program to read and verify the contents of PPM frames sent by the IO device for data integrity tests. The process data data is exchanged at 250us time and I want to read this data in each cycle to an array where I can check for errors in the protocol data unit contained in the PPM frame. I have gone through the basics of SCL program and written a program using 'GETIO' instruction(GETIO_FB.jpg). Is this the right instruction to read the process data exchanged by an IO device or is there any other suitable standard instruction? When I have downloaded the program to CPU and going online with the controller, I am getting following errors: 1. Error status indicates 16#4080_9000. From the help, this error code stands for wrong hardware identifier or length mismatch with consistent data(MAIN_OB_error_message.jpg). I have cross checked the hardware ID is correct from the system constants list (hardware_name1.jpg,hardware_name2.jpg) 2. Output length is zero which means data read failed. But I am using a byte array of length 64 bytes which is same as process data length. Can any one help me to resolve these issues by pointing out where I am going wrong? Please let me know if any additional details are required. Regards, Nijin
AttachmentSCL_Progam_Error.zip (200 Downloads) |
| 9/4/2015 1:20 PM | |
|
Joined: 12/16/2012 Last visit: 9/8/2025 Posts: 655 Rating:
|
Hi! Have you tried it with a 40-byte-long array? Can you check the data range of your PN IO device? Manual, etc. |
| 9/7/2015 3:35 PM | |
|
Joined: 12/16/2012 Last visit: 9/8/2025 Posts: 655 Rating:
|
Hi! FYI: BTW do you use SYSBIOS from TI? Sounds like an interesting project. |
Follow us on