12.05.2014 Views

Automating Manufacturing Systems - Process Control and ...

Automating Manufacturing Systems - Process Control and ...

Automating Manufacturing Systems - Process Control and ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

plc serial - 27.9<br />

To write to other serial ports the message function in Figure 27.7 must be used. In this<br />

example the message block will become active when A goes true. It will use the message<br />

parameters stored in message memory MG9:0. The parameters set indicate that the message<br />

is to Write data stored at N7:50, N7:51 <strong>and</strong> N7:52. This will write the ASCII string<br />

ABC to the serial port.<br />

A<br />

MSG<br />

<strong>Control</strong> Block MG9:0<br />

Memory Values:<br />

setup stored<br />

in MG9:0<br />

Data Stored in memory<br />

Read/Write<br />

Data Table<br />

Size<br />

Local/Remote<br />

Remote Station<br />

Link ID<br />

Remote Link type<br />

Local Node Addr.<br />

<strong>Process</strong>or Type<br />

Dest. Addr.<br />

N7:50<br />

N7:51<br />

N7:52<br />

Write<br />

N7:50<br />

3<br />

Local<br />

N/A<br />

N/A<br />

N/A<br />

20<br />

ASCII<br />

N/A<br />

65<br />

66<br />

67<br />

Figure 27.7<br />

Message Function for Serial Communication<br />

27.2.1.1 - ASCII Functions<br />

ASCII functions allow programs to manipulate strings in the memory of the PLC.<br />

The basic functions are listed in Figure 27.8.<br />

www.PA<strong>Control</strong>.com

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!