8/27/2018 6:20 AM | |
Joined: 11/22/2014 Last visit: 4/14/2024 Posts: 54 Rating: (1) |
Dear sir T_Ebrahem, really appreciate it for your reply,as matter of fact we have one S7414-5H as redundancy station and 5 Remote IO With ET200M,And in these RIOs,We have Bought this Module: 6ES7341-1CH02-0BA0 6ES7870-1AB01-0YA1 we wanna to read Data Like:Power factor,Current,Frequency,... My question is that , should i replace the slave dongle with (6ES7870-1AA01-0YA0)? or we can change setting in slave dongle and change that to Master ?My last question is please what software do i need?If you can very simple give me Manual or example it would be better. Regards AttachmentConfig.pdf (240 Downloads) |
Last edited by: Vahid-T at: 8/27/2018 6:33:53 AM |
|
8/27/2018 9:15 AM | |
Posts: 3093 Rating: (323)
|
Hello Vahid-T, I (and for sure some others as well) would appreciate when you stop posting the same question several times in different threads. If you didn't understand an answer just ask for better explanation instead of posting the same question again. Regards, |
This contribution was helpful to1 thankful Users |
8/27/2018 10:37 AM | |
Joined: 1/2/2017 Last visit: 7/23/2024 Posts: 285 Rating: (24) |
dear Vahid, I sent you a message, check it. now as you have cp 341. add it to your HW configuration and set an IO address for it. in your cpu create function block and in that function call both P_SEND & P_RCV as shown in the attached screenshot. the ladder must be the IO address of your CP 341. you will neeed to create a request DB that contain the following: device address function code, in your case is 3 start address of your data, in your case is let us assume that you want to read rms values which start at register 3001, then the address is 3001 - 1 = 3000 = 0BB8 hex number of registers. you have to read 20 registers = 14 hex then your CRC check data. let assume that your device address is 1, then your frame will be 01 03 0B B8 00 1E and the crc will be C347 hex. you can calculated here. the final request will be as shown in the screenshot on the right. the DB number is needed by the P_SEND DB_NO input and the length has to be 8. create another DB for received data. make it an array of bytes of 60 bytes let say. its number will be used as input for the DB_NO in the P_RCV function. call the function block in your OB1 and assign clock memory bit with 1 hz for example to the REQ input of the P_SEND. here you should see you data from your slave device. I tested this one with cpu 300 and its work fine without any need to dungle etc. so test it with your system. Regards T_Ebrahem |
Last edited by: T_Ebrahem at: 8/27/2018 11:38:14 AMDisclaimer: While I strive to ensure that the content of posts and answers is accurate and complete, my posts and answers are provided “as is” and “as available.” Your use of my posts and answers content is entirely at your own risk. |
|
8/28/2018 8:37 AM | |
Joined: 1/2/2017 Last visit: 7/23/2024 Posts: 285 Rating: (24) |
hello Vahid I thought about posting it here so maybe someone also can learn from it. you need to buy Phoenix subcon 15/m-sh or any other 15 pin male connector. connect or solder pins 4, 8, and 11. this will be your CP341 side connector. in the PM1200 you can see from the manual that pins 7 + and 14 - for the RS485. Here you have to connect pin 11 from CP341 to 7 in the PM1200 and pin 4 to 14, sometimes you need to reverse them as the modbus standard don't say to manufacturer which one has to be A or B. you will find out yourself. pin 8 go to the ground. this simply the wiring for your system. Regards T_Ebrahem |
Disclaimer: While I strive to ensure that the content of posts and answers is accurate and complete, my posts and answers are provided “as is” and “as available.” Your use of my posts and answers content is entirely at your own risk. |
|
Follow us on