Actually, you can customize your buttons as you want. In case of making an on-off button, instead of entering DB1.DBW, please change it to DB1.DBX0.0 and in the setpoint box, please change it to 1 for True and 0 for False.
i have a problem that if the Ethernet cables is Broken, then there will An exception occurred in the code,how to avoid this? i want to Automatic reconnection but i do not know how to do it.thanks a lot
Hello . Writing setpoint (word assigned as int DB1.DBW0 and structure is int) to plc is not working with code private void button26_Click(object sender, EventArgs e) { string address = textBox11.Text; object setpoint=textBox12.Text; plc.Write(address, setpoint); } i used conversion to make it work private void button26_Click(object sender, EventArgs e) { string address = textBox11.Text; ushort setpoint= value (value is number ); plc.Write(address, setpoint); } can you guide me how to make ushort take value from a textbox ?
He thanks a lot for this tutorial, can you please tell how can i do to read an input value( sensor) i tried to use the adresse of this input in the datablock adresse but it didnt work
Hi, This is very decent tutorial!! For me reading is working fine, only writing i have problem where when i write "11", it shows "12593". The data type I am using is "Array[0..10] of Word". Can you help me on this? Thank you
Magical BGM and magnificent tutorial demonstration.Thanks a lot ,good luck!
u save me thnx looot bro
What kind of music did you use for this video? Because it sounds amazing.
Thanks for posting this.
How can i read a REAL from the DB?
It would be a DBD on my DB.
Thanks.
you are amazing
thank you for your effort, How I can add on and off push button in VC to make any output of the plc on or off
Actually, you can customize your buttons as you want. In case of making an on-off button, instead of entering DB1.DBW, please change it to DB1.DBX0.0 and in the setpoint box, please change it to 1 for True and 0 for False.
@@ChunzPS HI man , when I write 1 , it shows 12544! please tell me how to fix it!!!
@@huynhphuc2418 Bạn đã fix được lỗi ra 12544 chưa bạn?
i have a problem that if the Ethernet cables is Broken, then there will An exception occurred in the code,how to avoid this? i want to Automatic reconnection but i do not know how to do it.thanks a lot
Hello .
Writing setpoint (word assigned as int DB1.DBW0 and structure is int) to plc is not working with code
private void button26_Click(object sender, EventArgs e)
{
string address = textBox11.Text;
object setpoint=textBox12.Text;
plc.Write(address, setpoint);
}
i used conversion to make it work
private void button26_Click(object sender, EventArgs e)
{
string address = textBox11.Text;
ushort setpoint= value (value is number );
plc.Write(address, setpoint);
}
can you guide me how to make ushort take value from a textbox ?
He thanks a lot for this tutorial, can you please tell how can i do to read an input value( sensor) i tried to use the adresse of this input in the datablock adresse but it didnt work
Have you already checked allowing put-get communication?
how many plc connections Can i use with S7.net .?
Hi ,
What can i do to read the data continuously ?
Use timer and set interval as you want.
@@ChunzPS Thanks
The function to read works well, but writte function not. I Send value 55 for example and PLC receive 13621.
Some Help?
Please check the data type.
If i use real PLC, Do i still use NetToPLCsim ?
No need to use.
I use real PLC .I can connect PLC but can not read and write Data. Help me pls.
Hi,
This is very decent tutorial!!
For me reading is working fine, only writing i have problem where when i write "11", it shows "12593". The data type I am using is "Array[0..10] of Word".
Can you help me on this?
Thank you
data types are incorrect. I suggest you check them.
Hi I just had the same Problem. You can fix it in your Write funtion with: plc.Write(adress,Convert.ToInt32(setpoint));
hi,my plc type is smart 200,and this plc supports S7,if i can use S7.NET ? thank you
The s7 protocal only supports siemens plc s7-300, 400, 1200, 1500 series.
Hi, when I connect with a real PLC, it doesn't work. Can you help me, please?
If you connect to a real PLC, you do not have to use Nettoplcsim and IP address must be your IP of the PLC.
@@ChunzPS Hi,when restart pc, it cann't connect to a real plc unless TIA is started. do you have any ideas? thanks