87
Removable Box Application Examples
Appendix E
(6) Enter the following macro and the click the
OK
Button.
(7) After all settings have been entered, click the
OK
Button in the Edit Macro Dialog Box, in the When a
Bit Changed Dialog Box, and in the Project Property Dialog Box to close them.
Note
For detailed information on the macro function, refer to the
NS Series Macro Reference
.
5.
Transferring Project Data
Connect the personal computer running CX-Designer to the NSH5 and transfer the project data (station
number screen data and other items) to the NSH5.
6.
Operation Check
Perform the following steps to check if the project data settings have been correctly entered.
(1) Connect the NSH5 to Removable Box 2 and turn ON the Removable Box key switch. The NSH5 will
start.
When the NSH5 starts, the initial screen (screen 0) will be displayed. The number 2 will be stored in
Station Status Monitor Address, $W1000.
(2) Next, $SB1 is turned ON, and the “When a bit changed” macro is executed.
The code “WRITECMEM(SERIALA:DM00200,$W1000,1);” writes 2 to PLC address DM00200.
The code “SHOWPAGE($W1000);” changes the PT display to the screen for station 2 (screen 2).
(3) Disconnect the NSH5 from Removable Box 2 and turn OFF the Removable Box's key switch. The
power to the NSH5 will be turned OFF.
WRITECMEM([SERIALA:DM00200],$W1000,1)
SHOWPAGE($W1000);
Writes the station number to DM00200.
(Entered before SHOWPAGE.)
Opens the screen with the same
number as the station number.
PLC
NSH5
DM00200 = 2
Station 1
Station 2
Station 8
WRITECMEM([SERIALA:DM00200],$W1000,1);
writes "2" to DM00200
Station Status Monitor Address $W1000: 0
→
2
Screen 0
→
2
SHOWPAGE($W1000) changes the screen display to screen 2
Summary of Contents for NSH5
Page 2: ......
Page 4: ...iv ...
Page 12: ...xii ...
Page 16: ...xvi ...
Page 24: ...xxiv EC Directives 6 ...
Page 58: ...34 Installing the Mounting Bracket Section 2 5 ...
Page 86: ...62 Connection Method Section 4 5 ...
Page 92: ...68 Precautions When Replacing the PT Section 5 4 ...
Page 98: ...74 General Specifications Appendix A ...
Page 99: ...75 Appendix B Dimensions 75 50 176 223 75 Four M4 70 5 16 5 ...
Page 102: ...78 Types of Memory Appendix C ...
Page 107: ...83 Recommended Enabling Circuits Appendix D Program Example ...
Page 108: ...84 Recommended Enabling Circuits Appendix D ...