ISPSoft User Manual

ISPSoft User Manual ISPSoft User Manual

02.09.2014 Views

Chapter 9 Function Block Diagram (e) One node represents a symbol whose data type is WORD/DWORD/LWORD, and the other node represents a symbol whose data type is INT/DINT/LINT. The data length of the output node must be larger than or equal to the data length of the input node. (f) Both nodes represent symbols whose data types are REAL/LREAL/STRING. The data lengths of the nodes must be the same. (g) If an input node has multiple output nodes, the output nodes must conform to the rules listed above. 32 output nodes at most form a group. After users add an output node rightward, they can create another group of output nodes. • Graphical representation • Example Example 1: The state of the contact M0 is sent to M1. Example 2: The data in D0 is sent to D1. Example 3: There are three groups of output nodes. The first group begins with M100, the second group begins with M200, and the third group begins with M300. 32 output nodes at most form a group. After users add an output node rightward, they can create another group of output nodes. There is no limit on the number of output nodes which can be added rightward. Example 4: Some incorrect examples are listed below. Incorrect example Description The data type of the input node must not be different from the data type of the output node. The data length of the output node must not be less than the data length of the input node. The value of a symbol whose data type is REAL can not be sent to a D device. If the input node represents a symbol whose data type is REAL, the output node must represent a symbol whose data type is REAL. If the input node represents a symbol whose data type is LREAL, the output node must represent a symbol whose data type is LREAL. The data length of the input node representing a symbol whose data type is STRING and the data length of the output node representing a symbol whose data type is STRING must be the same. 9-7

ISPSoft User Manual Incorrect example Description The value of a symbol whose data type is TIMER can not be sent to a symbol whose data type is DWORD, but can be sent to a symbol whose data type is WORD. The value in a HC device can not be sent to a symbol whose data type is WORD, but can be sent to a symbol whose data type is DWORD. The multiple output nodes must conform to the rules listed above. The example is incorrect because the data length of the output node representing a symbol whose data type is INT is less than the data length of the input node. • Inserting an output node (1) Select a position into which an output node will be inserted in the working area. Users are allowed to insert output nodes into the positions marked with red frames in the figure below. (2) In addition to the structure in the figure above, users may be allowed to insert an output node into another structure. If users are allowed to insert an output node into the position selected, on the toolbar can be clicked. After is clicked, an output node will be inserted. An output node can be inserted in the following structures. Inserting an output node into an input pin of an AND/OR block Before After 9-8

Chapter 9 Function Block Diagram<br />

(e) One node represents a symbol whose data type is WORD/DWORD/LWORD, and the other<br />

node represents a symbol whose data type is INT/DINT/LINT. The data length of the output<br />

node must be larger than or equal to the data length of the input node.<br />

(f) Both nodes represent symbols whose data types are REAL/LREAL/STRING. The data lengths<br />

of the nodes must be the same.<br />

(g) If an input node has multiple output nodes, the output nodes must conform to the rules listed<br />

above. 32 output nodes at most form a group. After users add an output node rightward, they<br />

can create another group of output nodes.<br />

• Graphical representation<br />

• Example<br />

Example 1: The state of the contact M0 is sent to M1.<br />

Example 2: The data in D0 is sent to D1.<br />

Example 3: There are three groups of output nodes. The first group begins with M100, the second<br />

group begins with M200, and the third group begins with M300. 32 output nodes at<br />

most form a group. After users add an output node rightward, they can create another<br />

group of output nodes. There is no limit on the number of output nodes which can be<br />

added rightward.<br />

Example 4: Some incorrect examples are listed below.<br />

Incorrect example<br />

Description<br />

The data type of the input node must not be different from<br />

the data type of the output node.<br />

The data length of the output node must not be less than<br />

the data length of the input node.<br />

The value of a symbol whose data type is REAL can not<br />

be sent to a D device.<br />

If the input node represents a symbol whose data type is<br />

REAL, the output node must represent a symbol whose<br />

data type is REAL. If the input node represents a symbol<br />

whose data type is LREAL, the output node must<br />

represent a symbol whose data type is LREAL.<br />

The data length of the input node representing a symbol<br />

whose data type is STRING and the data length of the<br />

output node representing a symbol whose data type is<br />

STRING must be the same.<br />

9-7

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

Saved successfully!

Ooh no, something went wrong!