IC697MDL653 Data Handling Procedures

IC697MDL653

If you need to inquire or purchase ,please send the product models to my email or call me directly .

Contact detail:

Xiamen Xiongba E-commerce Co., Ltd

Mobile/ WeChat/ WhatsApp:+86-133 6590 9307

E-mail: geabbamy@gmail.com

Contact: Simon Zhang

Website: https://www.dcsplcsystem.com

Address: Unit 2008, Chuangxiang Center, No. 1733, Luling Road, Siming District, Xiamen, Fujian

Categories: ,
Get a quote, please contact me immediately:
Simon Zhang
dcsplcsales@gmail.com
Phone/Whatsapp/Skype/Wechat: +86 133 6590 9307

Description

IC697MDL653 Data Handling Procedures


IC697MDL653 is designed with two forms (Form1 and Form2). Form1 is the main interface and Form2 is the waveform display interface. An MSComm control, a timer control (Timer1) and two button controls (Command1 and Command2) are designed in Form1. Command1 is the start button, i.e. when pressed, it starts to communicate with PLC and read the data therein, Command2 is the display button, i.e. when pressed, it calls Form2 and displays the waveform curves of each running quantity.

IC697MDL653 set the Interval property of Timer1 to be equal to 500, the InputMode property of MSComm to be binary, and the RThreshold property to be equal to 5010. The timer sends out the transmission command every 500 milliseconds, and when it sends out the command for the 26th time, it turns off the timer, and then the receive buffer will receive the data of 5010 bytes and trigger the MSComm. bytes of data and trigger the OnComm event of MSComm. A picture box control (Picture1) is designed in Form2 to display graphics.

IC697MDL653 In the OnComm event subroutine, the data in the receive buffer is sequentially allocated to the global arrays U_data, If_data, P_data, Q_data, and Ug_data, and then the percentage value is calculated based on the rated value of each run. The first 350 bytes of each array need to be adjusted according to the pointer Index by moving the data in the array subscript range Index to 349 to the front and the data in the subscript range 1 to Index-1 to the back.