Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - muratguenduez

Pages: 1 [2]
16
mine is aproximately 85. i m using 3.99w. is it about version  ?

how can i update to 3.99x without breaking my work? if i copy and replace all patch files at their location, will it work ?

17
i tried something else.
disabled all error events of modbustcps and i checked after all analogvaluedisplays dont show any error message and i sent modbustcp.write(...) and feedback is ok. so connection doesnt stop but comerror subrutine event stops in approximately 100 second or 85 times.


18
thanks your answer,
actually i have no devices to control so i have no physicaly connection just pc. i defined a tcp modbus driver and i will check the no connection issues. comError event occurs 85 times then stops. it maybe try 85 times then activate a flag i dont know. please just try simple code like me.

int count=0;
private void modbusTcpG1_ComError(object sender, MfgControl.AdvancedHMI.Drivers.Common.PlcComEventArgs e)
        {
            count++; label7.Text = count.ToString();
         }

otherwise, all analogValueDisplays show us "Could not connect..... 10.1.1.5 bla bla..." periodicly during this time. after stop the event all analogvaluedisplays turn to 0 and no response.

where can i get that error message ?


19
i have just tried a way of the understand how many times occurs.

Code: [Select]
private void modbusTcpG1_ComError(object sender, MfgControl.AdvancedHMI.Drivers.Common.PlcComEventArgs e)
        {
            count++; label7.Text = count.ToString();
         }

it stoped at 85, 83, 85.

why  ?

20
Code: [Select]
private void timer1_Tick(object sender, EventArgs e)// 1 SECOND
{ i++;
 if(i==5) {lbl_infoG1.Visible = false; i=0;}
}

private void modbusTCPg1_ComError(object sender, MfgControl.AdvancedHMI.Drivers.Common.PlcComEventArgs e)
        {
            lbl_infoG1.Text = "WARNING!!!"; lbl_infoG1.Visible = true;           
        }


hello designers,
this gives me a message on the screen that i put the label as you see. i run the program and everything normal about this comError event but after a few minute comErroe event stops and label disappear due to visible = false in timer tick.

why does it stops?
thanks.

21
Tips & Tricks / Re: Modbus Addressing
« on: October 09, 2017, 10:30:09 AM »
Some hints when using Modbus with AdvancedHMI.....

The most common addressing is supported such as:

40001
00001
10001

The default are signed integers, but you can force it to use unsigned by preceding the address by a "U". For example:

U40001

32 bit integers and 32 bit floating point are also supported by using the following prefixes:

F40001
L40001

Keep in mind that you are using 4 bytes, so L40001 may overlap L40002. Based on the device you are using. The consecutive 32 bit values may be L40001 and L40003

If you want to force a particular function number, then specify the function followed by a ":". for example:

3:0001


As of version 3.99b, a new prefix is supported for BCD. For example:

B40001

hi,
understand that, u is uword, L is long, F is float.
i saw a table that is a modbus register of a device included "ULONG", at this point what should i do to read that register. i can get that and convert with c# its ok but i wonder that is there any other type of decleration in plcadressvalue section ?

thnks
if i need to read an unsigned long, what decleration should i use in PlcAddressValue? UL or LU is not working. eg. UL30001 or LU30001.

22
Open Discussion / How can i use same "emailer1" for all forms??
« on: April 04, 2017, 05:48:05 AM »
Hello Everyone,
first of all i would like to say thanks for AdvancedHMI. It is very usefull.
i have a question, im new for c#. how can i declare the "emailer1" as public static? OR How can i change a component of "emailer1" from another Form ? i have tried same name for both Form and didnt work =)

im waiting for your advanced helps =)

thanks
best regards
Murat

Pages: 1 [2]