02.09.2014 Views

ISPSoft User Manual

ISPSoft User Manual

ISPSoft User Manual

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.

<strong>ISPSoft</strong> <strong>User</strong> <strong>Manual</strong><br />

will be written into D2 after 4 is added to D2. The value in D2 accumulates during the<br />

execution of the function block.<br />

Although D1 and D2 get the same execution results, they have different execution processes.<br />

Besides, owing to the fact that pVAR is regarded as D2, the present value of pVAR is not<br />

displayed in a way in which the present value of VAR_IO is displayed when the online<br />

monitoring function is enabled.<br />

*. SM400 is a special auxiliary relay in an AH500 series CPU module. It is ON when the CPU module is powered.<br />

SM402 is ON during the first scan cycle.<br />

• Example of using a symbol whose data type is T_POINTER and a symbol whose data<br />

type is C_POINTER<br />

Owing to the fact that users can not declare a symbol whose data type is TIMER and a symbol<br />

whose data type is COUNTER in a function block in a project for an AH500 series CPU module,<br />

they can send a timer, and a counter to a function block by means of declaring a symbol whose<br />

data type is T_POINTER, and a symbol whose data type is C_POINTER in the function block.<br />

The function block FB1 has two input pins. pTMR is a symbol whose data type is T_POINTER,<br />

and pCNT is a symbol whose data type is C_POINTER. The caller assigns TMR_1 and CNT_1<br />

to the two pins. (The data type of TMR_1 is TIMER, and the data type of CNT_1 is<br />

COUNTER.)<br />

In the superior POU, the value of CNT_1 increases by one when X0.0 is turned from OFF to<br />

ON. CNT_1 will not be ON until the value of CNT_1 is 10. Owing to the fact that TMR_1 and<br />

CNT_1 are assigned to the function block, the state of CNT_1 (pCNT) is judged when the<br />

function block is executed. When CNT_1 (pCNT) is ON, TMR_1 (pTMR) measures the time<br />

interval. When the value of pTMR is 50, CNT_1 (pCNT) is reset.<br />

Likewise, the present value of pTMR and that of pCNT are not displayed when the online<br />

monitoring function is enabled.<br />

7-10

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

Saved successfully!

Ooh no, something went wrong!