Example - Ladder Diagram
FWRITE
The FWRITE instruction writes n3 number of WORDs starting at the data register, S, of file data at the offset, n2, to the data to the expansion module, n1.
The FWRITE instruction writes file data from the internal memory of the CPU to the system memory of an expansion module.
Ladder Diagram Example
The FWRITE instruction writes 1 WORD.
When the contact, M1.1, is powered ON (1), the value, 2000, is moved, using the MOV instruction, into the data register, D1000.
The value of the data register, D1000, is moved into an offset of 4, meaning 2000 is written into the data register D1004.
Memory Monitor
![]()
FWRITEP
The FWRITEP one-shot instruction writes n3 number of WORDs starting at the data register, S, of file data at the offset, n2, to the data to the expansion module, n1.
The FWRITEP one-shot instruction writes file data from the internal memory of the CPU to the system memory of an expansion module.
Every time this instruction executes, it energizes the output only once.
Ladder Diagram Example
The FWRITE instruction writes 1 WORD.
![]()
When the contact, M1.6, is powered ON (1), the value, 2000, is moved, using the MOV instruction, into the data register, D1000.
The value of the data register, D1000, is moved into an offset of 4, meaning 2000 is written into the data register D1004.
Memory Monitor
![]()