| Dettagli del download |
|
Generic_SimpleText is a project designed to demonstrate how the Generic device is used to read data from any device in the form of a text string. A device named Generic1 is defined via the Device Manager. Within the device, several special tags whose values are used for the communication are defined. The InCount tag's value specifies the number of characters (bytes) received by the tag of type Input buffer. The InBuffer tag is an array of bytes containing received data. The InString tag is a string containing received data in a text format. The OutCount tag's value specifies the number of characters (bytes) sent from the tag of type Output buffer. The OutBuffer tag is an array of bytes containing data to send. The Control tag's value is used to control sending data. In this example project, no data is sent, the Control and OutCount control tags are only used to open the communication port. The main visualization window contains a button used to open the communication port. To do so, the Control tag's value is set to logical 1 and the number of bytes to send in the OutCount tag is set to 0 via a script. The two Display components are used to show the received character count and received data in the form of a text string. The other button is used to reset the received character count and delete the input buffer. |
|
|||||||||||||||||||||||||||||||||

Gli esempi presenti su questo sito sono stati liberamente inviati dagli utenti di automationforum.it, è stato espressamente specificato loro di inviare solo esempi FREE. Automationforum.it non si ritiene responsabile dell'eventuale presenza di esempi rilasciati sotto licenza commerciale, Automationforum.it invita tutti coloro che individuano esempi rilasciati sotto licenza commerciale presenti in questa raccolta a segnalarlo dall'apposito