DASYLab

cancel
Showing results for 
Search instead for 
Did you mean: 

how to send 3 variables via rs232 output module

I want to send 3 different global variables stored in Var_1, Var_2, Var_3 via rs232 output module pushing one button only (at once).

Variables, after modification  in dasy lab, are send to PLC. In my current solutions when I'm pusching a button plc controller receives only one variable.

 

I have used 3 sliders, each of them is connected to separate Write variable module, one switch, one action module and one rs232 out module. Action module has three channels. Each channel is configured to send one of variables asynchornously on rising edge event. 

 

 

 

Thank you for any help.

0 Kudos
Message 1 of 3
(6,696 Views)

This sounds like a feature for a global string.

 

You can use the Global String Extended features to create a composite string, using your three variables, for example, create a formula like this;

 

strfmt($var_1,6,1) + "," + strfmt($var_2,6,1) + "," + strfmt($var_3,6,1)

 

And then use the Action module to prompt the RS232 output to send the global string on demand.

Measurement Computing (MCC) has free technical support. Visit www.mccdaq.com and click on the "Support" tab for all support options, including DASYLab.
0 Kudos
Message 2 of 3
(6,695 Views)
Thank you:) It's working:)
0 Kudos
Message 3 of 3
(6,453 Views)