Preeya
Member
- Join Date
- Nov 2003
- Posts
- 112
Hi everyone,
It looks like it is not possible in Siemens Step7/MicroWin32 to divide an INT with a DINT? I need to divide 60000 with an integer and it gives me an error if I use DIV instruction. So I converted the INT to DINT and used DIV_DI. It did not give me an error but I am not sure if there is any other way.
In RSlogix I just use the DIV and specified any data type.
Also how do I specify unsigned and signed integers? By default it takes it as signed integer.
Thanks
It looks like it is not possible in Siemens Step7/MicroWin32 to divide an INT with a DINT? I need to divide 60000 with an integer and it gives me an error if I use DIV instruction. So I converted the INT to DINT and used DIV_DI. It did not give me an error but I am not sure if there is any other way.
In RSlogix I just use the DIV and specified any data type.
Also how do I specify unsigned and signed integers? By default it takes it as signed integer.
Thanks