General programming notes
8.4.4 Program components
8-8
8.4.4 Program components
Modules
A program consists of the following levels of modules:
• Modules that are executed at start up (OB100)
• Modules that are called from OB1 and executed in synchronization with scanning
• Modules that are executed in interrupt processes
The basic parts of a program are started by OB1, OB40, and OB100 as shown below.
The illustration above shows only basic the parts of a program. An actual program may be
more complicated including some other interrupt processes. For details on OB, FC and FB,
see the System Software for S7-300/S7-400 (System and Standard Functions).
OB100
restart process
OB1
cycle process
(at each scanning)
User program
OB40
interrupt process
FC
alarms
User program
FC
cycle process
FC
start up process
The system and user data blocks
(program) check parameters and
other important data at the time of
start up, and stops the PLC if any
abnormality is found.
The following processes are done
during normal scanning:
・
Sending and receiving control status
signals
・
Sending and receiving auxiliary and
G functions
・
M decode (M00-99)
・
M, S, and F code
・
Communication between machine
control panel and NCK
・
Logging of user errors and operating
messages
Interrupt process for a process alarm
User program
Summary of Contents for CNC Series
Page 1: ...Maintenance Manual Serviceman Handbook MANUAL No NCSIE SP02 19 Yaskawa Siemens CNC Series...
Page 26: ...Part 1 Hardware...
Page 38: ...System Configuration 1 2 3 Spindle motor designations 1 12...
Page 58: ...Installing the control panels 2 3 5 Installing lightning surge absorbers 2 20...
Page 62: ...Installing the motors 3 4...
Page 84: ...Connection method 4 3 2 Setting the rotary switches on the inverters and servo units 4 22...
Page 96: ...Part 2 Software...
Page 102: ...Software configuration 6 6...
Page 113: ...7 2 Network settings 7 11 8 Click on the radio button to the left of Specify an IP address...
Page 121: ...7 2 Network settings 7 19...
Page 122: ...Part 3 PLC...
Page 154: ...Part 4 Setting up and maintenance...
Page 160: ...Overview of System 10 1 2 Basic operation 10 6...
Page 204: ...How to use Digital Operation 12 2 9 Setting the password setting for write prohibit 12 32...
Page 327: ...Error and Troubleshooting 15 4...
Page 328: ...15 1 Errors without Alarm Display and Troubleshooting 15 5...
Page 329: ...Error and Troubleshooting 15 6...
Page 343: ...Maintenance and Check 16 3 3 Setting up Initializing Absolute encoder 16 14...