3/19/2018 7:44 AM | |
Joined: 3/5/2017 Last visit: 5/6/2021 Posts: 35 Rating: (0) |
Ok so i installed gsd file for my 9101 scales in Tia portal and everything is oke and green. I configurate scale and i put in/out word 48 that is default and adress 22 that is in Tia for scale. Also input/output address for scale is input (376-471) and output (256-351). Then in Tia portal i made 2 DB-s, one for reading with 48 words and other for write 48 words. In write first two words are w#16#0000(first word (Block identifier); for slave #1 00, for GN number 00) and w#16#0021 (16#w#0021 in the second word, the hex number of decimal 33 because i want to read Rate, Load and Speed at offsets 33, 35, 37), 3rd word, number of registers, write decimal 6 (for the total number of registers to be read) and in the 4th word i write decimal 1. This is simply an identifier for the specific command you are writing to the slave. Thats all in write DB that is for scale to know what parametars i want to read and after that i made MOVE blocks that are movig values and sending it to scale and back from scale but i got Error on scale that say Profibus comm. Error. I'll put also image of block i made but i cant figure out how to read and write it from scale. I even change what i want to read so in picture is only last to parameters but still same. For read i use this: DB20. DBW0 -- MOVE --> PQW256 DB20.DBW2 -- Move --> PQW258 DB20.DBW4--Move--> PQW260 DB20.DBW6--Move-- PQW262 Then, prepare the reception buffer (total 10 words for this 3 parametars that i want to read) PIW376--Move--> DB21.DBW0 PIW378--Move--> DB21.DBW2 ... PIW394 --Move--> DB21.DBW20 I fallowed short guide i have but no luck. If anyone have any example of this how it should work can you give me example of code or something. In plc diagnostic he only show me: Module OK Module type: Distributed I/0s Input address: 8169 User information available Diagnostic interrupt from substitute Requested OB: Diagnostic interrupt OB (OB82) Priority class: 26 and this is guide i fallowed: Scale pdf guide I have two of this scales but i wanted first to try one and i even switched for the second and i then get error on second scale. Any help would be good. If anyone have example of code in project please share. Also like i say no error what so ever only when i download to plx he gives me that diagnostic and scale gives me error and rest i ok everything green. Attachmentfiles.zip (614 Downloads) |
Last edited by: mskrpan1 at: 3/19/2018 7:46:42 AMLast edited by: Jen_Moderator at: 3/19/2018 2:41:27 PMRemoved link and added all files as an attachment. |
|
Follow us on