CODESYS - get char from keyboard

Damian7546
2017-11-28
2017-11-30
  • Damian7546 - 2017-11-28

    Hi,

    Is it possible get char from keyboard to CODESYS to string variable ?
    Can you give me a hint how do it?

     
  • e.kislov - 2017-11-29

    Well, you can use default hotkeys configuration in Visualization Manager.

    Simple example:

    Keep in mind that it not works in CDS IDE service visu. Check it in web-visualization with CODESYS Control Win V3.

    IMG: 29

     
  • Damian7546 - 2017-11-29

    I am thinking about text input to CODESYS string variable, for example from barcode scanner, it is possible ?

     
  • e.kislov - 2017-11-30

    It's other task, but yep, it's possible, if you could connect to this scanner (for example, through RS-232).

    Use CAA SerialCom library to work with COM-port directly (send data/receive data).

     

Log in to post a comment.