PLC device configuration 7. Web server 8. Program instructions 9. Communication Libraries Debugging and troubleshooting 11 PID loops and tuning 12 Open loop motion control 13 A. Technical specifications B. Calculating a power budget C. Error codes D. Special memory SM and system symbol names E. Sixteen parameters can be passed to or from a subroutine. Page Communicating Over A Network Communicating over a Network The S is designed to solve your communications and networking needs by supporting not only the simplest of networks but also supporting more complex networks.
The S also provides tools that allow you to communicate with other devices, such as printers and weigh scales which use their own communications protocols. A selected network is referred to as an Interface. Masters A device that is a master on a network can initiate a request to another device on the network. The system block of the S stores the baud rate and network address.
After you select the parameters for the S, you must download the system block to the S You can also search the network at a specific baud rate or at all baud rates when looking for Ss.
While the S is acting as a PPI master, it still responds as a slave to requests from other masters. Page S For information about these instructions, refer to your S or S programming manual. Always route wires in pairs, with the neutral or common wire paired with the hot or signal-carrying wire. The communications port of the S CPU is not isolated. Consider using an RS repeater or an EM module to provide isolation for your network. Table lists the specifications for the network cable. You can connect up to 32 devices on a network segment.
Table Table shows the connector that provides the physical connection for the communications port and describes the communications port pin assignments. If you do not use the Siemens Multi-Master cable, you must provide isolation for the Freeport mode is active only when the S is in RUN mode. Setting the S to STOP mode halts all Freeport communications, and the communications port then reverts to the PPI protocol with the settings which were configured in the system block of the S Configure the connection as prompted by the wizard.
This is the source of the 24V power required for the cable to operate. Be sure to supply power to the S CPU. However, operation with radio modems is not the same as it is with telephone modems.
This configures the S to check address gaps only on a periodic basis. Page S, and there is no S that has a scan time longer than about 10 ms. Token hold time T Page Increasing the HSA can cause a different problem for your network by affecting the amount of time that it takes for a S to switch to master mode and enter the network.
If you use a timer to ensure that the Network Read or Network Write instruction completes its execution within a specified time, the delay in initializing master mode and adding the S as a master on the network can cause the instruction to time out.
Page For example: Consider a network running at 9. On the Connect To tab, click the Configure Such a network is shown in Figure The resulting HyperTerminal display is shown in Figure This returns you to the selection for modifying the AT commands or exiting. These features include viewing the status of the program as it is executed by the S, selecting to run the S for a specified number of scans, and forcing values.
If the project is different than the program in the S, you are prompted to save it. The RUN mode edit can be performed only on the program in the S Page Before downloading the program block in RUN mode, consider the effect of a RUN-mode modification on the operation of the S for the following situations: If you deleted the control logic for an output, the S maintains the last state of the output until the next power cycle or transition to STOP mode.
As you scroll down the editor window, new information is gathered from the S V memory or M memory values can be forced in bytes, words, or double words. The PWM output runs continuously after being started at the specified frequence cycle time. The pulse width is varied as required to effect the desired control. The Cycle input is a word value that defines the cycle time for the PWM output. To help you select the correct speeds for your application, refer to the data sheet for your motor.
Page Open Loop Motion Control with the S Chapter 9 Configuring the Motion Profiles A profile is a pre-defined motion description consisting of one or more speeds of movement that effect a change in position from a starting point to an ending point. You do not have to define a profile in order to use the PTO or the module.
Page S Programmable Controller System Manual Creating the Steps for the Profile A step is a fixed distance that a tool moves, including the distance covered during acceleration and deceleration times. In the case of the PTO a maximum of 29 steps are allowed in each profile. Choose the output Q0. Turning on the EN bit enables the subroutine. Ensure that the EN bit stays on until the Done bit signals that the execution of the subroutine has completed.
You can also use this instruction to establish a new zero position for any move command. This information is downloaded to the S with your program blocks. Because all the information required for position control is stored in the S, you can replace a Position module without having to reprogram or reconfigure the module.
Page See page for information about the EM control panel. Create the program to be executed by the S The Position Control wizard automatically creates the position instructions that you insert into your program.
See page for information about the position instructions. For an S CPU with firmware prior to version 1. Page Consider using an emergency stop function, electromechanical overrides, or redundant safeguards that are independent of the Position module and the S CPU. Use the drop down box to select: no action ignore the input condition , decelerate to a stop default , or immediate stop.
A longer jerk time yields smoother operation with a smaller Page Because the Position Control wizard makes changes to the program block, the data block and the system block, be sure to download all three blocks to the S CPU.
Otherwise, the Position module might not have all the program components that it needs for proper operation. The Dir parameter determines the direction to move when RUN is enabled. You cannot change this value when the RUN parameter is enabled.
Turning on the EN bit enables the instruction. Ensure that the EN bit stays on until the Done bit signals that the execution of the instruction has completed. Before executing this instruction, you must first determine the position of the reference point. You can also use this instruction to establish a new zero position for any absolute move command. This allows you to use the DIS output for disabling or enabling a motor controller.
If you use the DIS output on the Position module, then this instruction can be called every scan or only when you need to change the value of the DIS output. The Position module then compares the new configuration with the existing configuration and performs any required setup changes or recalculations. This program does not require an RP seek mode or a motion profile, and the length can be measured in either pulses or engineering units.
Load Module Configuration. This command loads a new configuration by commanding the Position module to read the configuration block from the V memory of the S This command allows you to move to a specified position at a target speed. Before using this command, you must have already established the zero position. As shown in Table , the configuration settings are stored in the following types of information: The configuration block contains information used to set up the module in preparation for executing motion commands.
Ignore the input condition. See Table When the module detects an error condition or a change in status of the data, the module updates these SM locations.
Page If the R bit is held in its last state: The Position module completes any motion in progress. If the S detects a fatal error and turns off all discrete outputs: The Position module decelerates any motion in progress to a stop. Execute the motion specified in Page Position module. The Position module is configured on power-up.
Figure shows two of the options for RP seek mode 1. Page Modem module configuration block which must be downloaded to the data block in the S CPU. You can use the Modem Expansion wizard to create the messages and telephone numbers for the Modem module configuration block. Page Modem Expansion wizard, and are stored in the Modem module configuration block. The configuration block is then downloaded to the data block in the S CPU.
The Modem Expansion wizard also creates program code to allow your program to initiate the data transfers. The Modem module password should be used for security if this callback mode is used. The Modem Expansion wizard guides you through the creation of a Modem module configuration table. Protocol selection is dependent on the type of device that is being used as the remote communications partner. This setting controls the communications protocol used when the Modem module answers a call and also when the Modem module initiates a CPU data transfer.
The wizard always describes the memory locations in the remote device as if the remote device is an S CPU. If the remote device is a Modbus device, the transfer is to or from holding registers in the Modbus device address 04xxxx.
Click the New Phone Number Once a telephone number has been configured it must be added to the project. Page Advanced Topics Modem module control routines and format their own messages.
The configuration table is located in the V memory area of the S In Table , the Byte Offset column of the table is the byte offset from the location pointed to by the configuration area pointer in SM memory. These types of messages can contain text and embedded variables. A CPU Data Transfer Message is an ASCII string which can specify any number of data transfers between devices, up to the number of specifications that fit in the maximum message length of bytes characters plus a length byte.
After version 1. This resets the parameters for the port. Be aware that stopping the communications to the drives also stops the drives. Ensure that all of the control equipment, such as the S, that is connected to the drive be connected by a short, thick cable to the same ground or star point as the drive.
Baud sets the baud rate at , , , , , , or Baud rates and are supported by S CPUs version 1. All the Active drives are polled for the latest drive status information.
Valid addresses: 0 to 31 The Type drive type input selects the type of drive. For a MicroMaster 3 or earlier drive, set Type to 0. See Figure for the proper cable bias and termination of the interconnecting cable.
Use the keypad on the drive to set the parameters: Reset the drive to factory settings optional. Press the P key. Press the up or down arrow key until P appears. Press P to enter the parameter. Press the up or down arrow key until the display shows the number that corresponds to the baud rate of your RS serial interface. If the S is a terminating node in the network, or if the connection is point-to-point, it is necessary to use terminals A1 and B1 not A2 and B2 of the connector since they allow the termination settings to be set for example, with DP connector type 6ES7 BAX Use the keypad on the drive to set the parameters: Reset the drive to factory settings optional With the Modbus Protocol Instructions, you can configure the S to act as a Modbus master or slave device.
These instructions enable the S to act as a Modbus device. When you place a Modbus instruction in your program, one or more associated subroutines are automatically added to your project. Page Modbus Addressing The following addresses are supported by the Modbus Slave instructions: to are discrete outputs mapped to Q0.
Function 15 writes the multiple discrete output values to the Q image register of the S The starting output point must begin on a byte boundary for example, Q0. This is a restriction for the Modbus Slave Protocol instructions. Page Instructions For The Modbus Protocol The parameter Baud sets the baud rate at , , , , , , , or The parameter Addr sets the address at inclusive values between 1 and A value of 0 disables reads of the analog inputs.
Page There is no response to a broadcast request to address 0. Not all slave devices will support the broadcast address. The S Modbus Slave Library does not support the broadcast address. The parameter RW specifies if this message is to be a read or a write.
The following two values are allowed for RW. Pointers must always be a type VB even if they point to word data. Page Program Example Modbus slave each time input I0.
The data will be written to 4 holding registers in the slave starting at address Most users of the Modbus Master Protocol Library should not need this information and should not modify the default operation of the Modbus Master Protocol Library. The values in the accumulators are saved and restored by the Modbus Master instructions. All user data in the accumulators is preserved while executing the Modbus Master instructions.
Recipes are stored in the memory cartridge instead of the PLC. In This Chapter Overview Recipe Definition and Terminology. All recipes are stored in the memory cartridge. Therefore, to use the recipe feature, an optional 64kB or kB memory cartridge must be installed in the PLC. A recipe configuration is the set of project components generated by the Recipe Wizard. These components include instruction subroutines, data block tabs, and symbol tables.
A recipe definition is a collection of recipes that have the same set of parameters. The first screen is an introductory screen defining the basic operations of the recipe wizard. Click on the Next button to begin configuring your recipes. Page Using Recipes Chapter 13 Allocating Memory The Allocate Memory screen specifies the starting address of the V memory area that will store the recipe loaded from the memory cartridge. You can either select the V memory address or let the Recipe wizard to suggest the address of an unused V memory block of the correct size.
To allocate memory, follow the steps below. Page S Programmable Controller System Manual Downloading the Project with a Recipe Configuration To download a project that contains a recipe configuration, follow the steps below. Moving process data to the memory cartridge frees V memory addresses that would otherwise be required to store this data.
In This Chapter Overview. Modicon PLC Manual. Omron PLC Manuals. Electrical knowledge. PLC manufacturers Website. PLC Directory. Preface, Contents 1. Product Overview 2. Getting Started 3. Installing the S 4. PLC Concepts 5. Programming Concepts,Conventions and Features 6.
0コメント