Thanks alot for this example project. Now its very clear to me! I can continue with my project now. :)
Hello, I already checked the examples but I still don't get how I can add nodes to the TreeListView. I want to add a tree with 1 root then 1 child and then multiple childs : root ! --- child ! --- item 1 --- item 2 --- item 3 can someone point me in the right direction please?
I already read the docs, but I'm still having trouble understanding how to read a certain value inside a DB. for example : I want to read an integer inside a DB (200) at address (435). If I try this : iResult = m_Client.ReadArea(S7Consts.S7AreaDB, 200, 435, 1, S7Consts.S7WLInt, m_DataBuffer, ref iSizeRead); the function results in : 9437184 iSizeRead = 0, so I guess no data is read. what am I doing wrong? edit : found my problem : The variable in the PLC was a short int (= 1 byte) and I tried to...
I already read the docs, but I'm still having trouble understanding how to read a certain value inside a DB. for example : I want to read an integer inside a DB (200) at address (435). If I try this : iResult = m_Client.ReadArea(S7Consts.S7AreaDB, 200, 435, 1, S7Consts.S7WLInt, m_DataBuffer, ref iSizeRead); the function results in : 9437184 iSizeRead = 0, so I guess no data is read. what am I doing wrong?
ok, seems that this is not supported yet :( hopefully very soon...
ok, seems that this is not supported yet :( hopefully very soon...
hello, I also tried the CPUInfo in sharp7 and it doesn't work like you said. But changing the code does not get me any further. :(
With sharp7 I cannot seem to change the status of the PLC from run to stop or make a Hot/Cold restart nor get the current date/time on the PLC. Also get CPU info doesn't work. I use a S7-1215C AC/DC/RLY I get following errors : get date:time : CLI : invalid CPU answer stop PLC : "CPU : Cannot stop PLC" hot restart PLC : "CPU : Cannot start PLC" cold restart PLC : "CPU : Cannot start PLC" get CPU info : "CLI : invalid CPU answer"