Chapter 7 Program
7-4
(b) It transmits data at the rising edge of M0000
(c) HSC module is equipped at slot 0 of extension base stage 1. While M00001 is on, it transmits data D00001 ~ D00006 to
internal memory address 10 ~ 15.
XGK CPU module HSC module
Data D area Internal memory
Data1 D00001 10
Data2 D00002 11
Data3 D00003 12
Data4 D00004 13
Data5 D00005 14
Data6 D00006
15
7.1.2 Function Block of XGI/XGR
1. GET function block
Function Block to read data of Global constant area at XGI/XGR CPU module. That data can be saved at variable area of
XGI/XGR CPU module (Except flag area).
(1) GET function block configuration
Function block Classification Variable Description
REQ Request execution
BASE Base where HSC module is equipped
SLOT Slot where HSC module is equipped
Input
MADDR Global constant area
DONE Function Block execution status
STAT Error information
Output
DATA Output data
Remark
(1) ‘###’ means that WORD, DWORD, INT, UINT, DINT, UDINT type is available.
(2) For ‘REQ’, edge signal or level signal is available.
(3) For ‘MADDR’, Global constant or integer is available.
(4) ‘Output data’ is data read from Global constant.
(5) In case of XGR, HSC module should be equipped at extension base.
Function block is classified as follows according to output variable type.
Function Block Output variable type Operation description
GET_WORD WORD Reads WORD data from Global constant area (MADDR).
GET_DWORD DWORD Reads DWORD data from Global constant area (MADDR).
GET_INT INT Reads INT data from Global constant area (MADDR).
GET_UINT UINT Reads UINT data from Global constant area (MADDR).
GET_DINT DINT Reads DINT data from Global constant area (MADDR).
GET_UDINT UDINT Reads UDINT data from Global constant area (MADDR).