Download Siemens NCM S7 Technical data
Transcript
3 Operating the PROFIBUS CP with STEP S7 Table 3-5 CALL SFC 58 ”WR_REC” (write data record) STL Explanation REQ IOID :=M10.0 :=B#16#54 // // // // LADDR :=W#16#100 RECNUM :=B#16#3 // RECORD :=P#DB45.DBX 0.0 BYTE 3 // RET_VAL :=MW12 // BUSY :=M10.1 // // Table 3-6 Trigger bit for the job Module base address of the PROFIBUS CP is in the input area (PI) Module base address of the PROFIBUS CP Select data record 3 Data area for data record 3 − data in DB 45 Return value of block in memory word 12 SFC returns code: job active (1), Job done (0) DB 45 Parameter / Name Type 0 Ctrl-Type Byte 0: no change 1: allow change 1 Mode Byte New mode 2 PROFIBUS address Byte New PROFIBUS address (Relative) Address Comment Notice The module can then only be operated in the DP master mode if it was configured in the hardware configuration as DP master. If an invalid mode (>3) or an invalid PROFIBUS address (> HSA) is specified, no change is made. SFC 58 does not, however, signal an error to the user program. Caution The change is retained until power off/on on the station or until it is reconfigured using data record 3. After power off/on, the CP returns to the configured mode and PROFIBUS address (default). A−80 S7-CPs for PROFIBUS Configuring and Commissioning Release 09/2011 C79000−G8976−C181−05