Thursday, July 5, 2012

Data Block Instructions


Data Block Instructions 
                ---(OPN)    Open Data Block: DB or DI
Symbol 
<DB no.> or <DI no.>
---(OPN)

Parameter            Data Type       Memory Area         Description
<DB no.>
<DI no.>             BLOCK_DB         DB, DI              Number of DB/DI; range depends on CPU
Description
---(OPN) (Open a Data Block) opens a shared data block (DB) or an instance data block (DI). The
---(OPN) function is an unconditional call of a data block. The number of the data block is transferred
into the DB or DI register. The subsequent DB and DI commands access the corresponding blocks,
depending on the register contents.



Data block 10 (DB10) is opened. The contact address (DBX0.0) refers to bit zero of data byte zero of
the current data record contained in DB10. The signal state of this bit is assigned to the output Q4.0. !--RELATED-POSTS-STARTS-->

No comments:

Post a Comment