
' --3+$+0/'*#.
Appendix B
B-83
Returns
Status Symbolic Name Meaning
,#-/'+* .0!!#..$0(
/ '/#) "#$'*#" . +*(3
/ (# *+/ '*'/'('4#"
#$'*'/'+* +0/ +$ -*%#
!+),(#/#" 2'/& #--+-.
+ .0!& "/ '/#) "#$'*#"
/5!+*1#-.'+* #--+- *+/ //#),/#"
'. *+/ !+**#!/#" +- +$$('*#
Description
Use the DTL_WRITE_W function to write data to the PLC-5
programmable controller directly connected to the control coprocessor.
This function is synchronous. When this function is initiated, your
C application program stops until the function completes or fails.
C Example
unsigned status;
unsigned machine1;
unsigned short parts1;
unsigned iostat;
.
.
.
DTL_C_DEFINE (&machine1, “N30:0, 1, WORD, MODIFY”);
.
.
.
status = DTL_WRITE_W (machine1, &parts1, &iostat)
if (status == DTL_SUCCESS)
{
printf (“parts = %d\n”, parts1);
}
else
{
(printf (“error %d, %d on read of parts data\n”,
status,
iostat);
}
.
.
.
Komentarze do niniejszej Instrukcji